Error returned when running imdbpy2sql.py with MyS

2019-08-12 16:40发布

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条回答
小情绪 Triste *
2楼-- · 2019-08-12 17:26

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".

查看更多
登录 后发表回答