lockfile.FileLock exists, lockfile.LockFile doesn't, version=0.10.2
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.
In your pypi page, you mention that FileLock is something of the old API:
https:/
"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).
When you installed the package, did pip download and install the wheel or did it use an sdist?