-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
False alarms from pip's dependency resolver caused by conflicts with local packages #768
Comments
The errors you've reported here don't actually indicate a problem - they're warnings generated because your virtual environment has a different version of packages than the ones being installed, but they shouldn't stop anything from running. The only other indication from this report that anything actually is wrong is the throwaway comment "Lastly, Android emulator not working" - but you haven't provided any details about what that means - like, for example, the logs from when it didn't work. The fact that you're on Windows 8.1 suggests to me that you're on very old hardware, so the issue is almost certainly that the Android toolchain doesn't support your hardware. I'm going to close this on the basis that the report as provided doesn't indicate a problem; if you are still having problems that you believe indicate a bug in Briefcase, please open a new ticket with the full output of |
This came up again a few days ago (beeware/toga#1533). I think we should consider it a bug if Briefcase is showing misleading warnings which the user will waste time trying to understand and solve. pip has a |
My concern with "--no-warn-conflicts" is that we'd be silencing legitimate conflict warnings - e.g., if you actually defined incompatible toga versions in your pyproject, or some other version inconsistency existed in requirements. Ultimately, the issue we're facing is that we're using a slightly "off label" feature of pip by using the There are two potential solutions I can think of:
Approach (1) could be especially interesting, as it provides a potential to fix to some related problems:
Historically, I would have been opposed to including a python interpreter due to the size overhead. However, if we use dynamic linking, the executable is potentially a lot smaller; combine that with some tree pruning functionality in Briefcase, and we could have the best of both worlds. |
I think running pip in a separate virtual environment is definitely the way to go. pip has very strong support for virtual environments, and Python itself now comes with standard library support for creating them. Whereas |
Could you reopen this issue, and rename it to something clearer? |
briefcase create android
To Reproduce
Steps to reproduce the behavior:
pip's dependency resolver does not currently take into account the
packages that are installed. This behaviour is the source of the
following dependency conflicts.
toga-winforms 0.3.0.dev33 requieres toga-core==0.3.0.dev33, but you
have toga-core 0.3.0.dev34 which is incompatible.
Expected behavior
Lastly, Android emulator not working
Screenshots
Environment:
[tool.briefcase.app.helloworld.windows]
requires = [
'toga-winforms>=0.3.0.dev32'
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: