[Distutils] Unable to import python script after installing using easy_install

rayterrill rayjohnterrill at gmail.com
Sat Jan 10 22:59:20 CET 2009

>The above is an indication that your source code isn't being 
>found.  My guess is that since you're saying you want to install a 
>"script" but can't import it, what you actually have is a standalone 
>*module*, not a script or a package.  find_packages() cannot find 
>such modules, you must list them individually, e.g.:

>    py_modules = ['randomscript'],

>rather than listing them in the 'packages' parameter.

I changed the setup.py to use the py_modules parameter vs. the
find_packages() parameter, and it does work correctly now.
View this message in context: http://www.nabble.com/Unable-to-import-python-script-after-installing-using-easy_install-tp21380532p21393325.html
Sent from the Python - distutils-sig mailing list archive at Nabble.com.

More information about the Distutils-SIG mailing list