anntzer / pypi2pkgbuild

A PyPI to PKGBUILD converter.
MIT License
70 stars 6 forks source link

Error with pycode3-python #26

Closed mmbcorley closed 2 years ago

mmbcorley commented 2 years ago

Hi,

apologies for my limited understanding of what might be going wrong here -- any advice welcome!

DEBUG:pypi2pkgbuild:This is pypi2pkgbuild 0.3.post6+ge787382.
DEBUG:pypi2pkgbuild:Running subprocess:
pkgfile pkgfile >/dev/null
DEBUG:pypi2pkgbuild:Running subprocess from /usr/lib/python3.10/site-packages:
find . -maxdepth 1 -iname 'pyqode3_python[.-]*-info' -exec pacman -Qo '{}' \; | rev | cut -d' ' -f1,2 | rev
DEBUG:pypi2pkgbuild:Running subprocess:
pacman -Q python-pyqode3-python 2>/dev/null
DEBUG:pypi2pkgbuild:Running subprocess:
pkgfile -riv '^/usr/lib/python3\.10/site-packages/pyqode3_python-.*py3\.10\.egg-info' | cut -f1 | uniq | cut -d/ -f2
DEBUG:pypi2pkgbuild:Running subprocess:
pkgfile -riv '^/usr/lib/python3\.10/pyqode3_python-.*py3\.10\.egg-info' | cut -f1 | uniq | cut -d/ -f2
DEBUG:pypi2pkgbuild:Running subprocess:
pkgfile -l python-pyqode3-python 2>/dev/null | grep -Po '(?<=site-packages/)[^-/]*(?=.*\.egg-info/?$)'
INFO:pypi2pkgbuild:Packaging python-pyqode3-python 3.2.3.
WARNING:pypi2pkgbuild:Unexpected wheel info: WheelInfo(name='pyqode3.python', version='3.2.3', build='', pythons={'py2', 'py3'}, abi='none', platform='any')
DEBUG:pypi2pkgbuild:Running subprocess from /usr/lib/python3.10/site-packages:
find . -maxdepth 1 -iname 'pip[.-]*-info' -exec pacman -Qo '{}' \; | rev | cut -d' ' -f1,2 | rev
DEBUG:pypi2pkgbuild:Running subprocess:
pkgfile -riv '^/usr/lib/python3\.10/site-packages/pip-.*py3\.10\.egg-info' | cut -f1 | uniq | cut -d/ -f2
DEBUG:pypi2pkgbuild:Running subprocess:
pkgfile -riv '^/usr/lib/python3\.10/pip-.*py3\.10\.egg-info' | cut -f1 | uniq | cut -d/ -f2
DEBUG:pypi2pkgbuild:Running subprocess:
pkgfile -l python-pip 2>/dev/null | grep -Po '(?<=site-packages/)[^-/]*(?=.*\.egg-info/?$)'
DEBUG:pypi2pkgbuild:Running subprocess from /usr/lib/python3.10/site-packages:
find . -maxdepth 1 -iname 'wheel[.-]*-info' -exec pacman -Qo '{}' \; | rev | cut -d' ' -f1,2 | rev
DEBUG:pypi2pkgbuild:Running subprocess:
pkgfile -riv '^/usr/lib/python3\.10/site-packages/wheel-.*py3\.10\.egg-info' | cut -f1 | uniq | cut -d/ -f2
DEBUG:pypi2pkgbuild:Running subprocess:
pkgfile -riv '^/usr/lib/python3\.10/wheel-.*py3\.10\.egg-info' | cut -f1 | uniq | cut -d/ -f2
DEBUG:pypi2pkgbuild:Running subprocess:
pkgfile -l python-wheel 2>/dev/null | grep -Po '(?<=site-packages/)[^-/]*(?=.*\.egg-info/?$)'
DEBUG:pypi2pkgbuild:Running subprocess:
pip download --no-deps -d /tmp/tmpg_maxu0y --no-binary=pyqode3.python 'pyqode3.python==3.2.3.*,<3.2.3.1'
Collecting pyqode3.python<3.2.3.1,==3.2.3.*
  Using cached pyqode3.python-3.2.3.tar.gz (247 kB)
  WARNING: Generating metadata for package pyqode3.python produced metadata for project name pyqode-python. Fix your #egg=pyqode3.python fragments.
WARNING: Discarding https://files.pythonhosted.org/packages/d5/40/582b6c160b4652aa2011c4765bfcc18791ff72df636d9ca65f422cb5661a/pyqode3.python-3.2.3.tar.gz#sha256=354634568a866c4d3569d47c61096f83c25b0f35c0b8c570adfed74b03a18020 (from https://pypi.org/simple/pyqode3-python/). Requested pyqode-python from https://files.pythonhosted.org/packages/d5/40/582b6c160b4652aa2011c4765bfcc18791ff72df636d9ca65f422cb5661a/pyqode3.python-3.2.3.tar.gz#sha256=354634568a866c4d3569d47c61096f83c25b0f35c0b8c570adfed74b03a18020 has inconsistent name: filename has 'pyqode3-python', but metadata has 'pyqode.python'
ERROR: Could not find a version that satisfies the requirement pyqode3.python<3.2.3.1,==3.2.3.*
ERROR: No matching distribution found for pyqode3.python<3.2.3.1,==3.2.3.*
ERROR:pypi2pkgbuild:Failed to download pyqode3.python==3.2.3.*,<3.2.3.1, possibly due to a buggy setup.py
anntzer commented 2 years ago

Looks like their sdist generates non-compliant metadata. The wheel is also slightly iffy, but I fixed pypi2pkgbuild to support that case too. Things should work on master now, please confirm.

mmbcorley commented 2 years ago

works perfectly now. Many thanks, you've saved a project I'm supervising :)

Any hints on what to report back to the pycode3-python people very welcome.

anntzer commented 2 years ago

The latest version of pyqode is 3.2.3, and they distribute a sdist for it (the .tar.gz file at https://pypi.org/project/pyqode3.python/#files). Yet

$ pip install --no-binary=pyqode3.python pyqode3.python==3.2.3
Collecting pyqode3.python==3.2.3
  Using cached pyqode3.python-3.2.3.tar.gz (247 kB)
  Preparing metadata (setup.py) ... done
  WARNING: Generating metadata for package pyqode3.python produced metadata for project name pyqode-python. Fix your #egg=pyqode3.python fragments.
Discarding https://files.pythonhosted.org/packages/d5/40/582b6c160b4652aa2011c4765bfcc18791ff72df636d9ca65f422cb5661a/pyqode3.python-3.2.3.tar.gz#sha256=354634568a866c4d3569d47c61096f83c25b0f35c0b8c570adfed74b03a18020 (from https://pypi.org/simple/pyqode3-python/): Requested pyqode-python from https://files.pythonhosted.org/packages/d5/40/582b6c160b4652aa2011c4765bfcc18791ff72df636d9ca65f422cb5661a/pyqode3.python-3.2.3.tar.gz#sha256=354634568a866c4d3569d47c61096f83c25b0f35c0b8c570adfed74b03a18020 has inconsistent name: filename has 'pyqode3-python', but metadata has 'pyqode-python'
ERROR: Could not find a version that satisfies the requirement pyqode3.python==3.2.3 (from versions: 3.0.2, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.2.0, 3.2.1, 3.2.2, 3.2.3)
ERROR: No matching distribution found for pyqode3.python==3.2.3

(no-binary asks to use the sdist). They could choose to not distribute a sdist at all, of course, but if there's one it should be correct...

May I ask what this project that you're supervising is about?

mmbcorley commented 2 years ago

sure, (convoluted though) it's a student-run cognitive science project using opensesame (osdoc./cogsci.nlhttp://cogsci.nl) to display stimuli, at the same time as recording spoken responses via ultrasound imaging on another machine. I need to get opensesame working on Arch (not quite there, but nearly -- have had it working before...) to help with coding the project.

opensesame relies on pyqode3.python.

On Wed, 29 Jun 2022 at 20:41, Antony Lee @.**@.>> wrote: This email was sent to you by someone outside the University. You should only click on links or attachments if you are certain that the email is genuine and the content is safe.

The latest version of pyqode is 3.2.3, and they distribute a sdist for it (the .tar.gz file at https://pypi.org/project/pyqode3.python/#files). Yet

$ pip install --no-binary=pyqode3.python pyqode3.python==3.2.3 Collecting pyqode3.python==3.2.3 Using cached pyqode3.python-3.2.3.tar.gz (247 kB) Preparing metadata (setup.py) ... done WARNING: Generating metadata for package pyqode3.python produced metadata for project name pyqode-python. Fix your #egg=pyqode3.python fragments. Discarding https://files.pythonhosted.org/packages/d5/40/582b6c160b4652aa2011c4765bfcc18791ff72df636d9ca65f422cb5661a/pyqode3.python-3.2.3.tar.gz#sha256=354634568a866c4d3569d47c61096f83c25b0f35c0b8c570adfed74b03a18020 (from https://pypi.org/simple/pyqode3-python/): Requested pyqode-python from https://files.pythonhosted.org/packages/d5/40/582b6c160b4652aa2011c4765bfcc18791ff72df636d9ca65f422cb5661a/pyqode3.python-3.2.3.tar.gz#sha256=354634568a866c4d3569d47c61096f83c25b0f35c0b8c570adfed74b03a18020 has inconsistent name: filename has 'pyqode3-python', but metadata has 'pyqode-python' ERROR: Could not find a version that satisfies the requirement pyqode3.python==3.2.3 (from versions: 3.0.2, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.2.0, 3.2.1, 3.2.2, 3.2.3) ERROR: No matching distribution found for pyqode3.python==3.2.3

(no-binary asks to use the sdist). They could choose to not distribute a sdist at all, of course, but if there's one it should be correct...

May I ask what this project that you're supervising is about?

— Reply to this email directly, view it on GitHubhttps://github.com/anntzer/pypi2pkgbuild/issues/26#issuecomment-1170413360, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADUOMUI3ZVBNF475B55J4CTVRSRHNANCNFSM52FY3H2Q. You are receiving this because you authored the thread.Message ID: @.***>

-- Martin Corley @.**@.> http://homepages.ed.ac.uk/martinc/ Philosophy, Psychology and Language Sciences, University of Edinburgh The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.