[wingide-users] Oddness using WingIDE with custom virtualenv project
Lawson English
lenglish5 at cox.net
Wed Sep 10 14:27:15 MDT 2008
Hi all, I'm trying to use WingIDE with the pyogp project, which is an
open source virtual reality interoperability project to define protocols
to allow login, teleport, item sharing, group membership & IM, etc., to
be shared between not-necessarily compatible virtual worlds.
Anyway, the pyogp project sandbox is defined in a nice little
installation setup described here:
http://wiki.secondlife.com/wiki/Pyogp/Client_Lib/The_Development_Sandbox
I can get things to more or less work with WingIDE as long as I don't
try to execute anything from the IDE (sigh) and instead use the command
line option.
This is kinda frustrating. The guy who setup the project uses a few
interesting techniques, like defining extra sys.path entries in the
shell that calls various libraries. When I attempt to call these shells
from the IDE itself, I get path errors. E.G., "bin/login
avatar_first_name avatar_last_name" works fine from the command line,
but gets a path error at the first import line when run from the IDE,
even though it changes sys.path to included paths to those specific modules.
In other words, the following file works from the command line, but
gives an AttributeError: __path__ at the line
import pyogp.lib.base.example
if I run it from the IDE. He lives in Denmark and just went on vacation
for 2 weeks. Any suggestions on how can get the IDE to work?
Thanks,
Lawson
#!/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
import sys
sys.path[0:0] = [
'/Users/lawsonenglish/libdev/eggs/setuptools-0.6c8-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/indra.base-1.0-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/uuid-1.30-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/wsgiref-0.1.2-py2.5.egg',
'/Users/lawsonenglish/libdev/src/pyogp.lib.base',
'/Users/lawsonenglish/libdev/src/pyogp.interop',
'/Users/lawsonenglish/libdev/eggs/indra.ipc-1.0-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/grokcore.component-1.5.1-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/WebOb-0.9.2-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/zope.component-3.5.1-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/zope.interface-3.4.1-py2.5-macosx-10.3-fat.egg',
'/Users/lawsonenglish/libdev/eggs/indra.util-1.0-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/zope.event-3.4.0-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/zope.configuration-3.4.0-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/martian-0.10-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/zope.i18nmessageid-3.4.3-py2.5-macosx-10.3-fat.egg',
'/Users/lawsonenglish/libdev/eggs/zope.proxy-3.4.2-py2.5-macosx-10.3-fat.egg',
'/Users/lawsonenglish/libdev/eggs/zope.security-3.5.2-py2.5-macosx-10.3-fat.egg',
'/Users/lawsonenglish/libdev/eggs/zope.deferredimport-3.4.0-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/zope.deprecation-3.4.0-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/zope.schema-3.4.0-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/zope.location-3.4.0-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/zope.exceptions-3.5.2-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/pytz-2008c-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/zope.testing-3.6.0-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/zope.traversing-3.5.0a4-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/zope.publisher-3.5.3-py2.5.egg',
'/Users/lawsonenglish/libdev/eggs/zope.i18n-3.5.0-py2.5.egg',
]
import pyogp.lib.base.example
if __name__ == '__main__':
pyogp.lib.base.example.main()
More information about the wingide-users
mailing list