projg2 / gpyutils

CI & maintenance utilities for Python packages in Gentoo
GNU General Public License v2.0
9 stars 3 forks source link

gpy-verify-deps: FileNotFoundError: [Errno 2] No such file or directory: 'python3.8' #5

Open thesamesam opened 1 year ago

thesamesam commented 1 year ago

With app-portage/gpyutils-0.8.2:

$ gpy-verify-deps 
Populating package cache...
Populating dist-info cache...
Querying Python interpreter metadata...
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/gpy-verify-deps", line 8, in <module>
    sys.exit(entry_point())
             ^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gpyutils/scripts/verify_deps.py", line 219, in entry_point
    sys.exit(main(*sys.argv))
             ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gpyutils/scripts/verify_deps.py", line 214, in main
    process(pm.installed)
  File "/usr/lib/python3.11/site-packages/gpyutils/scripts/verify_deps.py", line 95, in process
    subp = subprocess.Popen([p, "-"],
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'python3.8'
mgorny commented 1 year ago

Do you have leftover packages installing into /usr/lib/python3.8/site-packages?

thesamesam commented 1 year ago

Ah, yes! I hadn't deselected gander & flask-restful yet, so they hadn't been dropped.