question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot build APK with python3crystax and flask - conflicting dependencies

See original GitHub issue

@kchomski commented on Wed Mar 01 2017

Hi,

It’s not possible to build APK when python3crystax and flask are both in requirements (or maybe I am doing something terribly wrong). From what I can see the problem comes from conflicting dependencies in recipes: flask depends on (python2 OR python3crystax) AND setuptools, but setuptools depends only on python2, which conflicts with python3crystax.

[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI
[INFO]:    Available Android APIs are (19)
[INFO]:    Requested API target 19 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK
[INFO]:    Got NDK version from $ANDROIDNDKVER
[WARNING]: NDK version was set as r10.3.2, but checking the NDK dir claims it is 10.3.2.
[WARNING]: The build will try to continue, but it may fail and you should check that your setting is correct.
[WARNING]: If the NDK dir result is correct, you don't need to manually set the NDK ver.
[INFO]:    Using Crystax NDK r10.3.2
[INFO]:    Found virtualenv at /usr/local/bin/virtualenv
[INFO]:    Found the following toolchain versions: ['4.9', '5', 'clang3.6', 'clang3.7']
[INFO]:    Picking the latest gcc toolchain, here 5
[INFO]:    No existing dists meet the given requirements!
[INFO]:    No dist exists that meets your requirements, so one will be built.
[INFO]:    Bootstrap requires recipes ['genericndkbuild', ('python2', 'python3crystax')]
[INFO]:    Loaded recipe flask (depends on [('python2', 'python3crystax'), 'setuptools'])
[INFO]:    Loaded recipe genericndkbuild (depends on [('python2', 'python3crystax')], conflicts ['sdl2', 'pygame', 'sdl'])
[INFO]:    Loaded recipe python3crystax (depends on ['hostpython3crystax'], conflicts ['python2', 'python3'])
[INFO]:    Loaded recipe setuptools (depends on ['python2'])
[INFO]:    Loaded recipe hostpython3crystax (depends on [], conflicts ['hostpython2'])
[INFO]:    Loaded recipe python2 (depends on ['hostpython2'], conflicts ['python3crystax', 'python3'])
[WARNING]: python2 conflicts with python3crystax, but both have been included or pulled into the requirements.
[WARNING]: Due to this conflict the build cannot continue, exiting.

@tito commented on Mon May 01 2017

This is an issue with python-for-android itself. I’m moving it to the proper project.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
AustinHastencommented, Jun 4, 2017

Same issue here being caused by the requests package pulling in python2.

0reactions
inclementcommented, Jan 30, 2019

Closing as stale, this may well have been fixed by all the changes since it was raised.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot build APK with python3crystax and flask - conflicting ...
Hi, It's not possible to build APK when python3crystax and flask are both in ... from conflicting dependencies in recipes: flask depends on...
Read more >
Can't build Kivy project with buildozer and python3crystax
I see some weird string in logs. I really have not this path in Crystax ndk folder. [WARNING]: include directory doesn't exist: /home/kivy/....
Read more >
buildozer - PyPI
Buildozer will use that spec to create a package for Android, iOS, ... Cannot build APK with python3crystax and flask - conflicting dependencies...
Read more >
Buildozer(Conda Python3 Environment) + kivy, numpy, scipy ...
It seems to be possible to do that using buildozer but and cannot manage to make it work. I can create APK for...
Read more >
kivy Changelog - pyup.io
Cannot build APK with python3crystax and flask - conflicting dependencies [\1041](https://github.com/kivy/python-for-android/issues/1041)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found