lockfile.FileLock exists, lockfile.LockFile doesn't, version=0.10.2

Bug #1422238 reported by Guy Rapaport
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pylockfile
Expired
Undecided
Unassigned

Bug Description

I have Ubuntu 14.04.1 installed, with Python 2.7 (and pip 2.7 as well). There are no other Python versions installed on the system.

When I run 'pip install lockfile', I get version 0.10.2 (so says 'pip list | grep lockfile').

However, the lockfile module does not have the LockFile class, but rather the FileLock class:

>>> import lockfile
>>> lockfile.LockFile
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'LockFile'
>>> lockfile.FileLock
<class lockfile.LinkFileLock at 0x7ff2e417af58>

In your pypi page, you mention that FileLock is something of the old API:
https://pypi.python.org/pypi/lockfile
"Where classes had been named SomethingFileLock before the last two words have been reversed, so that class is now SomethingLockFile."

But I get this on a version claiming to be 0.10.2 .

I tried to install lockfile from pip on machines in which Python2.7 is installed side-by-side with Python2.6, on ScientificLinux 6.5 and CentOS 6.5 machines, and in both versions the correct version installed properly (i.e. a version in which lockfile.LockFile was available).

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

When you installed the package, did pip download and install the wheel or did it use an sdist?

Changed in pylockfile:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pylockfile because there has been no activity for 60 days.]

Changed in pylockfile:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.