Can you explain what is causing this error?
[PHP]% 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 [/PHP] But if I switch the order of the imports, the error goes away: [PHP]% cat test.py #!/usr/bin/env python import matplotlib import MySQLdb % test.py % [/PHP] This is occurring on a fresh Intrepid install. I tried googling "_mysql was already imported" for an answer, but came up empty.
[PHP] % apt-cache policy python-matplotlib python-matplotlib: Installed: 0.98.3-4ubuntu1
% apt-cache policy python-mysqldb python-mysqldb: Installed: 1.2.2-7[/PHP]