-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[19.07] Some Python packages are not built due to ValueError: not enough values to unpack #12680
Comments
I think that this could be related to this issue pypa/setuptools#1934 |
I downgraded setuptools in |
I think the actual issue is pypa/packaging#259. I'm looking into why we are setting |
That setting is pretty old. |
Well...
Two things:
Thoughts? |
fine by me
i think i played with it a bit a few years ago, and just decided to go with linux2 for target-Python [no idea why for host-python]; there might be some auto-detection there that doesn't work well for target-Python, it could be that it felt sane to have it unified for host-python as well; |
I met the same problem these days.
Now, I am trying to using |
@jefferyto , @commodo What do you think to revert, I mean postpone update Python of 3.7 in OpenWrt 19.07 until you found workaround/solution? For Turris routers, we froze packages feed before update was introduced. |
I will resume working on this tomorrow, hope to find the right fix in a day or two. I would prefer to wait until later this week to decide if a revert is necessary. |
My preference would be to revert for now, and see later. |
This lets the Python build process set _PYTHON_HOST_PLATFORM instead of forcing an explicit value. Also: * Save the target _PYTHON_HOST_PLATFORM value during Build/InstallDev for use when building target Python packages (in python3-package.mk). * Use the (mostly) default PYTHON_FOR_BUILD value, instead patch configure to remove the platform triplet from the sysconfigdata file name. * Remove the "CROSS_COMPILE=yes" make variable (there is no indication that this variable is necessary). * Force host pip to build packages from source instead of downloading binary wheels. Previously, host pip can download universal (platform-independent) wheels but not platform-specific wheels, because of the custom _PYTHON_HOST_PLATFORM value. (Packages that do not have universal wheels would be compiled from source.) With a correct _PYTHON_HOST_PLATFORM, host pip can install platform-specific wheels as well. However, the pre-built shared object (.so) files in these wheels will have the host's platform triplet in their file names. When target Python packages are built (using the target's _PYTHON_HOST_PLATFORM), Python will not use these shared object files. By forcing host pip to build packages from source, the built shared object files will not have the platform triplet in their file names. (Host Python has been patched to remove the platform triplet from file names.) This allows these packages to be used when building target Python packages. (The net effect of this complete change is that platform-dependent packages will continue to be compiled from source, while platform-independent packages will now also be compiled from source.) Fixes openwrt#12680. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
I believe this issue has been fixed. |
My cross-compiling (on x86_64) to aarch64 succeed. |
Yes, I can confirm that this is fixed. Closing. |
Maintainers: @jefferyto , @commodo
Env: all
After update of Python3 in OpenWrt 19.07 some packages like zipp, cryptography, dateutil fails with the following error:
Faillog: https://downloads.openwrt.org/releases/faillogs-19.07/arm_cortex-a9_vfpv3-d16/packages/python-zipp/python3/compile.txt
The text was updated successfully, but these errors were encountered: