At 04:42 PM 1/12/2011 +0800, Pherl Liu wrote:
Hi,

I got some error messages when using ez_setup to download and use the easy_install.

# setup.py
from ez_setup import use_setuptools
use_setuptools()

from setuptools import setup

setup(name = "blabla",
      test_suite = "some_test",
      namespace_package = ["some_namespace"],
            # many other options
)


So I guess there might be some import problem in my machine (ubuntu lucid) that the pkg_resources.py cannot be loaded from the egg?

Try running this script in your project directory:

   from ez_setup import use_setuptools
   use_setuptools()

   import sys, setuptools, pkg_resources
   print sys.path
   print pkg_resources.__file__
   print setuptools.__file__

This should tell us what's going on with your "import problem" more specifically. ;-)
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to