Can you explain what is causing this error?
PHP Code:
% cat test.py
#!/usr/bin/env python
import MySQLdb
import matplotlib
% test.py
/usr/lib/python2.5/site-packages/pytz/__init__.py:29: UserWarning: Module _mysql was already imported from /var/lib/python-support/python2.5/_mysql.so, but /var/lib/python-support/python2.5 is being added to sys.path
from pkg_resources import resource_stream
But if I switch the order of the imports, the error goes away:
PHP Code:
% cat test.py
#!/usr/bin/env python
import matplotlib
import MySQLdb
% test.py
%
This is occurring on a fresh Intrepid install. I tried googling
"_mysql was already imported" for an answer, but came up empty.
PHP Code:
% apt-cache policy python-matplotlib
python-matplotlib:
Installed: 0.98.3-4ubuntu1
% apt-cache policy python-mysqldb
python-mysqldb:
Installed: 1.2.2-7
Bookmarks