Re: [web2py] Re: Can't import external modules

2012-08-20 Thread Matt
On Thursday, August 16, 2012 7:19:30 PM UTC-4, Massimo Di Pierro wrote: > > Can you help us test this. If anything caused it, could be changeset: > > Apologies, I have been out of town. I'm not sure what to say, I just reverted to using a normal import and it still works. I tried clearing out

Re: [web2py] Re: Can't import external modules

2012-08-17 Thread Michele Comitini
Indeed I wrote the patch to allow raising a meaningful error if the module is not loaded. The action taken should be the same as before the patch i.e.: return super(_Web2pyImporter, self).__call__(name, globals, locals, fromlist, level) but t

Re: [web2py] Re: Can't import external modules

2012-08-16 Thread Massimo Di Pierro
Can you help us test this. If anything caused it, could be changeset: 3324:ef7523559742 --- a/gluon/custom_import.py Wed Jun 06 11:37:28 2012 -0500 +++ b/gluon/custom_import.py Thu Aug 16 18:18:23 2012 -0500 @@ -287,14 +287,14 @@ return super(_Web2pyImporter, self) \

Re: [web2py] Re: Can't import external modules

2012-08-16 Thread Anthony
Do you still have all the __init__.py files (i.e., in /web2py, /applications, /yourapp, and /yourapp/modules)? On Thursday, August 16, 2012 5:29:30 PM UTC-4, Anthony wrote: > > You should not need to use local_import, which is deprecated. Regular > import should work, so there is a problem somew

Re: [web2py] Re: Can't import external modules

2012-08-16 Thread Anthony
You should not need to use local_import, which is deprecated. Regular import should work, so there is a problem somewhere. Anthony On Thursday, August 16, 2012 4:52:54 PM UTC-4, Matt wrote: > > > > On Thursday, August 16, 2012 12:24:34 AM UTC-4, Matt wrote: >> >> On Wed, Aug 15, 2012 at 10:03 PM

Re: [web2py] Re: Can't import external modules

2012-08-16 Thread Matt
On Thursday, August 16, 2012 12:24:34 AM UTC-4, Matt wrote: > > On Wed, Aug 15, 2012 at 10:03 PM, Anthony wrote: > >> Is there any way around this? This seems to have broken only with the > >> upgrade to Mountain Lion. We develop this app primarily on (and for) > linux, > >> however I do mos

Re: [web2py] Re: Can't import external modules

2012-08-15 Thread Matt Broadstone
On Wed, Aug 15, 2012 at 10:03 PM, Anthony wrote: >> Is there any way around this? This seems to have broken only with the >> upgrade to Mountain Lion. We develop this app primarily on (and for) linux, >> however I do most of my development on my laptop, so it's quite inconvenient >> to have to use

[web2py] Re: Can't import external modules

2012-08-15 Thread Anthony
> > Is there any way around this? This seems to have broken only with the > upgrade to Mountain Lion. We develop this app primarily on (and for) linux, > however I do most of my development on my laptop, so it's quite > inconvenient to have to use a separate install just on this computer. Do >

[web2py] Re: Can't import external modules

2012-08-15 Thread Matt
Is there any way around this? This seems to have broken only with the upgrade to Mountain Lion. We develop this app primarily on (and for) linux, however I do most of my development on my laptop, so it's quite inconvenient to have to use a separate install just on this computer. Do you have any

[web2py] Re: Can't import external modules

2012-07-16 Thread DonH
Yes, I was running the web2py for OS X. I have switched to the web2py source version and it now works. Thanks for the help! -- Don On Monday, July 16, 2012 9:57:15 AM UTC-4, Massimo Di Pierro wrote: > > Are you running the web2py for OSX? That ships with its own python > interpreter and igno

[web2py] Re: Can't import external modules

2012-07-16 Thread Massimo Di Pierro
Are you running the web2py for OSX? That ships with its own python interpreter and ignores any other python and module you may have installed. I suggest you use web2py source since you already have python installed. On Sunday, 15 July 2012 14:26:11 UTC-5, DonH wrote: > > I have installed an exte