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

ModuleNotFoundError: No module named 'fcntl' #2321

Closed
CA1R7 opened this issue Sep 24, 2020 · 2 comments
Closed

ModuleNotFoundError: No module named 'fcntl' #2321

CA1R7 opened this issue Sep 24, 2020 · 2 comments

Comments

@CA1R7
Copy link

CA1R7 commented Sep 24, 2020

Versions

  • Python: 3.8.4rc1
  • OS: windows 10 x64 system

Logs

my error logs

Traceback (most recent call last):
  File "c:\users\aaami\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\aaami\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\aaami\AppData\Local\Programs\Python\Python38\Scripts\python-for-android.exe\__main__.py", line 4, in <module>
  File "c:\users\aaami\appdata\local\programs\python\python38\lib\site-packages\pythonforandroid\entrypoints.py", line 1, in <module>
    from pythonforandroid.recommendations import check_python_version
  File "c:\users\aaami\appdata\local\programs\python\python38\lib\site-packages\pythonforandroid\recommendations.py", line 7, in <module>
    from pythonforandroid.logger import info, warning
  File "c:\users\aaami\appdata\local\programs\python\python38\lib\site-packages\pythonforandroid\logger.py", line 4, in <module>
    import sh
  File "c:\users\aaami\appdata\local\programs\python\python38\lib\site-packages\sh.py", line 36, in <module>
    import fcntl
ModuleNotFoundError: No module named 'fcntl'
@RobertFlatt
Copy link
Contributor

Python for Android does not run on a native Windows shell.
Use Windows Subsystem for Linux (Ubuntu is a good choice).
https://python-for-android.readthedocs.io/en/latest/quickstart/#installation

Also consider Buildozer a wrapper around p4a that handles the Google dependencies.
https://buildozer.readthedocs.io/en/latest/installation.html

@CA1R7
Copy link
Author

CA1R7 commented Sep 25, 2020

@RobertFlatt uh ok thank you

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

2 participants