Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wine install of python in x86_64 system #7

Open
codeanticode opened this issue Sep 19, 2011 · 5 comments
Open

wine install of python in x86_64 system #7

codeanticode opened this issue Sep 19, 2011 · 5 comments

Comments

@codeanticode
Copy link

Under ubuntu 11.04 64 bits, the installation of the python msi through wine is not possible using the graphical interface of the msi installer because pressing the next button doesn't start the installation, and gives this error:

Trying to load PE image for unsupported architecture (AMD-64)
err:msi:ACTION_CallDllFunction failed to load dll L"C:\users\andres\Temp\msi3948.tmp" (193)
fixme:msi:ControlEvent_SpawnWaitDialog Doing Nothing
Trying to load PE image for unsupported architecture (AMD-64)

However, the installation can be carried out without interface by using the following command:
$wine msiexec /i Downloads/python-2.7.2.amd64.msi /qn TARGETDIR=C:\Python27 ALLUSERS=1

@codeanticode
Copy link
Author

Likewise, to uninstall without GUI:

wine msiexec /x python-2.7.2.amd64.msi /qn

More options command line options:

http://www.python.org/getit/releases/2.5/msi/

@codeanticode
Copy link
Author

However, on a x86_64 Linux system (ubuntu 11.04 64 bits), wine (1.2.2) seems unable to run either Python 2.7.2 for 32 or 64 bits.

Calling the python-wine script gives the following error when Python 2.7 is installed:

Trying to load PE image for unsupported architecture (AMD-64)
err:module:import_dll Loading library python27.dll (which is needed by L"C:\Python27\python.exe") failed (error c000007b).
err:module:LdrInitializeThunk Main exe initialization for L"C:\Python27\python.exe" failed, status c0000135

And the following for Python 64 bits:

Trying to load PE image for unsupported architecture (AMD-64)
err:process:create_process starting 64-bit process L"C:\Python27\python.exe" not supported on this environment
wine: Bad EXE format for C:\Python27\python.exe

Based on this, I would recommend to remove the dependency on the windows binaries of Python, and use native python if possible.

@ylatuya
Copy link
Member

ylatuya commented Sep 27, 2011

This is just a temporal solution until we manage to Python with mingw, which should be possible since there are some patches available.
But anyway, I'd like to review all this process since maybe it's actually possible to use the system one.

@davidhoyt
Copy link
Member

What are the barriers to using the system python installation?

@erm3nda
Copy link

erm3nda commented Apr 1, 2017

@davidhoyt maybe wanting to create binarys for Windows from Ubuntu like me. (https://milkator.wordpress.com/2014/07/19/windows-executable-from-python-developing-in-ubuntu/)

There are many other reason that will require the Windows version... eg, running Windows-only python-based sofrware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants