[wingide-users] WingIDE import issues

nnp version5 at gmail.com
Fri Oct 27 11:13:56 MDT 2006


Hi, I am attempting to use pygame with WingIDE personal edition on OS X 10.4

When I include the line
import pygame

though i get the following error
ImportError: No module named pygame

That code works fine on the command line or from the python shell interface
in Wing though. As well as this pygame appears in the tab-completion list of
modules available. The sys.path variable appears different when Wing runs it
in debug mode. From the python shell in Wing (where the import works) it is

/Applications/WingIDE.app/Contents/MacOS/src/debug/server
/Library/Frameworks/Python.framework/Versions/2.4/lib/python24.zip
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-darwin
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac/lib-scriptpackages
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-tk
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PyObjC

but when I run the code via debug mode it is

/Users/nnp/projects
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python23.zip
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-dynload
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.3/Extras/lib/python

I have tried changing the python path variable for the project to
/Applications/WingIDE.app/Contents/MacOS/src/debug/server:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python24.zip:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-darwin:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac/lib-scriptpackages:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-tk:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PyObjC

but when I do I get the following error

Some property warnings were encountered:

- PYTHONPATH entry
'/Applications/WingIDE.app/Contents/MacOS/src/debug/server:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python24.zip:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-darwin:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac/lib-scriptpackages:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-tk:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PyObjC'
is a partial path -- We strongly recommend using full paths here to avoid
problems locating source files for analysis and debugging.  If you must use
a partial path, be sure to set Initial Directory under the Debug tab or
define a Main Debug File so that the starting directory for all files in
your project is unambiguous.
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python24.zip' does not
exist or cannot be found
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4' is also a
partial path
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4' does not
exist or cannot be found
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-darwin'
is also a partial path
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-darwin'
does not exist or cannot be found
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac' is
also a partial path
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac'
does not exist or cannot be found
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac/lib-scriptpackages'
is also a partial path
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac/lib-scriptpackages'
does not exist or cannot be found
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-tk' is
also a partial path
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-tk' does
not exist or cannot be found
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload'
is also a partial path
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload'
does not exist or cannot be found
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages'
is also a partial path
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages'
does not exist or cannot be found
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App'
is also a partial path
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App'
does not exist or cannot be found
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PyObjC'
is also a partial path
- PYTHONPATH entry '
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PyObjC'
does not exist or cannot be found

I have no idea what those partial path errors are about but for the path
does not exist errors, those are correct, a lot of the stuff in my path
doesn't actually exist. Any suggestions?

Thanks,
nnp
-- 
http://silenthack.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/wingide-users/attachments/20061027/6bd5270d/attachment.html


More information about the wingide-users mailing list