Re: [Myghty-users] What's this pkg_resources thing?
Brought to you by:
zzzeek
From: Ben B. <be...@gr...> - 2005-11-30 02:35:49
|
On Nov 29, 2005, at 6:11 PM, sk...@po... wrote: > I installed Myghty 0.99a this evening. As a side-effect it > installed a > bunch of other stuff as egg files. This seems to be something to > do with > setuptools. The install process emitted several messages like this: > > Because this distribution was installed --multi-version or -- > install-dir, > before you can import modules from this package in an > application, you > will need to 'import pkg_resources' and then use a 'require()' > call > similar to one of these examples, in order to select the > desired version: > > pkg_resources.require("Myghty") # latest installed version > pkg_resources.require("Myghty==0.99a") # this exact version > pkg_resources.require("Myghty>=0.99a") # this version or > higher > > Unfortunately, it seems to have seen fit to not install a > pkg_resources > module that I can import directly. There is one in the > setuptools.06a5-py2.3.egg directory (not a package). How am I > supposed to > use this? What command did you use to install Myghty? There's nothing in it that should be using multi-version so I'm un-sure why this would happen. Also, your setuptools is out of date, so this might have been fixed. Run: easy_install -U -D setuptools Then: easy_install -U -D Myghty It should hopefully update you to the latest setuptools, and Myghty, and everything should be fine. (Lots of 'shoulds', I know) Cheers, Ben |