gknows / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

starting pyscripter as portable app ... #754

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Not able to start PyScripter as a portable application following the batch file 
method given the FAQ.

SET PYTHONHOME="C:\WinPython\WinPython-32bit-2.7.5.3\python-2.7.5"
PyScripter --PYTHON27 --PYTHONDLLPATH 
"C:\WinPython\WinPython-32bit-2.7.5.3\python-2.7.5" %1 %2 %3 %4 %5 %6 %7
-------
What is the expected output? What do you see instead?

I see a cmd window come up and disappear quickly, no messages.

It would be better if PyScripter GUI were to come up and then the user can 
point it to the location of Python executable and DLLs using a GUI.
---------
What version of the product are you using? On what operating system?
Win7, 32 bit and 64 bit.
WinPython 32 bit 2.7.5.3, not registered with Win7.
Pyscripter 2.5.3, 32 bit.

Please provide any additional information below.

Original issue reported on code.google.com by nikhild1...@gmail.com on 14 Nov 2013 at 8:57

GoogleCodeExporter commented 9 years ago
same problem here.

I also opened a command window (DOS box) and launched the batch from there,
no errors or warnings whatsoever. 

It would be great if this issue was solved, as more and more environments are 
locked for installation and "portable" is the only option.

thanks, Stef

Original comment by Stef.Mientki@gmail.com on 4 Jan 2014 at 9:42

GoogleCodeExporter commented 9 years ago
Is the batch file in the same directory as PyScripter?  If not you need to 
specify the full path to PyScripter.

Original comment by pyscripter on 23 Mar 2015 at 3:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The batch file is in the same folder as PyScripter.exe. Nevertheless I gave the 
full path. Still no message and no Pyscripter window. 

My batch file looks like this:
---------------------
SET PYTHONHOME="C:\WinPython-64bit-2.7.8.3\python-2.7.8.amd64\"
C:\Users\desh752\Downloads\PyScripter-v2.6.0-x64\PyScripter\PyScripter.exe 
--PYTHON27 --PYTHONDLLPATH "C:\WinPython-64bit-2.7.8.3\python-2.7.8.amd64\" %1 
%2 %3 %4 %5 %6 %7
---------------------
If you accidentally mix the 32/64 bit versions, you get a message box that says 
"Error 193: Could not open...". But if you use everythingn 64 bit correctly, no 
message, no window.

Original comment by nikhild1...@gmail.com on 23 Mar 2015 at 10:38

GoogleCodeExporter commented 9 years ago
I have installed Winpython without registering at c:\WinPython

The following winpyscripter.cmd works for me.

SET PYTHONHOME=C:\WinPython\python-2.7.9.amd64
SET PYTHONPATH=C:\WinPython\python-2.7.9.amd64\Lib
SET HOME=C:\WinPython\settings
SET 
PATH=C:\WinPython\python-2.7.9.amd64\Lib\site-packages\PyQt4;C:\WinPython\python
-2.7.9.amd64\;%PATH%
SET WINPYDIR=C:\WinPython\python-2.7.9.amd64
SET WINPYVER=2.7.9.3
PyScripter.exe --PYTHON27 --PYTHONDLLPATH "C:\WinPython\python-2.7.9.amd64" %1 
%2 %3 %4 %5 %6 %7

Also if you run WinPython Command Prompt.exe you go to the PyScripter directory 
and type:

PyScripter.exe --PYTHON27 --PYTHONDLLPATH "C:\WinPython\python-2.7.9.amd64" 

You get the same result.

Original comment by pyscripter on 24 Mar 2015 at 5:58

GoogleCodeExporter commented 9 years ago
Thanks! The winpyscripter.cmd worked for me. 

Your second suggestion to start a WinPython Command Prompt and then run 
PyScripter.exe did not. It seems that at least PYTHONHOME and PYTHONPATH are 
needed, even from WinPython Command Prompt.

Now, that I have PyScripter come up and run fine, I see another issue when I 
close PyScripter. I get a message box that says "Runtime Error!   ... This 
application has requested the Runtime to terminate it in an unusual way. ..."

I would suggest adding your longer script to the FAQs. Without it, Pyscripter 
would not have started for me.

Original comment by nikhild1...@gmail.com on 24 Mar 2015 at 3:28

GoogleCodeExporter commented 9 years ago
Here PyScripter closes without any issues.  I will add the script to the FAQs.

Original comment by pyscripter on 24 Mar 2015 at 3:33