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

Unable to pull stimela with the command stimela pull #669

Open
Arnab-half-blood-prince opened this issue Aug 24, 2020 · 12 comments
Open

Unable to pull stimela with the command stimela pull #669

Arnab-half-blood-prince opened this issue Aug 24, 2020 · 12 comments

Comments

@Arnab-half-blood-prince

Hi,
I have installed the uDOCKER and stimela in a ubuntu machine with python 2.7. I just used pip install for both (check screen shots).
However, when I run stimela pull it is showing me error:

File "/home/arnab/anaconda2/bin/stimela", line 6, in
import stimela
File "/home/arnab/anaconda2/lib/python2.7/site-packages/stimela/init.py", line 30, in
Path(LOG_HOME).mkdir(exist_ok=True)
TypeError: mkdir() got an unexpected keyword argument 'exist_ok'

@o-smirnov
Copy link
Collaborator

I believe Python 2.x is no longer supported, you need 3.5 or higher.

(I am actually surprised you didn't get any errors at the installation stage, as there is a python_requires='>=3.5' statement in setup.py.)

@bennahugo
Copy link
Collaborator

bennahugo commented Aug 24, 2020 via email

@o-smirnov
Copy link
Collaborator

How the installation ran thorugh without error is what I want to know!

@Arnab-half-blood-prince
Copy link
Author

stimela
stimela_problem
u_docker

Check the screenshots.
I will try in python3 version then. Thanks for pointing this out

@JSKenyon
Copy link
Collaborator

Look at the versions - I believe it is installing the last python2 version.

@JSKenyon
Copy link
Collaborator

JSKenyon commented Aug 24, 2020

Confirmed - 1.6.2 was the last release prior to dropping python2 support. If you want to save users from this, it may be necessary to delete the packages from PyPI.

@bennahugo
Copy link
Collaborator

bennahugo commented Aug 24, 2020 via email

@Arnab-half-blood-prince
Copy link
Author

Hi,
I have now installed podman, buildah and then stimela in a centos machine CentOS Linux release 7.4.1708 (Core).
The error remains same when running stimela pull -p :

Traceback (most recent call last):
File "/home/Barcelona/anaconda2/bin/stimela", line 6, in
import stimela
File "/home/Barcelona/.local/lib/python2.7/site-packages/stimela/init.py", line 30, in
Path(LOG_HOME).mkdir(exist_ok=True)
TypeError: mkdir() got an unexpected keyword argument 'exist_ok'

Now I am using anaconda2. Is this problem related to that? I am unable to figure it out from the error message.

check the screen shots.
stimela_sucess

@bennahugo
Copy link
Collaborator

bennahugo commented Aug 24, 2020 via email

@Arnab-half-blood-prince
Copy link
Author

File "/home/Barcelona/stimela_venv/venv3/bin/stimela", line 14, in
main.main([a for a in sys.argv[1:]])
File "/home/Barcelona/stimela_venv/venv3/lib/python3.6/site-packages/stimela/main.py", line 602, in main
_cmd(argv)
File "/home/Barcelona/stimela_venv/venv3/lib/python3.6/site-packages/stimela/main.py", line 324, in pull
podman.pull(image, force=args.force)
File "/home/Barcelona/stimela_venv/venv3/lib/python3.6/site-packages/stimela/podman.py", line 58, in pull
utils.xrun("podman", ["pull", "docker.io/"+image])
File "/home/Barcelona/stimela_venv/venv3/lib/python3.6/site-packages/stimela/utils/xrun_poll.py", line 189, in xrun
raise StimelaCabRuntimeError("{} returns error code {}".format(command_name, status))
stimela.utils.StimelaCabRuntimeError: podman returns error code 125

This error I get after installing with python3 instead on anaconda.
I guess I need to install podman and buildah using this vertual env again.
Am I right?
Or is there something else?

@bennahugo
Copy link
Collaborator

bennahugo commented Aug 24, 2020 via email

@Arnab-half-blood-prince
Copy link
Author

Hi all,
It is done.
I have installed docker and via docker I pulled stimela and it worked.
I guess there was a problem with podman in centos machine.

Thanks for the help.
stimela_done

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

No branches or pull requests

4 participants