lux icon indicating copy to clipboard operation
lux copied to clipboard

[BUG] ModuleNotFoundError: No module named 'fcntl'

Open baniasbaabe opened this issue 2 years ago โ€ข 10 comments

When trying to install the package via pip install lux-api the following error occurs:

ERROR: Command errored out with exit status 1:
     command: 'c:\code\eda_research\venv\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\I574778\\AppData\\Local\\Temp\\pip-install-3uvkz52y\\sh\\setup.py'"'"'; __file__='"'"'C:\\Users\\I574778\\AppData\\Local\\Temp\\pip-install-3uvkz52y\\sh\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\I574778\AppData\Local\Temp\pip-pip-egg-info-arz193lv'
         cwd: C:\Users\I574778\AppData\Local\Temp\pip-install-3uvkz52y\sh\
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\I574778\AppData\Local\Temp\pip-install-3uvkz52y\sh\setup.py", line 5, in <module>
        import sh
      File "C:\Users\I574778\AppData\Local\Temp\pip-install-3uvkz52y\sh\sh.py", line 37, in <module>
        import fcntl
    ModuleNotFoundError: No module named 'fcntl'

I'm using Python==3.8.9.

baniasbaabe avatar Aug 19 '22 13:08 baniasbaabe

  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  ร— python setup.py egg_info did not run successfully.
  โ”‚ exit code: 1
  โ•ฐโ”€> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\<windows_user>\AppData\Local\Temp\pip-install-neq3f8qo\sh_36306239465a4240a3b21385a74af710\setup.py", line 5, in <module>
          import sh
        File "C:\Users\<windows_user>\AppData\Local\Temp\pip-install-neq3f8qo\sh_36306239465a4240a3b21385a74af710\sh.py", line 37, in <module>
          import fcntl
      ModuleNotFoundError: No module named 'fcntl'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

ร— Encountered error while generating package metadata.
โ•ฐโ”€> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I'm facing the same issue on Windows 10.

Greco1899 avatar Sep 30 '22 07:09 Greco1899

same problem here

chandler20708 avatar Oct 14 '22 04:10 chandler20708

same problem here

dch0319 avatar Oct 31 '22 12:10 dch0319

Unfortunately the same issue: import sh

    import fcntl
ModuleNotFoundError: No module named 'fcntl'

dekristi avatar Nov 08 '22 12:11 dekristi

Same

MichlF avatar Dec 13 '22 17:12 MichlF

No solutions here? I have the same issue

OmbrettaBistoni avatar Feb 02 '23 13:02 OmbrettaBistoni

This problem is solved in Python 3.11 fcntl โ€” The fcntl and ioctl system calls โ€” Python 3.11.1 documentation https://docs.python.org/3/library/fcntl.html

On Thu, Feb 2, 2023 at 3:53 PM OmbrettaBistoni @.***> wrote:

No solutions here? I have the same issue

โ€” Reply to this email directly, view it on GitHub https://github.com/lux-org/lux/issues/483#issuecomment-1413783284, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU2R2ZBKC3COIDR6PVIOBDLWVO37FANCNFSM57A2PCVA . You are receiving this because you commented.Message ID: @.***>

dekristi avatar Feb 02 '23 14:02 dekristi

@dekristi not working for me, even with python 3.11. I have Windows 10

OmbrettaBistoni avatar Feb 03 '23 08:02 OmbrettaBistoni

I think it's still Windows problem. Some use Docker to install a package ModuleNotFoundError: No module named 'fcntl' ยท Issue #1414 ยท doccano/doccano (github.com) https://github.com/doccano/doccano/issues/1414 you can try it!

On Fri, Feb 3, 2023 at 10:37 AM OmbrettaBistoni @.***> wrote:

@dekristi https://github.com/dekristi not working for me, even with python 3.11. I have Windows 10

โ€” Reply to this email directly, view it on GitHub https://github.com/lux-org/lux/issues/483#issuecomment-1415354107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU2R2ZEFZXRNCX2O4EVWU53WVS7TTANCNFSM57A2PCVA . You are receiving this because you were mentioned.Message ID: @.***>

dekristi avatar Feb 03 '23 09:02 dekristi

I'm having the same issue, and can't install lux on a Windows 11 computer. So lux just can't be installed on Windows? Suggestions welcomed (I don't use Docker).

madisondevin avatar Feb 06 '23 01:02 madisondevin