bzr python-based installer requires 32-bit python on windows; unclear message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Bazaar |
Medium
|
Unassigned | ||
| Bazaar Windows Installers |
Medium
|
Unassigned |
Bug Description
I have 64-bit python 2.5.2 installed correctly.
The installer claims:
-------
Cannot install
-------
Python version 2.5 required, which was not found in the registry.
-------
OK
-------
This is because it is foolish. Wonderful Windows has detected that it is a foolish 32-bit app, and has pointed it at the nice, safe, 32-bit only area of the registry via. the almight WoW64 emulation layer. This nice, safe 32-bit area of the registry lacks python, as there are no nice, safe pythons installed, only powerful 64-bit pythons.
If you forgive it this folly by allowing it out of the nice, safe box in which it's been placed, and you run it with far too many permissions for such a naïve little application, the post install script quoth:
*** Could not load Python ***
And finally, but possibly less relevantly:
C:\Users\
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "C:\python25\
return run_bzr(argv)
File "C:\python25\
cmd_
File "C:\python25\
return self.run(
File "C:\python25\
result = func(*args, **kwargs)
File "C:\python25\
from bzrlib.version import show_version
File "C:\python25\
from bzrlib import (
File "C:\python25\
class BzrDirMetaForma
File "C:\python25\
_lock_class = lockdir.LockDir
File "C:\python25\
obj = _replace()
File "C:\python25\
obj = factory(self, scope, name)
File "C:\python25\
module = __import_
File "C:\python25\
from bzrlib import (
File "C:\python25\
"We must have one of fcntl, pywin32, or ctypes available"
NotImplementedE
bzr 1.12rc1 on python 2.5.2 (win32)
arguments: ['C:\\python25\
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
--
Windows Vista SP1 x64 Ultimate.
Python 2.5.2 x64.
Mark Hammond (mhammond) wrote : | #1 |
It seems like we should at least give a better message about why.
summary: |
- Installer fails on 64-bit Windows + bzr installer requires 32-bit python on windows |
summary: |
- bzr installer requires 32-bit python on windows + bzr installer requires 32-bit python on windows; unclear message |
Changed in bzr: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Martin Pool (mbp) wrote : | #3 |
See also bug 345998, where this problem was also hit, also asking that there should be a python2.6 installer.
summary: |
- bzr installer requires 32-bit python on windows; unclear message + bzr python-based installer requires 32-bit python on windows; unclear + message |
GuilhemBichot (guilhem-bichot) wrote : | #4 |
Hello, I reported the problem as part of https:/
The logic is quite simple: if one has a x64 Windows, he will naturally install a x64 Python. The fact that there is no python-based Windows bzr installer working in this case, is a problem: it forces people to uninstall their python x64 and install a python x86. Could you please give an update on the present bug?
Martin Pool (mbp) wrote : | #5 |
Hi Guilhem,
OK, if Python x64 can't coexist with Python x86 that does make it more serious, because I can see that people might have other requirements for the 64-bit version.
So this bug would be solved if we also made binary builds against the 64-bit Python?
Changed in bzr: | |
importance: | Low → Medium |
GuilhemBichot (guilhem-bichot) wrote : | #6 |
yes, I think so.
GuilhemBichot (guilhem-bichot) wrote : | #7 |
And until this is fixed, you might want to put a warning in http://
tags: | added: mysql packaging win32 |
Martin Pool (mbp) wrote : | #8 |
I've added a note to the windows download page pointing this out.
Our Windows build & packaging process is still somewhat manual so I think it would slow it down further to make 64-bit python builds of every release, especially if you consider that there are installers for 2.4, 2.5 and 2.6. However, perhaps it would at least be reasonable to make an installer for bzr 2.0.2 against python 2.6?
It would also help if someone who has a 64-bit python2.6 installed could re-test running bzr from source - if they get the same error quoted in the original message there may be some simpler way around it.
icey502 (icey502) wrote : | #9 |
Hey guys,
I have an AMD 64 bit Windoze machine and I am seeing this error. It does indeed seem to prevent me from exploring the wonders of Bazaar. I'm willing to run the build from source and post the error if that would help - but I'm a python-newbie so you might have to lay some instructions on me ;-)
Regards,
icey502
ANelson (anelson) wrote : | #10 |
I'm impacted by this bug as well, as the 32-bit binaries shipped with the Bzr installer run out of memory when migrating my huge SVN repos with 50k files, ~24k revisions, and ~25GB of data.
I tried building bzr from source on 64-bit Python 2.6, but the missing zlib header files tripped me up. In case anyone's interested this is the error I got after doing a 'python setup.py build':
bzrlib/
Cannot build extension "bzrlib.
Use "build_ext --allow-
At any rate, I don't think it's realistic to count the build from source option as a viable workaround, at least not as of now.
Incidentally, I had almost the exact same problem trying to migrate this repos to Mercurial. It really sucks as it's preventing me from migrating our team away from SVN
Martin Pool (mbp) wrote : | #11 |
Apparently python2.6 can now do 32<->64 bit cross-compiles on Windows.
Changed in bzr-windows-installers: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Martin Pool (mbp) wrote : | #12 |
Kirill Suzev (suzev-kirill) wrote : | #13 |
I ran into the same problem on Win7, 64-bit.
Maybe a better solution is to ship 64-bit binaries? That would solve the problem.
Martin Pool (mbp) wrote : Re: [Bug 331342] Re: bzr python-based installer requires 32-bit python on windows; unclear message | #14 |
We're working on making a separate 64-bit Windows build.
Kirill Suzev (suzev-kirill) wrote : | #15 |
Can you give any estimates about when 64-bit installer for Windows will be available?
Greg (gregspecialsource) wrote : | #16 |
A 64bit Windows build would be a temporary work around for large files would it not?
I would love to see this sooner if possible. At present, Bazaar seems to need memory for at least 3x copies of the working data, so the largest file a Windows user can commit is somewhere between 650mb -> 1gb.
Dirk Räder (db6edr) wrote : | #17 |
Any updates on this issue? Especially @mbp?
Would it help to compile Bazaar using IronPython, thus creating a .NET executable? As .NET executables can be compiled to target both x86 and x64 CPUs, this would probably also tackle https:/
Rene Leonhardt (rele) wrote : | #18 |
It's a shame that there is still no Windows 64-bit build.
Are there any helpful hints to build with mingw?
I got not very far with mingw64, the ld error messages are no help at all.
Or is it possible to build with LLVM/Clang 3.0?
Nathan Osman (george-edison55) wrote : | #19 |
I am pleased to announce that I have successfully built a 64-bit version of Bazaar for Python 2.7. You can get the Python installer and MSI files here:
http://
Basically the process for doing this was as follows:
1. Install the Windows 7.1 SDK.
2. Install Microsoft Visual C++ Express 2008 (NOT 2010 - because none of the official Python builds use it).
3. Download the Bazaar source code.
4. Follow the instructions here: http://
5. Run 'python setup.py bdist_wininst' to generate the installer.
Thomas B (tekktura) wrote : | #20 |
I was able to install v2.5.1 with Qt interface on python 2.7 (64bit) using a bit longer route with unofficial binary packages. These are available for example from: http://
My setup as almost according to http://
- pywin32-
- curl-7.
- pycurl-
- pycrypto-
- zlib127-dll.zip (from http://
- paramiko-
- PyQt-Py2.
- bzr-2.5.
- bzrtools-
- qbzr-0.23.0.tar.gz (launchpad, setup from source)
Also I needed to correct c:\Python27\
@C:\Python27\
After all these steps 'bzr explorer' should launch.
tags: | added: check-for-breezy |
tags: | removed: check-for-breezy |
The installer *is* correct, just its message isn't that helpful - you simply can't mix and match 32 and 64bit binaries. I'm not sure about ctypes, but there will never be a pywin32 64bit Python 2.5 build - only 2.6 and later. It is possible that Python 2.5.4 has ctypes enabled though - that might be worth checking. Alternatively, just install the 32bit version of Python 2.5 - it works just fine on a 64bit OS.