pure-data / deken

Externals wrangler for Pure Data
Other
145 stars 17 forks source link

Broken on Python 3.11/Debian testing? #285

Closed mgeier closed 1 year ago

mgeier commented 1 year ago

I just tried for the first time to upload a Deken package, but it gave me an error:

``` This is your first time running deken on this machine. I'm going to install myself and my dependencies into /home/mg/.local/share/deken-debian now. Feel free to Ctrl-C now if you don't want to do this. Installing deken. Fetching Python requirements file: /usr/share/deken/developer/requirements.txt '/usr/share/deken/developer/requirements.txt' -> '/home/mg/.local/share/deken-debian/requirements.txt' Fetching main hylang file: /usr/share/deken/developer/deken.hy '/usr/share/deken/developer/deken.hy' -> '/home/mg/.local/share/deken-debian/deken.hy' created virtual environment CPython3.11.1.final.0-64 in 689ms creator CPython3Posix(dest=/home/mg/.local/share/deken-debian/virtualenv, clear=False, no_vcs_ignore=False, global=True) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/mg/.local/share/virtualenv) added seed packages: pip==22.3.1, setuptools==66.1.1, wheel==0.38.4 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator Installing deken library dependencies. ERROR: Ignored the following versions that require a different python version: 0.24.0 Requires-Python >= 3.7, < 3.11; 1.0a4 Requires-Python >= 3.7, < 3.11 ERROR: Could not find a version that satisfies the requirement hy~=1.0a4 (from versions: 0.6.0, 0.7.0, 0.7.5, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.9.7, 0.9.8, 0.9.9, 0.9.10, 0.9.11, 0.9.12, 0.10.0, 0.10.1, 0.11.0, 0.11.1, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.18.0, 0.19.0, 0.20.0, 0.25.0, 1.0a1, 1.0a2, 1.0a3) ERROR: No matching distribution found for hy~=1.0a4 Installation of requirements failed. You probably should install the following packages first: - 'python3-dev' - 'libffi-dev' - 'libssl-dev' ```

Given that it talks about Python < 3.11, I tried this:

PYTHON_BIN=python3.10

... but it didn't help. It looks like virtualenv still uses python3.11.

So I hacked /usr/bin/deken to use virtualenv --python=python3.10.

With that, the upload worked. As the very last line I got this:

No module named '_cffi_backend'

... but this doesn't seem to be a problem.

umlaeute commented 1 year ago

sigh. hy broken their versioning scheme, and we have to suffer.

in any case this is a problem with the Debian packaging, rather than here (where the problem is already solved).

please do create a Debian bug report (reportbug deken), with a high priority (as it makes the package unusable)

mgeier commented 1 year ago

I have just created my first Debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030623, hooray!