Python based application help
Python based application help
Hi,
I've managed to install wine on my Mac and set up a windows program successfully. I'm now having issues with another program as it doesn't have a standard .exe file to run in wine.
The problem is the program is a file which is launched as an argument to pythonw.exe.
The shortcut under windows OS points to the following "C:\Program Files\jpk\DP\Misc\python\pythonw.exe" "C:\Program Files\jpk\DP\bin\dp"
I do not know how to go about getting this executing under wine for mac, as you can see from the shortcut above the program directories contain all of the packages for python and java that it needs to run, is it possible to run such a program under wine?
I need this program for work so I would appreciate some help if this can be installed through wine!
Thanks!!!
I've managed to install wine on my Mac and set up a windows program successfully. I'm now having issues with another program as it doesn't have a standard .exe file to run in wine.
The problem is the program is a file which is launched as an argument to pythonw.exe.
The shortcut under windows OS points to the following "C:\Program Files\jpk\DP\Misc\python\pythonw.exe" "C:\Program Files\jpk\DP\bin\dp"
I do not know how to go about getting this executing under wine for mac, as you can see from the shortcut above the program directories contain all of the packages for python and java that it needs to run, is it possible to run such a program under wine?
I need this program for work so I would appreciate some help if this can be installed through wine!
Thanks!!!
Re: Python based application help
If the python script won't run directly on the Mac... (its not Windows specific, but they may have programmed their code Windows specific)... you of course can attempt it under Wine, but you'll need to install that python executable and everything else you need as well in the same wineprefix, and run it just like Windows would.
Re: Python based application help
Hi thank you for your reply, I suspect that the GUI that they have used makes calls to windows API. The program itself seems to be consisting of many sub modules that involve java and other scripts. I think the python is just an initialisation script that launches the actual application. I have never seen anything like this before especially since the company has actually targeted the windows platform specifically.
The application directory contains a directory with the java, python and jython console launchers inside with all of their files, so should the paths all point to those directories? Here is what I put into the terminal I am not sure if this is the correct way to start this application in wine?
cd ~/.wine/drive_c/Program\ Files/
wine jpk\\DP\\Misc\\python\\pythonw.exe jpk\\DP\\bin\\dp
and here is the error that comes out
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
fixme:msvcrt:MSVCRT__sopen_s : pmode 0x01ff ignored
ERROR: Java application launcher not found: Misc\\java\\bin\\javaw.exe
Java application launcher not found: Misc\\java\\bin\\javaw.exe
Having taken a look in that directory the javaw.exe file is present, it is very difficult to see how this program is working. Is the path I showed from the windows shortcut in my first post the same as the one I used in wine in this post (above)?
The application directory contains a directory with the java, python and jython console launchers inside with all of their files, so should the paths all point to those directories? Here is what I put into the terminal I am not sure if this is the correct way to start this application in wine?
cd ~/.wine/drive_c/Program\ Files/
wine jpk\\DP\\Misc\\python\\pythonw.exe jpk\\DP\\bin\\dp
and here is the error that comes out
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
fixme:msvcrt:MSVCRT__sopen_s : pmode 0x01ff ignored
ERROR: Java application launcher not found: Misc\\java\\bin\\javaw.exe
Java application launcher not found: Misc\\java\\bin\\javaw.exe
Having taken a look in that directory the javaw.exe file is present, it is very difficult to see how this program is working. Is the path I showed from the windows shortcut in my first post the same as the one I used in wine in this post (above)?
Re: Python based application help
You'll need to try to get Java properly installed inside Wine... just copying the javaw.exe doesn't always work.
It may not be checking it correctly due tot he ntlm_auth error though... which you need to install Samba on your Mac to get.
It may not be checking it correctly due tot he ntlm_auth error though... which you need to install Samba on your Mac to get.
Re: Python based application help
Hi,
I'm really struggling to install samba. What do you recommend? I've tried this:
sudo port -d sync
sudo port install samba3
and I have this error:
Error: org.macports.build for port samba3 returned: command execution failed
Please see the log file for port samba3 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_samba3/samba3/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port samba3 failed
.... wine is up to date as I just updated it before trying this.
Can anyone help?
I'm really struggling to install samba. What do you recommend? I've tried this:
sudo port -d sync
sudo port install samba3
and I have this error:
Error: org.macports.build for port samba3 returned: command execution failed
Please see the log file for port samba3 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_samba3/samba3/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port samba3 failed
.... wine is up to date as I just updated it before trying this.
Can anyone help?
Re: Python based application help
you'd need to look at that log... but since thats macports failing and not Wine, you may need to get help from Macports.racheelou wrote:Hi,
I'm really struggling to install samba. What do you recommend? I've tried this:
sudo port -d sync
sudo port install samba3
and I have this error:
Error: org.macports.build for port samba3 returned: command execution failed
Please see the log file for port samba3 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_samba3/samba3/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port samba3 failed
.... wine is up to date as I just updated it before trying this.
Can anyone help?
Re: Python based application help
I installed samba via SMBup.
Now my error is different to the original one:
Rachels-MacBook-Pro:~ Rachel$ cd ~/.wine/drive_c/Program\ Files/
Rachels-MacBook-Pro:Program Files Rachel$ ls
Common Files PANalytical
Internet Explorer jpk
Rachels-MacBook-Pro:Program Files Rachel$ cd jpk
Rachels-MacBook-Pro:jpk Rachel$ ls
DP
Rachels-MacBook-Pro:jpk Rachel$
Rachels-MacBook-Pro:jpk Rachel$ cd DP
Rachels-MacBook-Pro:DP Rachel$ ls
Help Uninstall.exe config lib xml
INSTALL.LOG __init__.py data pool
Misc bin etc scripts
NEWS.txt com jpktools src
Rachels-MacBook-Pro:DP Rachel$ wine jpk\\DP\\Misc\\python\\pythonw.exe jpk\\DP\\bin\\dp
wine: cannot find 'jpk\DP\Misc\python\pythonw.exe'
Rachels-MacBook-Pro:DP Rachel$ ls
Help Uninstall.exe config lib xml
INSTALL.LOG __init__.py data pool
Misc bin etc scripts
NEWS.txt com jpktools src
Rachels-MacBook-Pro:DP Rachel$ cd misc
Rachels-MacBook-Pro:misc Rachel$ ls
java jython python
Rachels-MacBook-Pro:misc Rachel$ cd python
Rachels-MacBook-Pro:python Rachel$ ls
DLLs Removepywin32.exe pythonw.exe
Lib include tcl
RemovePyVISA.exe libs w9xpopen.exe
Removepyserial.exe python.exe
Rachels-MacBook-Pro:python Rachel$ wine jpk\DP\Misc\python\pythonw.exe jpk\DP\bin\dp
wine: cannot find L"C:\\windows\\system32\\jpkDPMiscpythonpythonw.exe"
Rachels-MacBook-Pro:python Rachel$ wine jpk/DP/Misc/python/pythonw.exe jpk/DP/bin\dp
wine: cannot find 'jpk/DP/Misc/python/pythonw.exe'
Rachels-MacBook-Pro:python Rachel$
Can you help?
Now my error is different to the original one:
Rachels-MacBook-Pro:~ Rachel$ cd ~/.wine/drive_c/Program\ Files/
Rachels-MacBook-Pro:Program Files Rachel$ ls
Common Files PANalytical
Internet Explorer jpk
Rachels-MacBook-Pro:Program Files Rachel$ cd jpk
Rachels-MacBook-Pro:jpk Rachel$ ls
DP
Rachels-MacBook-Pro:jpk Rachel$
Rachels-MacBook-Pro:jpk Rachel$ cd DP
Rachels-MacBook-Pro:DP Rachel$ ls
Help Uninstall.exe config lib xml
INSTALL.LOG __init__.py data pool
Misc bin etc scripts
NEWS.txt com jpktools src
Rachels-MacBook-Pro:DP Rachel$ wine jpk\\DP\\Misc\\python\\pythonw.exe jpk\\DP\\bin\\dp
wine: cannot find 'jpk\DP\Misc\python\pythonw.exe'
Rachels-MacBook-Pro:DP Rachel$ ls
Help Uninstall.exe config lib xml
INSTALL.LOG __init__.py data pool
Misc bin etc scripts
NEWS.txt com jpktools src
Rachels-MacBook-Pro:DP Rachel$ cd misc
Rachels-MacBook-Pro:misc Rachel$ ls
java jython python
Rachels-MacBook-Pro:misc Rachel$ cd python
Rachels-MacBook-Pro:python Rachel$ ls
DLLs Removepywin32.exe pythonw.exe
Lib include tcl
RemovePyVISA.exe libs w9xpopen.exe
Removepyserial.exe python.exe
Rachels-MacBook-Pro:python Rachel$ wine jpk\DP\Misc\python\pythonw.exe jpk\DP\bin\dp
wine: cannot find L"C:\\windows\\system32\\jpkDPMiscpythonpythonw.exe"
Rachels-MacBook-Pro:python Rachel$ wine jpk/DP/Misc/python/pythonw.exe jpk/DP/bin\dp
wine: cannot find 'jpk/DP/Misc/python/pythonw.exe'
Rachels-MacBook-Pro:python Rachel$
Can you help?
Re: Python based application help
I'm guessing you don't know how to use Terminal.racheelou wrote:I installed samba via SMBup.
Now my error is different to the original one:
Rachels-MacBook-Pro:~ Rachel$ cd ~/.wine/drive_c/Program\ Files/
Rachels-MacBook-Pro:Program Files Rachel$ ls
Common Files PANalytical
Internet Explorer jpk
Rachels-MacBook-Pro:Program Files Rachel$ cd jpk
Rachels-MacBook-Pro:jpk Rachel$ ls
DP
Rachels-MacBook-Pro:jpk Rachel$
Rachels-MacBook-Pro:jpk Rachel$ cd DP
Rachels-MacBook-Pro:DP Rachel$ ls
Help Uninstall.exe config lib xml
INSTALL.LOG __init__.py data pool
Misc bin etc scripts
NEWS.txt com jpktools src
Rachels-MacBook-Pro:DP Rachel$ wine jpk\\DP\\Misc\\python\\pythonw.exe jpk\\DP\\bin\\dp
wine: cannot find 'jpk\DP\Misc\python\pythonw.exe'
Rachels-MacBook-Pro:DP Rachel$ ls
Help Uninstall.exe config lib xml
INSTALL.LOG __init__.py data pool
Misc bin etc scripts
NEWS.txt com jpktools src
Rachels-MacBook-Pro:DP Rachel$ cd misc
Rachels-MacBook-Pro:misc Rachel$ ls
java jython python
Rachels-MacBook-Pro:misc Rachel$ cd python
Rachels-MacBook-Pro:python Rachel$ ls
DLLs Removepywin32.exe pythonw.exe
Lib include tcl
RemovePyVISA.exe libs w9xpopen.exe
Removepyserial.exe python.exe
Rachels-MacBook-Pro:python Rachel$ wine jpk\DP\Misc\python\pythonw.exe jpk\DP\bin\dp
wine: cannot find L"C:\\windows\\system32\\jpkDPMiscpythonpythonw.exe"
Rachels-MacBook-Pro:python Rachel$ wine jpk/DP/Misc/python/pythonw.exe jpk/DP/bin\dp
wine: cannot find 'jpk/DP/Misc/python/pythonw.exe'
Rachels-MacBook-Pro:python Rachel$
Can you help?
if you are currently in a folder then type a relative folder path... it is relative to the folder you are in.
you had...
of course that will not work. you were already in jpk/DP so it cannot find a jpk/DP/jdk/DP folder...Rachels-MacBook-Pro:DP Rachel$ wine jpk\\DP\\Misc\\python\\pythonw.exe jpk\\DP\\bin\\dp
should try something like this...
cd ~/.wine/drive_c/Program\ Files/
wine jpk/DP/Misc/python/pythonw.exe jpk/DP/bin/dp
but that still will not work right... what I'd do is this...
Code: Select all
cd ~/.wine/drive_c/Program\ Files/jpk/DP/Misc/python/
wine pythonw.exe $HOME/.wine/drive_c/Program\ Files/jpk/DP/bin/dp