From: Albert C. <mat...@ml...> - 2015-07-14 21:00:55
|
On Tue, Jul 14, 2015 at 02:53:13PM -0500, Albert Chin wrote: > On Tue, Jul 14, 2015 at 09:22:07AM -1000, Eric Firing wrote: > > On 2015/07/14 3:59 AM, Albert Chin wrote: > > > I've built matplotlib-1.4.3 with Python 2.7.5, 3.3.2, 3.4.3. Python > > > 3.3.2 and 3.4.3 work ok. With Python 2.7.5, I get: > > > File "/tmp/lines3d_demo.py", line 2, in <module> > > > from mpl_toolkits.mplot3d import Axes3D > > > ImportError: No module named mpl_toolkits.mplot3d > > > > > > [[ snip snip ]] > > > > I suspect this results from some aspect of your system; we routinely > > build and test with python 2.7.x. Maybe your python 2.7 setuptools > > needs to be updated? > > Most likely our fault. I rebuilt with setuptools-18.0.1 and that > didn't help. Looking at a Fedora 22 system, > matplotlib-1.4.3-py2.7-nspkg.pth is read, but not on our system. This > is the problem. If I move this file out of the way on the Fedora 22 > system, the failure is the same as above. Just need to figure out how > Python reads this file. Ok, found the problem. Python only reads .pth files in the default Python prefix (sys.prefix and sys.exec_prefix), not from any other path in PYTHONPATH. I'll need to create sitecustomize.py to fix this. -- albert chin (ch...@th...) |