bzr 1.9/py 2.4/win Error: We must have one of fcntl, pywin32, or ctypes available to support OS locking.

Asked by gjohn

After installing bzr windows package for Python 2.4 - bzr-1.9.win32-py2.4.exe,
I get an error message about missing fcntl, pywin32, or ctypes when running bzr commands.

Is this something something missing in my Python installation or environment, or is it a bug in bzr which I should report?

What would be the recommended way to fix this? Install bzr standalone or upgrade to Python 2.5 or something else? I guess I would be helped by some Python knowledge, which I do not have at this time.

----
>c:\python24\scripts\bzr --version
bzr: ERROR: exceptions.NotImplementedError: We must have one of fcntl, pywin32, or ctypes available to support OS locking.

Traceback (most recent call last):

(...)

bzr 1.9 on python 2.4.4 (win32)
arguments: ['C:\\Python24\\Scripts\\bzr', '--version']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Question information

Language:
English Edit question
Status:
Expired
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
John A Meinel (jameinel) said :
#1

Recent versions of bzr on windows require either pywin32 or ctypes to be installed.
Python2.5 comes with ctypes.

You can install either dependency to have bzr work.
If you have easy_install you can do

easy_install ctypes
or
easy_install pywin32

Or you can download the packages from:
http://python.net/crew/theller/ctypes/
http://python.net/crew/mhammond/win32/

Revision history for this message
gjohn (gjohn) said :
#2

Thank you.
I had missed the (rather obvious) documentation about dependencies at the Bazaar site.

I've now installed the dependencies libraries listed in the guide at
http://bazaar-vcs.org/WindowsInstall2.4

However I still get an error message about loading plugins when running the branch command, though the working copy checkout seems to work anyway.

>bzr branch
Unable to load bzr-svn extensions - did you build it?
cannot import name client
Unable to load plugin 'svn' from 'C:\\Python24\\lib\\site-packages\\bzrlib\\plugins'

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.