Using modules from Debian "python3-..." packages with locally compiled Python 3.3

Edward C. Jones edcjones at comcast.net
Tue May 8 20:19:45 EDT 2012


Terry Reedy said:

 > Question 1: if you use the .pth method, do you get the same result? 
(I expect you will, but good to
 > check.)

Recompiled Pyhton 3.3 without the SITEPATH change.  Same result:

 > python3.3
Python 3.3.0a3 (default, May  8 2012, 19:57:45)
[GCC 4.6.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "<frozen importlib._bootstrap>", line 1015, in _find_and_load
   File "<frozen importlib._bootstrap>", line 634, in load_module
   File "<frozen importlib._bootstrap>", line 294, in 
module_for_loader_wrapper
   File "<frozen importlib._bootstrap>", line 522, in _load_module
   File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 137, in 
<module>
     from . import add_newdocs
ImportError: cannot import name add_newdocs
 >>>

 > Question2: has anyone successfully run numpy with 3.3 on Debian or 
anything else? If no one here
 > answers, try Debian or numpy lists.

I don't know.  But Python 3.3.0a3 has been in Debian experimental for 
only a few days.

I have a bunch of code that I want to port to Python 3.  I delayed for 
years because numpy and PIL
had not been ported to Python 3.  Numpy has now been converted and there 
are alternatives to PIL.
Since I want to deal with unicode only once, I would prefer to use 3.3 
but 3.2 would be OK.




More information about the Python-list mailing list