[Bug 299381] Re: importing matplotlib gives warning

2009-03-02 Thread Václav Šmilauer
Sorry, not the case here. I have matplotlib installed from package. Whe
I run "import matplotlib" inside a program with embedded python
interpreter, I get the warning, even though I made sure to delete all
*.pyo and *.pyc files:

/usr/lib/python2.5/site-packages/pytz/__init__.py:29: UserWarning: Module 
dateutil was already imported from 
/var/lib/python-support/python2.5/dateutil/__init__.py, but 
/var/lib/python-support/python2.5 is being added to sys.path
  from pkg_resources import resource_stream

I don't get it in python/ipython prompt, however. Maybe it is not bug in
matplotlib after all, but I would like to know the cause. Can you
propose a solution, if you know of any?

Thanks, V.

-- 
importing matplotlib gives warning
https://bugs.launchpad.net/bugs/299381
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 299381] Re: importing matplotlib gives warning

2009-03-02 Thread Matthias Klose
this is only a problem with a custom install of matplotlib. the Ubuntu
packages has proper dependencies on pytz and dateutil.


** Changed in: matplotlib (Ubuntu)
   Status: Confirmed => Invalid

-- 
importing matplotlib gives warning
https://bugs.launchpad.net/bugs/299381
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 299381] Re: importing matplotlib gives warning

2008-12-17 Thread michael, liao
yeah, I confirmed this on another machine upgraded from Hardy to
Intrepid. The warning is caused by outdated *.pyc files.

It seems that the current manner to install/remove python libraries has
potential issue, especially during system upgrading. Since some python
packages' *.pyc files are generated somewhere else from where their *.py
files is installed. Does these packages' cleanup script take care of
these places?

-- 
importing matplotlib gives warning
https://bugs.launchpad.net/bugs/299381
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 299381] Re: importing matplotlib gives warning

2008-12-17 Thread Michele Mattioni
Solution proposed by Michael

sudo python -c 'import matplotlib'

works here!

Thanks

-- 
importing matplotlib gives warning
https://bugs.launchpad.net/bugs/299381
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 299381] Re: importing matplotlib gives warning

2008-12-16 Thread michael, liao
It's turned out that this issue is caused by outdated *.pyc files. I
have the same issue after upgrading from Hardy to Inprepid. But, after
running python in root (sudo python -c 'import matplotlib'), which will
regenerate *.pyc files after checking timestamp, the problem disappear.

- Michael

-- 
importing matplotlib gives warning
https://bugs.launchpad.net/bugs/299381
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 299381] Re: importing matplotlib gives warning

2008-12-15 Thread Alan Jackson
I installed matplotlib a few weeks ago into a fresh Intrepid install (I
always do a fresh install instead of an update), and I don't see the
reported issue. It could be I'm not loading some other python packages.
I also run kubuntu instead of stock ubuntu.

- Alan

-- 
importing matplotlib gives warning
https://bugs.launchpad.net/bugs/299381
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 299381] Re: importing matplotlib gives warning

2008-12-15 Thread John D Hunter
Hi,

I'm a matplotlib developer and I will posit a guess about what is going
on.  matplotlib optionally installs pytz and datetuil if it is not found
on the system at install time.  You can override the default behavior by
copying the file setup.cfg.template to setup.cfg and editing it to turn
off the pytz and dateutil installs::

  ## Date/timezone support:
  pytz = False
  dateutil = False

It looks like perhaps you are getting the ubuntu datetutil and the
matplotlib datetuil, but this is just a guess.  The ubuntu packager will
probably want to rely on the upstream pytz and datetutil, and turn off
matplotlib's install by modifying setup.cfg as described above.

JDH

-- 
importing matplotlib gives warning
https://bugs.launchpad.net/bugs/299381
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 299381] Re: importing matplotlib gives warning

2008-12-04 Thread Michele Mattioni
Same problem here on Intrepid Ibex.

[EMAIL PROTECTED]:~$ uname -a
Linux triton 2.6.27-10-generic #1 SMP Fri Nov 21 12:00:22 UTC 2008 i686 
GNU/Linux
[EMAIL PROTECTED]:~$ python
Python 2.5.2 (r252:60911, Oct  5 2008, 19:24:49) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
/usr/lib/python2.5/site-packages/pytz/__init__.py:29: UserWarning: Module 
dateutil was already imported from 
/var/lib/python-support/python2.5/dateutil/__init__.py, but 
/var/lib/python-support/python2.5 is being added to sys.path
  from pkg_resources import resource_stream
>>> matplotlib.__version__
'0.98.3'
>>>

-- 
importing matplotlib gives warning
https://bugs.launchpad.net/bugs/299381
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 299381] Re: importing matplotlib gives warning

2008-11-21 Thread Benjamin Drung
** Changed in: matplotlib (Ubuntu)
   Status: New => Confirmed

-- 
importing matplotlib gives warning
https://bugs.launchpad.net/bugs/299381
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 299381] Re: importing matplotlib gives warning

2008-11-21 Thread tobal
I have the same problem in Intrepid Ibex with my python programs when i
load pylab in my projects, it doesn't occur in Hardy

-- 
importing matplotlib gives warning
https://bugs.launchpad.net/bugs/299381
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs