[BUG] ModuleNotFoundError: No module named 'fcntl'
baniasbaabe opened this issue · 10 comments
baniasbaabe commented
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 commented
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 commented
same problem here
dch0319 commented
same problem here
dekristi commented
Unfortunately the same issue:
import sh
import fcntl
ModuleNotFoundError: No module named 'fcntl'
MichlF commented
Same
OmbrettaBistoni commented
No solutions here? I have the same issue
dekristi commented
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
<#483 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AU2R2ZBKC3COIDR6PVIOBDLWVO37FANCNFSM57A2PCVA>
.
You are receiving this because you commented.Message ID:
***@***.***>
OmbrettaBistoni commented
@dekristi not working for me, even with python 3.11. I have Windows 10
dekristi commented
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)
<doccano/doccano#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
<#483 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AU2R2ZEFZXRNCX2O4EVWU53WVS7TTANCNFSM57A2PCVA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
madisondevin commented
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).