Skip to content
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

[BUG] ModuleNotFoundError: No module named 'fcntl' #483

Open
baniasbaabe opened this issue Aug 19, 2022 · 10 comments
Open

[BUG] ModuleNotFoundError: No module named 'fcntl' #483

baniasbaabe opened this issue Aug 19, 2022 · 10 comments

Comments

@baniasbaabe
Copy link

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.

@Greco1899
Copy link

  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.

@chandler20708
Copy link

same problem here

1 similar comment
@dch0319
Copy link

dch0319 commented Oct 31, 2022

same problem here

@dekristi
Copy link

dekristi commented Nov 8, 2022

Unfortunately the same issue:
import sh

    import fcntl
ModuleNotFoundError: No module named 'fcntl'

@MichlF
Copy link

MichlF commented Dec 13, 2022

Same

@OmbrettaBistoni
Copy link

No solutions here? I have the same issue

@dekristi
Copy link

dekristi commented Feb 2, 2023 via email

@OmbrettaBistoni
Copy link

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

@dekristi
Copy link

dekristi commented Feb 3, 2023 via email

@madisondevin
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants