-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name file_lock when running server #1157
Comments
Which OS are you on? |
64bit Kubuntu 15.10 with the Linux 4.2.0-18-generic kernel (default). |
I got brat running using a Docker image, so it looks like it's either got something to do with the Python version (2.7.10 vs 2.7.6 in the Docker image) or the surrounding environment. Can refute the former on their systems? |
Check your filelock library. Are you using filelock 2.0.6 (https://pypi.python.org/pypi/filelock/) as well? I solved mine by changing all the mentioned file_lock in "server/src/annotation.py" to FileLock |
I was facing the same issue. I inspected the source and found that there is a filelock.py module defined in |
Fixed the filename which was causing the problems. Fixed imports of the file.
@napsternxg |
My solution for this is just using a conda environment and uninstall filelock. I will suggest to include a python package dependency file instead of including the specific version of python package into the repository. |
After installing brat according to the standard installation procedure, I run into the error:
ImportError: cannot import name file_lock
. Complete Traceback:This happens in v1.3, as well as the latest version from
master
. I am using Python 2.7.10 to run brat. This happens when the server is run from Apache2 as well as with the standalone server. Navigating to the server/src directory and runningfrom filelock import file_lock
in the REPL does not result in any errors.Similar errors normally result from cyclical imports, but that is not the case here, since filelock does not import anything other then standard libraries.
Does anyone have a clue as to how to get brat running?
The text was updated successfully, but these errors were encountered: