Actions
Bug #5919
openosmo-python-tests: Update/fix README or setup process
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
Actions