guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: python-matplotlib: should it propagate numpy?


From: Federico Beffa
Subject: Re: python-matplotlib: should it propagate numpy?
Date: Thu, 10 Dec 2015 20:21:00 +0100

On Wed, Dec 9, 2015 at 11:03 PM, Ricardo Wurmus
<address@hidden> wrote:
>
> Federico Beffa <address@hidden> writes:
>
>> I just tried out using matplotlib without numpy and it actually works:
>
> [...]
>
>> Therefore, despite numpy being the standard data crunching base
>> format, I don't think we need to propagate it.
>
> I cannot confirm this.  I used
>
>    guix environment --container --ad-hoc python-2.7.10 python2-matplotlib -- 
> python2
>    ...
>    Python 2.7.10 (default, Jan  1 1970, 00:00:01)
>    [GCC 4.9.3] on linux2
>    Type "help", "copyright", "credits" or "license" for more information.
>    >>> import matplotlib.pyplot as plt
>    Traceback (most recent call last):
>      File "<stdin>", line 1, in <module>
>      File 
> "/gnu/store/8k926blraf9mg3l4qjlxpnabrgx09jr8-python2-matplotlib-1.4.2/lib/python2.7/site-packages/matplotlib-1.4.2-py2.7-linux-x86_64.egg/matplotlib/__init__.py",
>  line 180, in <module>
>        from matplotlib.cbook import is_string_like
>      File 
> "/gnu/store/8k926blraf9mg3l4qjlxpnabrgx09jr8-python2-matplotlib-1.4.2/lib/python2.7/site-packages/matplotlib-1.4.2-py2.7-linux-x86_64.egg/matplotlib/cbook.py",
>  line 33, in <module>
>        import numpy as np
>    ImportError: No module named numpy
>    >>>
>
> So, numpy still needs to be propagated in my opinion.  I haven’t tried
> ‘python-matplotlib’ and ‘python’ yet, just ‘python2-matplotlib’ as
> above.  Does this make a difference?

I forgot the flag '--pure' and my test was picking up the numpy in my
profile. With the flag it doesn't work for me either.

Regards,
Fede



reply via email to

[Prev in Thread] Current Thread [Next in Thread]