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

Error with unexpected keyword argument #8

Open
diegopaso opened this issue Feb 16, 2025 · 3 comments
Open

Error with unexpected keyword argument #8

diegopaso opened this issue Feb 16, 2025 · 3 comments
Labels
invalid This doesn't seem right question Further information is requested

Comments

@diegopaso
Copy link

diegopaso commented Feb 16, 2025

Hi.

I've just installed zypperoni and it crashes when I run it in my 15.6 installation:

workstation-opensuse:~ # sudo zypperoni dup
Traceback (most recent call last):
File "/usr/bin/zypperoni", line 435, in
out, ret = shell_exec(f"command -v {program}")
File "/usr/bin/zypperoni", line 200, in shell_exec
res = subprocess.run(command, shell=True, capture_output=True, encoding="utf8", errors="replace")
File "/usr/lib64/python3.6/subprocess.py", line 423, in run
with Popen(*popenargs, **kwargs) as process:
TypeError: init() got an unexpected keyword argument 'capture_output'

My python version is 3.6.15

Could you help me?

Thanks for your work.

@diegopaso diegopaso changed the title Error with expected keyword argument Error with unexpected keyword argument Feb 16, 2025
@pavinjosdev
Copy link
Owner

My python version is 3.6.15

The python version on Leap is too old.
You can get a new one with pyenv

At least 3.11 is required.

@pavinjosdev pavinjosdev added invalid This doesn't seem right question Further information is requested labels Feb 16, 2025
@diegopaso
Copy link
Author

diegopaso commented Feb 16, 2025

Leap has python3 linked by default to 3.6.5, so, If you change env in the main file to 3.11 any Leap user can run it if it installs python311 package.

I sent you a pull request with the change.

Thanks for your project.

@pavinjosdev
Copy link
Owner

Thanks for PR #9 💫

Hardcoding a specific python version would break the program in the future with a different python version though! 🥹

Perhaps a more future proof way would be to update the docs stating the minimum python version and how to install it using pyenv. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants