matplotlib import warning

Hello,

My usual ipython -pylab is giving me these warnings after I installed matplotlib from the source (matplotlib rev.8624 using python setupegg.py develop).

/usr/lib/python2.6/site-packages/EPDLab-3.0.1.dev_r24658-py2.6.egg/enthought/init.py:7: UserWarning: Module dateutil was already imported from /home/user/Desktop/python-repo/matplotlib/lib/dateutil/init.pyc, but /usr/lib/python2.6/site-packages is being added to sys.path

import(‘pkg_resources’).declare_namespace(name)

Under /site-packages in easy-install.pth I moved the /home/user/Desktop/python-repo/matplotlib/lib line to the very bottom of the file but this doesn’t make any change.

Any ideas how to remove this warning?

···


Gökhan

try this in the terminal:
python -c “import matplotlib”

-Aman

···

On Wed, Sep 8, 2010 at 12:17 PM, Gökhan Sever <gokhansever@…287…> wrote:

Hello,

My usual ipython -pylab is giving me these warnings after I installed matplotlib from the source (matplotlib rev.8624 using python setupegg.py develop).

/usr/lib/python2.6/site-packages/EPDLab-3.0.1.dev_r24658-py2.6.egg/enthought/init.py:7: UserWarning: Module dateutil was already imported from /home/user/Desktop/python-repo/matplotlib/lib/dateutil/init.pyc, but /usr/lib/python2.6/site-packages is being added to sys.path

import(‘pkg_resources’).declare_namespace(name)

Under /site-packages in easy-install.pth I moved the /home/user/Desktop/python-repo/matplotlib/lib line to the very bottom of the file but this doesn’t make any change.

Any ideas how to remove this warning?


Gökhan


This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.

Enter the Intel(R) Threading Challenge 2010.

http://p.sf.net/sfu/intel-thread-sfd


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Aman Thakral
B.Eng & Biosci, M.Eng Design

It is clear with
python -c “import matplotlib”

I can’t seem to find any “dateutil” phrase occurring within the IPython installation folder (/site-packages/IPython)

Where else to look for?

···

On Wed, Sep 8, 2010 at 12:35 PM, Aman Thakral <aman.thakral@…287…> wrote:

try this in the terminal:
python -c “import matplotlib”

-Aman

On Wed, Sep 8, 2010 at 12:17 PM, Gökhan Sever <gokhansever@…287…> wrote:

Hello,

My usual ipython -pylab is giving me these warnings after I installed matplotlib from the source (matplotlib rev.8624 using python setupegg.py develop).

/usr/lib/python2.6/site-packages/EPDLab-3.0.1.dev_r24658-py2.6.egg/enthought/init.py:7: UserWarning: Module dateutil was already imported from /home/user/Desktop/python-repo/matplotlib/lib/dateutil/init.pyc, but /usr/lib/python2.6/site-packages is being added to sys.path

import(‘pkg_resources’).declare_namespace(name)

Under /site-packages in easy-install.pth I moved the /home/user/Desktop/python-repo/matplotlib/lib line to the very bottom of the file but this doesn’t make any change.

Any ideas how to remove this warning?


Gökhan


This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.

Enter the Intel(R) Threading Challenge 2010.

http://p.sf.net/sfu/intel-thread-sfd


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Aman Thakral
B.Eng & Biosci, M.Eng Design


Gökhan

I temporarily fixed this by commenting the following lines in
pkg_resources.py folder in /site-packages/distribute.. folder.

            issue_warning(
                "Module %s was already imported from %s, but %s is being added"
                " to sys.path" % (modname, fn, self.location),
            )

Now, I don't get any dateutil imported messages each time I launch an
IPython session.

···

On Wed, Sep 8, 2010 at 1:26 PM, Gökhan Sever <gokhansever@...287...> wrote:

It is clear with python -c "import matplotlib"
I can't seem to find any "dateutil" phrase occurring within the IPython
installation folder (/site-packages/IPython)
Where else to look for?

On Wed, Sep 8, 2010 at 12:35 PM, Aman Thakral <aman.thakral@...287...> > wrote:

try this in the terminal:
python -c "import matplotlib"

-Aman

On Wed, Sep 8, 2010 at 12:17 PM, Gökhan Sever <gokhansever@...1896....> >> wrote:

Hello,
My usual ipython -pylab is giving me these warnings after I installed
matplotlib from the source (matplotlib rev.8624 using python setupegg.py
develop).

/usr/lib/python2.6/site-packages/EPDLab-3.0.1.dev_r24658-py2.6.egg/enthought/__init__.py:7:
UserWarning: Module dateutil was already imported from
/home/user/Desktop/python-repo/matplotlib/lib/dateutil/__init__.pyc, but
/usr/lib/python2.6/site-packages is being added to sys.path
__import__('pkg_resources').declare_namespace(__name__)

Under /site-packages in easy-install.pth I moved
the /home/user/Desktop/python-repo/matplotlib/lib line to the very bottom of
the file but this doesn't make any change.
Any ideas how to remove this warning?
--
Gökhan

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Aman Thakral
B.Eng & Biosci, M.Eng Design

--
Gökhan

--
Gökhan