Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 9356  / 2 Years ago, wed, november 9, 2022, 11:57:56

I am trying to install Python 2.6 on WINE 1.5 in Ubuntu 12.04. (Yes, I need the WINE version, not the native Ubuntu version).



I have WINE 1.5 running just fine. I do



winetricks python26


Which seems to install python26 just fine, but in the ~/.local/share/wineprefixes/python26/ directory, rather than in .wine/c_drive/...



When I try wine python I'm told



wine: cannot find L"C:windowssystem32python.exe"


How do I tell wine to look in the location where winetricks put this file? Presumably there is a way to set python path?



My Attempts



I did try copying the python.exe from the ~/.local/share/wineprefixes/python26/ directory into the .wine/drive_c/system32 directory, but then simply get an error about a missing DLL:



err:module:import_dll Library python26.dll (which is needed by L"C:windowssystem32python.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:windowssystem32python.exe" failed, status c0000135


but that doesn't seem the right way to do this anyhow.



I also tried running winecfg and adding an application, and pointing it to the python.exe file in the ~/.local/share/wineprefixes/python26/ directory, but I get the same



wine: cannot find L"C:windowssystem32python.exe"


error. Thanks.


More From » wine

 Answers
3

When you run wine python, wine will assume that you are running it from the default prefix in ~/.wine.



To make it use another prefix, in your case you need to running with the WINEPREFIX option as such:



WINEPREFIX=/path/to/wineprefix wine executable


It should do the trick.


[#35194] Friday, November 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
termetalli

Total Points: 326
Total Questions: 127
Total Answers: 110

Location: Sao Tome and Principe
Member since Sat, Sep 12, 2020
4 Years ago
termetalli questions
Sat, Apr 30, 22, 17:54, 2 Years ago
Mon, Dec 6, 21, 05:24, 2 Years ago
Thu, Jun 30, 22, 00:32, 2 Years ago
Mon, Dec 19, 22, 00:15, 1 Year ago
;