This helps. I will take a closer look today.
On Tuesday, 6 November 2012 01:58:38 UTC-6, Neil wrote:
It seems to be there, as I can import it from a normal python shell. Here
is what I get from the web2py shell:
from matplotlib.projections.geo import AitoffAxes
Traceback (most recent call
I tried the same statements (on Mac) and I cannot reproduce the problem.
Anyway, note the logic:
NATIVE_IMPORTER = __builtin__.__import__
...
def custom_importer(name, globals=None, locals=None, fromlist=None,
level=-1):
return NATIVE_IMPORTER(name, globals, locals, fromlist,
Solved it. Your first intuition was correct - conflict in modules, which
I should have picked up on immediately with the additional debug info.
On Tuesday, November 6, 2012 4:26:30 PM UTC, Massimo Di Pierro wrote:
I tried the same statements (on Mac) and I cannot reproduce the problem.
Thanks for letting us know. The new custom_import actually works (the old
one did not) so it will pick conflicts that before were not picked.
On Tuesday, 6 November 2012 11:14:28 UTC-6, Neil wrote:
Solved it. Your first intuition was correct - conflict in modules, which
I should have picked
No problem. Here is what I get:
import matplotlib.pylab
Traceback (most recent call last):
File console, line 1, in module
File
/home/aicbt/webapps/alternate_config/web2py2.2.1/gluon/custom_import.py,
line 87, in custom_importer
return NATIVE_IMPORTER(name, globals, locals, fromlist,
can you do
from matplotlib.projections.geo import AitoffAxes
I assume it is there.
On Monday, 5 November 2012 16:10:14 UTC-6, Neil wrote:
No problem. Here is what I get:
import matplotlib.pylab
Traceback (most recent call last):
File console, line 1, in module
File
It seems to be there, as I can import it from a normal python shell. Here
is what I get from the web2py shell:
from matplotlib.projections.geo import AitoffAxes
Traceback (most recent call last):
File console, line 1, in module
File
Do you have anything in your app/modules/* that may conflict? Did you set
track_changes(True) or not? If you do web2py.py -S yourapp can you import
form the web2py shell?
On Friday, 2 November 2012 02:18:47 UTC-5, Neil wrote:
A little more info:
- On linux (works fine on Windows)
-
Can't see any potential conflicts. I have the problem for both
track_changes(True) and track_changes(False). When I import from shell:
[aicbt@web331 web2py2.2.1]$ python web2py.py -S init
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2012
Version 2.2.1 (2012-10-21 16:57:04)
I need your help. In gluon/custom_import.py can you replace
except ImportError, e1: # line 84
import_tb = sys.exc_info()[2]
try:
return NATIVE_IMPORTER(name, globals, locals, fromlist,
level) # line 87
except ImportError, e3:
Where is matplotlib installed?
On Thursday, 1 November 2012 15:51:14 UTC-5, Neil wrote:
I just upgraded from 2.1 to 2.2.1, and I can no longer import matplotlib.
I get the following error:
ImportError: Cannot import module 'matplotlib'
Is this related to the custom import? Perhaps it is
11 matches
Mail list logo