[SciPy-User] ImportError: No module named compat

M.Rule mrule7404 at gmail.com
Tue Feb 22 14:27:47 EST 2011


or better yet figure out which of what appear to be several numpy
installations on my machine is the installation that actually gets imported
and used?

On Tue, Feb 22, 2011 at 2:23 PM, M.Rule <mrule7404 at gmail.com> wrote:

> I downloaded the latest git pull of numpy, and built and installed that.
> I'm still getting the error. I assume I need to uninstall the version of
> numpy that easy_install installed. easy_install does not have an option to
> undo installation. is there a clean way to remove or update numpy that
> doesn't involve my manually deleting all folders named "numpy" on my system
> ?
>
>
> On Tue, Feb 22, 2011 at 2:16 PM, Warren Weckesser <
> warren.weckesser at enthought.com> wrote:
>
>>
>>
>> On Tue, Feb 22, 2011 at 12:55 PM, M.Rule <mrule7404 at gmail.com> wrote:
>>
>>> 1.3.0 apparently
>>
>>
>>
>> To build scipy from source, you'll need at least version 1.5 of numpy.
>>
>> It is surprisingly hard to find this fact.  It is mentioned in the release
>> notes in docs/release/0.10.0-notes.rst, for example, but I haven't had any
>> luck finding it on the scipy web page.  I did find an incorrect statement in
>> an old FAQ about requiring numpy 0.9.2 or newer.
>>
>> Warren
>>
>>
>>
>>>
>>> On Tue, Feb 22, 2011 at 1:52 PM, Warren Weckesser <
>>> warren.weckesser at enthought.com> wrote:
>>>
>>>>
>>>>
>>>> On Tue, Feb 22, 2011 at 12:37 PM, M.Rule <mrule7404 at gmail.com> wrote:
>>>>
>>>>> I'm trying to install scipy. Both building from source and using
>>>>> easy_install give me this error :
>>>>>
>>>>> % python setup.py build
>>>>> Traceback (most recent call last):
>>>>>   File "setup.py", line 86, in <module>
>>>>>     FULLVERSION += svn_version()
>>>>>   File "setup.py", line 59, in svn_version
>>>>>     from numpy.compat import asstr
>>>>> ImportError: No module named compat
>>>>>
>>>>>
>>>>> numpy is installed and functional.
>>>>>
>>>>
>>>>
>>>> What version of numpy do you have installed?  You might need to update
>>>> to a newer version.
>>>>
>>>> Warren
>>>>
>>>>
>>>>
>>>>>  what did I do wrong ?
>>>>>
>>>>> Sincerely,
>>>>> Michael Rule.
>>>>>
>>>>> _______________________________________________
>>>>> SciPy-User mailing list
>>>>> SciPy-User at scipy.org
>>>>> http://mail.scipy.org/mailman/listinfo/scipy-user
>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20110222/f2015220/attachment.html>


More information about the SciPy-User mailing list