I've got the wxPython blues

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 01 January 2011   #1
I've got the wxPython blues

The script editor won't let me use wxpython. I'm using the version that's compatible with python 2.6 and the version of maya that I'm using is 2010.

The error that it gives me when i type in "import wx" is

Error: ImportError: No module named wx


any help would be much appreciated!
 
Old 01 January 2011   #2
you need to add wxpython path into maya's path,like this:

import sys
if sys.path.__contains__(r'D:\Python25\Lib\site-packages\wx-2.8-msw-unicode'):
pass
else:
sys.path.append(r'D:\Python25\Lib\site-packages\wx-2.8-msw-unicode')

#import wx # it will work

btw, maya has itself information loop sys,wx script could be executed in maya but could not interact with maya.
__________________
I'm steelheart,I'm still hard.

INVINCIBLE0918@126.com
 
Old 01 January 2011   #3
Thanks for responding! I was beginning to think that I was on my own. I'll give that a shot.
 
Old 01 January 2011   #4
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:10 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.