相关文章推荐
唠叨的硬盘  ·  RSA-OAEP encryption ...·  1 年前    · 
温柔的野马  ·  IoTDB 0.12.0 ...·  1 年前    · 
拉风的牛肉面  ·  python海康SDK ...·  1 年前    · 
俊逸的海豚  ·  android ...·  1 年前    · 
苦闷的弓箭  ·  Resolve nullable ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I am trying to compile a simple program into an apk for Android with Buildozer but have run into the following problem. Can you please help? I tried upgrading pip but that didn't help:python3 -m pip install --upgrade pip

So, I reverted back to the original pip version.

Installed Cython separately: pip3 install Cython

But the same issue persists. I am at a loss. :-(

Command: buildozer android debug

RAN: /bin/bash -c 'venv/bin/pip install Cython'
STDOUT:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

How can I fix this?

Could not fetch URL https://pypi.org/simple/cython/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/cython/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement Cython (from versions: none)
ERROR: No matching distribution found for Cython
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

This is a recent bug, you need to install libssl-dev using apt install libssl-dev

Then you might also want to clean your buildozer directory by running rm -rf .buildozer in the directory that contains your buildozer.spec file.

That should do it!

Hi!. Thanks for your suggestion. That worked. I got past that step but got stuck here: "ERROR: Could not find a version that satisfies the requirement hostpython2 (from -r requirements.txt (line 2)) (from versions: none) ERROR: No matching distribution found for hostpython2 (from -r requirements.txt (line 2))" hostpython3 is already installed. Why is buildozer looking for hostpython2? – Shoumik Das May 15, 2020 at 8:44

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.