[Numpy-discussion] Python 3 porting

Bruce Southey bsouthey@gmail....
Mon Feb 15 12:49:47 CST 2010

On Mon, Feb 15, 2010 at 10:55 AM, Pauli Virtanen <pav@iki.fi> wrote:
> ma, 2010-02-15 kello 10:18 -0600, Bruce Southey kirjoitti:
> [clip]
>> Is there a correct way to get Python3.1 to find the relative path on Linux?
>> I can change the import statement to work but I do not think that is viable.
> You need to use relative imports. 2to3 should be able to take care of
> this.
> [clip]
>>    File "/usr/local/lib/python3.1/site-packages/numpy/lib/__init__.py",
>> line 1, in <module>
>>      from info import __doc__
>> ImportError: No module named info
> That statement should read
>        from .info import __doc__
> and indeed, it reads like that for me. Check how it is in
> build/py3k/numpy/lib/__init__.py

Not for me

> Most likely you interrupted the build by Ctrl+C and 2to3 did not finish
> the conversion of the files to Python3 format. Try removing the build/
> directory and trying again -- if you interrupt it, 2to3 may not have
> finished running.

Nope. I'll go through the log and see if anything looks weird.

> Of course, it should be more robust, but at the moment, it isn't
> (patches welcome).
Well that it is the whole point of trying this as I would like to move
to Python 3.


More information about the NumPy-Discussion mailing list