| | |
Py2exe and Jython - Please help me!
![]() |
I have created a project using Jython (there was no bug in compling it by my IDE)
I also have read the topic named Py2exe help (Ene Uran---Oct 23rd 2006 6:43 pm) and I can tell you that it really helped me so much. But in this project, I cannot create an excutable .exe file using Py2exe.
After running the setup file I also received 2 folders: dist and built. Inside the dist folder I saw 3 files: MainForm.exe file, MSVCR71.dll file and w9xpopen file. So I tried clicking on .exe file to run it ... and what I had to see are: a small window telling me it cannot run and a text file named MainForm.exe.log --- its content is:
Traceback (most recent call last):
File "MainForm.py", line 1, in ?
File "zipextimporter.pyo", line 78, in load_module
File "JyGUI\JyFrame.pyo", line 1, in ?
ImportError: No module named javax.swing
So what I can see is that it mustn't have imported javax.swing module into the process.
Could someone please tell me how to deal with this problem???
Have a nice day!
Thank you!
I also have read the topic named Py2exe help (Ene Uran---Oct 23rd 2006 6:43 pm) and I can tell you that it really helped me so much. But in this project, I cannot create an excutable .exe file using Py2exe.
After running the setup file I also received 2 folders: dist and built. Inside the dist folder I saw 3 files: MainForm.exe file, MSVCR71.dll file and w9xpopen file. So I tried clicking on .exe file to run it ... and what I had to see are: a small window telling me it cannot run and a text file named MainForm.exe.log --- its content is:
Traceback (most recent call last):
File "MainForm.py", line 1, in ?
File "zipextimporter.pyo", line 78, in load_module
File "JyGUI\JyFrame.pyo", line 1, in ?
ImportError: No module named javax.swing
So what I can see is that it mustn't have imported javax.swing module into the process.Could someone please tell me how to deal with this problem???
Have a nice day!
Thank you!
Hm, I think that you've never used Py2exe. After Processing the compilation using py2exe, you receive 3 files as I told you at the top of this page. It's Dynamic link library file, its function is to reduce the size of .exe file and supply necessary functions in the run of exe file.
I think we can use py2exe in this sense, but I can't solve it.
My problem is still remaining...
thks
I think we can use py2exe in this sense, but I can't solve it.
My problem is still remaining...
thks
MSVCR71.dll is the Microsoft runtime C++ library. I don't think Py2Exe is going to mess with that! You can distribute that file, but you cannot change it or get the wrath of big MS!
Jython compiles Python source code down to Java bytecodes which can run directly on a JVM. You have to use the Java utility corresponding to Py2Exe! Py2Exe only handles Python byte code.
Jython compiles Python source code down to Java bytecodes which can run directly on a JVM. You have to use the Java utility corresponding to Py2Exe! Py2Exe only handles Python byte code.
Last edited by bumsfeld; Oct 31st, 2006 at 1:21 pm.
![]() |
Similar Threads
- need a help regarding "setup" in pyton using py2exe (Python)
- Question about PY2EXE... (Python)
- wxpython and py2exe (Python)
- Py2exe help (Python)
Other Threads in the Python Forum
- Previous Thread: Script wont run on different computer
- Next Thread: Create a Structure
| Thread Tools | Search this Thread |
alarm app beginner cipher cmd cx-freeze data decimals development dictionary directory dynamic error examples feet file float format function generator getvalue gui halp homework http images import input ip itunes java keycontrol leftmouse line linux list lists logging loop maintain maze millimeter module mouse mysqldb number numbers output parsing path port prime programming projects push py2exe pygame pyglet pymailer pyqt python queue random recursion schedule screensaverloopinactive script scrolledtext slicenotation split sqlite ssh string strings sudokusolver table terminal text thread threading time tlapse tuple tutorial ubuntu unicode url urllib urllib2 variable variables ventrilo verify vigenere web webservice wikipedia wx.wizard wxpython xlwt






