WxPython setup for Python Plugin
I am using the Python plugin in IntelliJ Ultimate 10.5.
I want to be able to copy some of the WxPython demos into IntelliJ and run them using the Python plugin.
Here are the last few lines of code from the demo that I am trying to run:
if __name__ == '__main__':
import sys,os
import run
run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])
When running from IntelliJ, it can't find the WxPython 'run' module, so I get this message:
Traceback (most recent call last):
File "C:/MyPython/HelloWx/MyFrameDemo.py", line 84, in <module>
import run
ImportError: No module named run
I added the WxPython code to my project's library, so I can see the run.py module in IntelliJ's project window and open it in the IntelliJ editor.
So not sure what else needs to be done so that the WxPython modules will be available to the plugin.
I want to be able to copy some of the WxPython demos into IntelliJ and run them using the Python plugin.
Here are the last few lines of code from the demo that I am trying to run:
if __name__ == '__main__':
import sys,os
import run
run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])
When running from IntelliJ, it can't find the WxPython 'run' module, so I get this message:
Traceback (most recent call last):
File "C:/MyPython/HelloWx/MyFrameDemo.py", line 84, in <module>
import run
ImportError: No module named run
I added the WxPython code to my project's library, so I can see the run.py module in IntelliJ's project window and open it in the IntelliJ editor.
So not sure what else needs to be done so that the WxPython modules will be available to the plugin.
Please sign in to leave a comment.
If you do want to keep wxPython as part of your project, you need to make sure that its containing directory is marked as a source root in the project structure settings.