Export to GitHub

pylockfile - issue #23

import statement maybe wrong


Posted on Sep 6, 2012 by Helpful Dog

What steps will reproduce the problem? 1. build with python3 from source (using fixes for exception & octal notation) 2. install to default location (/usr/local/lib/python3.2/dist-packages/) 3. import using: from lockfile import FileLock

What is the expected output? What do you see instead? expected: import observed: File "/usr/local/lib/python3.2/dist-packages/lockfile/init.py", line 279, in <module> import linklockfile as _llf ImportError: No module named linklockfile

What version of the product are you using? On what operating system? version: 0.9.1 on Linux (occurred on Ubuntu 12.04 i386 and debian wheezy amd64)

Please provide any additional information below. fix: modify init.py: import linklockfile as _llf --> from lockfile import linklockfile as _llf

Comment #1

Posted on Apr 5, 2013 by Quick Elephant

My config is Ubuntu 12.10 amd64 and Python 3.2.3 Changed "import linklockfile as _llf" to "import lockfile.linklockfile as _llf" on line 279 in lockfile/init.py and it worked for me.

Comment #2

Posted on Aug 27, 2013 by Grumpy Lion

I believe this is fixed, though in a slightly different way. Can you try 0.9.1 again? I think there were release problems with an earlier version.

Status: New

Labels:
Type-Defect Priority-Medium