Project

General

Profile

Actions

Bug #5919

open

osmo-python-tests: Update/fix README or setup process

Added by arehbein about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Low
Assignee:
Target version:
-
Start date:
02/22/2023
Due date:
% Done:

0%

Spec Reference:

Description

osmo-python-tests/README states three ways of installation. Two of these failed for me:

$ pip3 install --verbose --user -e .
...
Installing collected packages: osmopython
  Running setup.py develop for osmopython
    Running command /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/somedir/osmo-python-tests/setup.py'"'"'; __file__='"'"'/home/somedir/osmo-python-tests/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix=
    running develop
    running egg_info
    error: [Errno 13] Permission denied
ERROR: Command errored out with exit status 1: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/somedir/osmo-python-tests/setup.py'"'"'; __file__='"'"'/home/somedir/osmo-python-tests/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs for full command output.
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/req_command.py", line 180, in wrapper
    return func(self, options, args)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 421, in run
    installed = install_given_reqs(
  File "/usr/lib/python3/dist-packages/pip/_internal/req/__init__.py", line 82, in install_given_reqs
    requirement.install(
  File "/usr/lib/python3/dist-packages/pip/_internal/req/req_install.py", line 800, in install
    install_editable_legacy(
  File "/usr/lib/python3/dist-packages/pip/_internal/operations/install/editable_legacy.py", line 49, in install_editable
    call_subprocess(
  File "/usr/lib/python3/dist-packages/pip/_internal/utils/subprocess.py", line 261, in call_subprocess
    raise InstallationSubprocessError(proc.returncode, command_desc)

Seems like the command is throwing an error, because the prefix option is passed with an empty argument, but I don't know.

For checkinstall, the Debian package isn't built if one leaves the default value for version (test), since it hast to begin with a digit:

dpkg-deb: error: parsing file '/var/tmp/tmp.6EyaipPJOV/package/DEBIAN/control' near line 7 package 'osmo-python':
 'Version' field value 'tests-1': version number does not start with digit

Outputs for each command are attached.


Files

checkinst_err.txt checkinst_err.txt 7.92 KB arehbein, 02/22/2023 06:22 PM
pip3_err.txt pip3_err.txt 4.38 KB arehbein, 02/22/2023 06:22 PM
Actions #1

Updated by laforge about 1 year ago

  • Assignee set to osmith
  • Priority changed from Normal to Low
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)