question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'fcntl'

See original GitHub issue

How to reproduce the behaviour

After downloading doccano and trying to start it via doccano init I get the following message:

doccano init
Traceback (most recent call last):
  File "C:\Users\\AppData\Local\Programs\Python\Python39\Scripts\doccano-script.py", line 33, in <module>
    sys.exit(load_entry_point('doccano==1.4.1', 'console_scripts', 'doccano')())
  File "C:\Users\\AppData\Local\Programs\Python\Python39\Scripts\doccano-script.py", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "c:\users\\appdata\local\programs\python\python39\lib\importlib\metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "c:\users\\appdata\local\programs\python\python39\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "c:\users\\appdata\local\programs\python\python39\lib\site-packages\backend\cli.py", line 7, in <module>
    import gunicorn.app.base
  File "c:\users\\appdata\local\programs\python\python39\lib\site-packages\gunicorn\app\base.py", line 11, in <module>
    from gunicorn import util
  File "c:\users\\appdata\local\programs\python\python39\lib\site-packages\gunicorn\util.py", line 8, in <module>
    import fcntl
ModuleNotFoundError: No module named 'fcntl' 

Your Environment

  • Operating System: Windows 10 1909
  • Python Version Used: 3.9.4
  • When you install doccano: 17.06.2021
  • How did you install doccano (Heroku button etc): pip install doccano

Own Research:

Apparently Windows doesn’'t support fcntl. Therefore nobody that uses Windows can install doccano via pip.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
lsch0lzcommented, Jul 5, 2021

Yes with docker everything seems fine, but I think this should be stated somewhere.

0reactions
lsch0lzcommented, Aug 28, 2022

The installation via Docker is stated in the README. Pull the Docker-Image: docker pull doccano/doccano

Create the container and choose your password, port, etc: docker container create --name doccano \ -e "ADMIN_USERNAME=admin" \ -e "ADMIN_EMAIL=admin@example.com" \ -e "ADMIN_PASSWORD=password" \ -v doccano-db:/data \ -p 8000:8000 doccano/doccano

Start the container: docker container start doccano

You can now find the instance under your localhost:8000

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: No module named 'fcntl' - python - Stack Overflow
The fcntl module is not available on Windows. The functionality it exposes does not exist on that platform. If you're trying to lock...
Read more >
ModuleNotFoundError: No Module Named 'fcntl' (Python)
Did you get the ModuleNotFoundError: No Module Named 'fcntl' ? This short tutorial will show you some useful ways that can help you...
Read more >
ModuleNotFoundError: No module named 'fcntl' - Django
Hi everyone, I'm currently taking the Django Part 3 course using Windows 10, and I came across this error when running the command...
Read more >
ModuleNotFoundError: No module named 'fcntl' - Python Forum
The error say no module named 'fcntl'. I am installing and trying to run bpython on Windows 10 Pro 64 bit.
Read more >
How To Fix Python Error fcntl On Windows - YouTube
How To Fix Python Error fcntl On Windows [re-edit]This video show you how to Python fix Error fcntl on Windows, I use urwid...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found