-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
Support for lxml #1194
Comments
As described in the FAQ, we maintain independent pip-compatible repositories with pre-built binaries for some packages on PyPI. lxml is on that list for Android, but not every version of lxml that is on PyPI has a binary android wheel; ebaySDK appears to be requesting v4.9.2, but we only provide v4.4.2 and v4.6.3. There are two possible workarounds:
If you take path (2) and you're successful, it would be worthwhile submitting your changes as a PR; that way we can publish an updated LXML wheel for everyone to use. |
I went with option #1. Worked a charm with python 3.8 for the windows
install (although android run is broken now). However, on the case of
getting further, thanks very much!
…On Wed, 19 Apr 2023 at 13:59, Russell Keith-Magee ***@***.***> wrote:
As described in the FAQ
<https://briefcase.readthedocs.io/en/latest/background/faq.html#can-i-use-third-party-python-packages-in-my-app>,
we maintain independent pip-compatible repositories with pre-built binaries
for *some* packages on PyPI.
lxml *is* on that list for Android, but not every version of lxml that is
on PyPI has a binary android wheel; ebaySDK appears to be requesting
v4.9.2, but we only provide v4.4.2 and v4.6.3.
There are two possible workarounds:
1.
Explicitly pin the version of lxml to one that is provided by Beeware
<https://chaquo.com/pypi-7.0/lxml/>. That explicit version pin *might*
be sufficient to work around
2.
Build the wheel yourself. As there's already a recipe for lxml, it
*may* be a relatively straightforward task to update that recipe for
4.9.2; the Chaquopy packaging README
<https://github.com/chaquo/chaquopy/blob/master/server/pypi/README.md>
gives instructions on how to build a package. Once you have a locally
compiled version of the wheel, you can add an explicit reference to that
wheel in your requires list.
If you take path (2) and you're successful, it would be worthwhile
submitting your changes as a PR; that way we can publish an updated LXML
wheel for everyone to use.
—
Reply to this email directly, view it on GitHub
<#1194 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGJPPSS5J4STPCAPAVWOS6DXB7HQJANCNFSM6AAAAAAXDZAX3I>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Actually ebaysdk does not require any particular version of lxml, so the problem is more likely to be that we only have Android builds of lxml for Python 3.8 (chaquo/chaquopy#816). To change your app's Python version, create a new virtual environment with the desired version, install Briefcase into it, then rerun |
For updates on Android lxml support, please follow the Chaquopy issue linked in my previous comment. |
What is the problem or limitation you are having?
I am currently developing an app which integrates ebaysdk as its dependency. This works for the windows MSI but fails when building android with the following error message:
Describe the solution you'd like
I understand lxml comes with binaries and is hence not supported by default yet. Can we please have this supported and/or ways to have this sorted?
Describe alternatives you've considered
Instructions to download and sort through the binary dependencies so this dependency can be resolved for android builds would also be great.
Additional context
No response
The text was updated successfully, but these errors were encountered: