I'm stumped then! I expect you will find that something like:
__import__("myapp.modules." + name)
return sys.modules["myapp.modules." + name]
works in place of what you are using, but I can't explain what the
difference would be...
Mark
On 3/10/2012 10:33 PM, Tim Aerdts wrote:
> Yes, if I use
>
> import myapp.modules.File
>
> the application works..
>
> On Wed, Oct 3, 2012 at 2:26 PM, Mark Hammond <skippy.hammond@...
> <mailto:skippy.hammond@...>> wrote:
>
> So a regular import of that module works?
>
> Mark
>
>
> On 3/10/2012 10:09 PM, Tim Aerdts wrote:
>
> Hi Mark,
>
> First of all thanks for your reply.
> The thing is, the modules that are in myapp.modules are in the
> library.zip
>
> For example there is myapp.modules.File.pyc
>
> -Tim
>
> On Wed, Oct 3, 2012 at 1:57 PM, Mark Hammond
> <skippy.hammond@... <mailto:skippy.hammond@...>
> <mailto:skippy.hammond@...
> <mailto:skippy.hammond@...>>> wrote:
>
> You are probably looking for the 'includes' option, or
> possibly list
> 'myqpp' in the 'packages' option.
>
> Mark
>
>
> On 3/10/2012 9:48 PM, Tim Aerdts wrote:
>
> Hello,
>
> I am trying to convert an application into an
> executable file.
> Which in
> itself works fine :)
>
> Except there is a runtime error which does not come
> when I run the
> script itself.
>
> https://gist.github.com/____3826519
> <https://gist.github.com/__3826519>
>
> <https://gist.github.com/__3826519
> <https://gist.github.com/3826519>> Here is the piece of code that
> seemingly
> causes the error.
>
> The error that occurs is :
>
> AttributeError: 'module' object has no attribute 'File'
>
> Cheers
>
> -Tim
>
>
>
> ------------------------------____----------------------------__--__------------------
>
> Don't let slow site performance ruin your business.
> Deploy New
> Relic APM
> Deploy New Relic app performance management and know
> exactly
> what is happening inside your Ruby, Python, PHP, Java,
> and .NET app
> Try New Relic at no cost today and get our sweet Data
> Nerd shirt
> too!
> http://p.sf.net/sfu/newrelic-____dev2dev
> <http://p.sf.net/sfu/newrelic-__dev2dev>
> <http://p.sf.net/sfu/newrelic-__dev2dev
> <http://p.sf.net/sfu/newrelic-dev2dev>>
>
>
>
> ___________________________________________________
> Py2exe-users mailing list
> Py2exe-users@...
> <http://sourceforge.net>
> <mailto:Py2exe-users@...
> <mailto:Py2exe-users@...>>
> https://lists.sourceforge.net/____lists/listinfo/py2exe-users
> <https://lists.sourceforge.net/__lists/listinfo/py2exe-users>
>
>
> <https://lists.sourceforge.__net/lists/listinfo/py2exe-__users
> <https://lists.sourceforge.net/lists/listinfo/py2exe-users>>
>
>
>
>
>
> --
> Kind regards,
> Tim Aerdts
> http://www.tuimz.nl
>
>
> ------------------------------__------------------------------__------------------
> Don't let slow site performance ruin your business. Deploy New
> Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt
> too!
> http://p.sf.net/sfu/newrelic-__dev2dev
> <http://p.sf.net/sfu/newrelic-dev2dev>
>
>
>
> _________________________________________________
> Py2exe-users mailing list
> Py2exe-users@...
> <mailto:Py2exe-users@...>
> https://lists.sourceforge.net/__lists/listinfo/py2exe-users
> <https://lists.sourceforge.net/lists/listinfo/py2exe-users>
>
>
>
>
>
> --
> Kind regards,
> Tim Aerdts
> http://www.tuimz.nl
|