Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running under Fedora #159

Open
SolidTux opened this issue Jun 15, 2020 · 1 comment
Open

Running under Fedora #159

SolidTux opened this issue Jun 15, 2020 · 1 comment
Labels

Comments

@SolidTux
Copy link

SolidTux commented Jun 15, 2020

I tried to run this under Fedora, but it doesn't seem to work. There are packages for the dpkg tools, but the script seems to use dpkg-query to see if debhelper is installed. I've installed both of them, but as debhelper is installed through dnf it's not found.

Is there a way to bypass this check? Or use a different method depending on the distribution?

Here is the relevant part of the log file:

...
dpkg-query: Kein Paket gefunden, das auf debhelper passt
ERROR running: /usr/bin/dpkg-query --show --showformat=${Version} debhelper
Traceback (most recent call last):
  File "setup.py", line 5, in <module>
    setup(
  File "/home/daniel/.local/share/virtualenvs/x-9cSVj0er/lib/python3.8/site-packages/setuptools/__init__.py", line 161, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib64/python3.8/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib64/python3.8/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/daniel/.local/share/virtualenvs/x-9cSVj0er/lib/python3.8/site-packages/stdeb/command/bdist_deb.py", line 33, in run
    self.run_command('sdist_dsc')
  File "/usr/lib64/python3.8/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/daniel/.local/share/virtualenvs/x-9cSVj0er/lib/python3.8/site-packages/stdeb/command/sdist_dsc.py", line 135, in run
    build_dsc(debinfo,
  File "/home/daniel/.local/share/virtualenvs/x-9cSVj0er/lib/python3.8/site-packages/stdeb/util.py", line 1418, in build_dsc
    debhelper_version_str = get_version_str('debhelper')
  File "/home/daniel/.local/share/virtualenvs/x-9cSVj0er/lib/python3.8/site-packages/stdeb/util.py", line 272, in get_version_str
    stdout = get_cmd_stdout(args)
  File "/home/daniel/.local/share/virtualenvs/x-9cSVj0er/lib/python3.8/site-packages/stdeb/util.py", line 261, in get_cmd_stdout
    raise RuntimeError('returncode %d', returncode)
RuntimeError: ('returncode %d', 1)
@dirk-thomas
Copy link
Collaborator

Is there a way to bypass this check? Or use a different method depending on the distribution?

Probably not at the moment. I also don't know what could / should be used on Fedora instead. Please consider contributing to make this work for your use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants