imdb导mysql,使用MySQL数据库运行imdbpy2sql.py时返回错误

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

import pkg_resources File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2672, in

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!

解决方案

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值