问题
I am working on getting IMDbPY installed and working and I have come to a point where I am working on pulling in all of the data from the flat (text) files in to a (MySQL) database.
When I run the appropriate command:
imdbpy2sql.py -d /tmp/IMDB/ -u 'mysql://user:password@host/database'
I recieve the following error:
Traceback (most recent call last): File "/usr/local/bin/imdbpy2sql.py", line 4, in <module>
import pkg_resources File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2672, in <module>
working_set.require(__requires__) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 654, in require
needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 552, in resolve
raise DistributionNotFound(req) pkg_resources.DistributionNotFound: Tempita>=0.4
I have tried using the -o [sqlobject|sqlalchemy]
options as well but to no avail.
I am simply looking for a resolution or the cause for this error so that I can move forward. Has anyone seen this before or know of the cause?
My apologies if this is simple but `I am by no means a Python guru and in searching the internet for answers I have come up bust.
Any help is greatly appreciated!
回答1:
You need the Tempita package. Install it using your distribution's package manager - e.g., for Ubuntu it would be "apt-get install python-tempita".
来源:https://stackoverflow.com/questions/8177402/error-returned-when-running-imdbpy2sql-py-with-mysql-database