[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PySide2 not found when installing from PyPI
From: |
Matt |
Subject: |
Re: PySide2 not found when installing from PyPI |
Date: |
Thu, 26 May 2022 20:22:40 -0400 |
User-agent: |
Zoho Mail |
---- On Thu, 26 May 2022 11:59:09 -0400 Luis Felipe
<luis.felipe.la@protonmail.com> wrote ----
> I often have to change the source of Python packages to use the source
> repository instead of fetching from pypi because the latter doesn't include
> test suites.
This is a good point. Thank you.
> However, the build still fails in the sanity-check phase even using the
> source repository as source and disabling tests (because the app doesn't
> have tests yet).
>
> test suite not run
> phase `check' succeeded after 0.0 seconds
> starting phase `sanity-check'
> validating 't-rex-typer'
> /gnu/store/cppxhb9bl78wynw3cf0fhscl8wc5qphd-python-t-rex-typer-0.1.5/lib/python3.9/site-packages
> ...checking requirements: ERROR: t-rex-typer==0.1.5
> DistributionNotFound(Requirement.parse('PySide2>=5.15'), {'t-rex-typer'})
> error: in phase 'sanity-check': uncaught exception:
> %exception #<&invoke-error program: "python" arguments:
> ("/gnu/store/35ix1m6m8a5s21j02ajhdyqxb2xkshfb-sanity-check.py"
> "/gnu/store/cppxhb9bl78wynw3cf0fhscl8wc5qphd-python-t-rex-typer-0.1.5/lib/python3.9/site-packages")
> exit-status: 1 term-signal: #f stop-signal: #f>
>
> phase `sanity-check' failed after 0.1 seconds
> command "python"
> "/gnu/store/35ix1m6m8a5s21j02ajhdyqxb2xkshfb-sanity-check.py"
> "/gnu/store/cppxhb9bl78wynw3cf0fhscl8wc5qphd-python-t-rex-typer-0.1.5/lib/python3.9/site-packages"
> failed with status 1
> ~~~
>
> I don't think I understand the error, but maybe it has to do with something
> expecting a "python" command when it should be "python3" command (which is
> what)?
If I'm reading that correctly, that's the same distribution not found error. I
like your thought of python versus python3. However, the PySide2 package on
PyPI has a release for python2. If the build system were using python2, I
would expect it to download that and then fail.