Monkey Studio IDE The way IDEs should be

Monkey Studio on Win7 / 64 probs

I was looking for a good IDE to develop some simple python programs for lab experiments. Because also a GUI is highly desired I decided to try Monkey Studio as an addition to a PytonXY installation. But unfortunately there seems to be some problems with the implementation on Windows or may be also only on a 64bit system, I don’t know, maybe you can help.
Here are some of the symptoms that something goes wrong.
Just opened MonkeyStudio 1.904 on a Win7/64 PC and created a new PyQt Gui Project Name “Hello World” without any elements in the GUI.
Checking Interpreter 'Generate current form implementation' gives
---------------------------------------------------------------------------------------------------------------
*** State changed to Starting
*** State changed to #1 (Starting) for command: 'Generate current form implementation'
*** State changed to Running
*** State changed to #2 (Running) for command: 'Generate current form implementation'
********************************************************************************
* Started : 'Generate current form implementation'
* Command : C:\Windows\system32\cmd.exe /C \Lib\site-packages\PyQt4\pyuic4.bat "C:\Users\a3admin\Documents\Monkey Studio\Projects\tutorial_test2\mainwindow.ui" -o "C:\Users\a3admin\Documents\Monkey Studio\Projects\tutorial_test2\mainwindow.ui".py
* Working Directory: C:\Users\a3admin\Documents\Monkey Studio\Projects\tutorial_test2
********************************************************************************
The system cannot find the path specified.
*** State changed to Not Running
*** State changed to #0 (Not Running) for command: 'Generate current form implementation'
********************************************************************************
* Finished : 'Generate current form implementation'
* Exit Code : #1
* Status Code: #0
The exited with exit code 1
********************************************************************************
----------- ------------------- ---------------------
Apparently in the command there are two errors:
1) The path to “pyuic.bat” misses ‘c:\Python27’ before,
2) The output file should end with .py not the strange form mainwindow.ui” .py
But surprisingly if I let the Interpreter “Run” the form everything’s seem to be o.k.
(If I start the pyuic.bat just by hand with the right arguments (filenames) it is running without any problems. !!)
Next I add a “PushButton” to the GUI and let the Interpreter again “Run” the GUI. Everything seems fine, the PushButton is there, but the mainwindow.py is the same as before with the empty GUI also if I reload the file.
The next problem is about the Signal / Slot editor. This is not active, so I can not add any signal/slot connection to the GUI.
With the inserted PushButton I can also “Run” the GUI by the Interpreter, but in the case I generate the updated Form by hand (calling the pyuic.bat with the right path and filenames) the new mainwindow.py is created but the interpreter can not run the GUI form anymore.
---- ----------- ---------------------- --------------------- ----------------
*** State changed to Starting
*** State changed to #1 (Starting) for command: 'Run'
*** State changed to Running
*** State changed to #2 (Running) for command: 'Run'
********************************************************************************
* Started : 'Run'
* Command : C:\Python27\pythonw.exe main.py
* Working Directory: C:\Users\a3admin\Documents\Monkey Studio\Projects\tutorial_test2
********************************************************************************
Traceback (most recent call last):
File "main.py", line 7, in
from mainwindow import MainWindow
ImportError: cannot import name MainWindow
*** State changed to Not Running
*** State changed to #0 (Not Running) for command: 'Run'
********************************************************************************
* Finished : 'Run'
* Exit Code : #1
* Status Code: #0
The exited with exit code 1
********************************************************************************
--- ---- ---- ---- ----- ------ ----
I guess that’s enough to decide if there is any hope or if I should fiddle out the problem that I had with the Qt Designer of the PythonXY package and to forget the IDE for the moment.

Thanks in advance
Frank

pasnox's picture

Hi, On windows, I read the

Hi,

On windows, I read the registry to discover the python installation.
Maybe the key is not the same on a 64bits system.
Could you give me the key to the python interpreter found on your system ?
You can read mks source code, in plugins/interpreter/pyqt to check which key i currently read.
Alternatavively, you can also check: http://monkeystudio.org/node/179
Regarding your second problem it could be related to 2 things:

1- You created a MainWindow form without choosing a central widget. see http://monkeystudio.org/node/162
2- You activated Assistant plugin and Designer plugins at the same time.
It looks like it exists incompatibility in the libs making the plugins not working fine.
Only activate on ( Designer in your case, and disable Assistant ) and restart mks.
The problem should be gone.

Regards,

You can seek team on IRC.
If you don't know what is IRC, then go to the IRC page.
If you want an answer, please be explicit and verbose.
Help by email will be ignored.