DBC:Errors/Executing: Difference between revisions

From Dirty Cache Wiki
Jump to navigation Jump to search
 
Line 23: Line 23:
<code>alternatives --set python /usr/bin/python3</code>
<code>alternatives --set python /usr/bin/python3</code>


== Git Clone issues ==


<syntaxhighlight lang=bash>
<pre>
# This means python is not in $PATH. On more recent RHEL Linux variants (EL 8), you need to specify
Error: No buildinfo
# which Python major version is to be used. Select Python3 if unsure.
</pre>
alternatives --set python /usr/bin/python3


# Python3 should now be the default. Check:
You are trying to run dbcollect using a cloned repository (git clone).
ls -l $(readlink -f $(which python))
{{dbcollect}} should run as a ZipApp package and be downloaded from Github Releases to be reliable.
-rwxr-xr-x 2 root root 11872 Sep 24 11:46 /usr/libexec/platform-python3.6
You can manually build dbcollect if you really want to use the git repository.
 
 
Error: No buildinfo
# You are trying to run dbcollect using a cloned repository (git clone).
# DBcollect should run as a ZipApp package and be downloaded from Github Releases to be reliable.
# You can manually build dbcollect if you really want to use the git repository.


<pre>
dbcollect must run from a ZipApp package, use https://github.com/outrunnl/dbcollect/releases/latest
dbcollect must run from a ZipApp package, use https://github.com/outrunnl/dbcollect/releases/latest
</pre>


 
Same as above except somehow you managed to create the buildinfo. Either go with the released ZipApp or
</syntaxhighlight>
follow the build procedure.

Latest revision as of 14:58, 5 November 2024


Some known errors that happen when running dbcollect.

PK... errors

File "dbcollect", line 2
  PK"""

This means you are running a very old Python version (before 2.6) that does not understand Python ZipApp packages

Environment problems

/usr/bin/env: ‘python’: No such file or directory

This means python is not in $PATH. On more recent RHEL Linux variants (EL 8), you need to specify which Python major version is to be used. Select Python3 if unsure.

alternatives --set python /usr/bin/python3

Git Clone issues

Error: No buildinfo

You are trying to run dbcollect using a cloned repository (git clone). dbcollect should run as a ZipApp package and be downloaded from Github Releases to be reliable. You can manually build dbcollect if you really want to use the git repository.

dbcollect must run from a ZipApp package, use https://github.com/outrunnl/dbcollect/releases/latest

Same as above except somehow you managed to create the buildinfo. Either go with the released ZipApp or follow the build procedure.