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

Some Singularity-python bugs with Python 2.7 #41

Closed
victorsndvg opened this issue Oct 13, 2017 · 3 comments
Closed

Some Singularity-python bugs with Python 2.7 #41

victorsndvg opened this issue Oct 13, 2017 · 3 comments

Comments

@victorsndvg
Copy link
Contributor

Hi all,

I'm trying to use the development branch of vsoch/singularity-python with sregistry and I'm getting some errors.

I would like to post this directly in the right repository, please @vsoch, could you open the issues feature for this repository? If not, which communication channel do you prefer to post issues about this repository?

I'm running run_client.sh example and I have Python 2.7.12 installed. is Python 3 a requirement?

Lets go with the bugs,

  • First, in this line, L86 It crashes because image does not exist.
  • Then, Calling to $ sregistry list $IMAGE with an existing image, I get the following error with the date:
...
  File "/usr/local/lib/python2.7/dist-packages/singularity-1.2.0-py2.7.egg/singularity/registry/client/query.py", line 213, in container_search
    datetime_object = datetime.strptime(c['add_date'], '%Y-%m-%dT%H:%M:%S.%fZ')
ValueError: time data '2017-10-13T01:47:50.824098-05:00' does not match format '%Y-%m-%dT%H:%M:%S.%fZ'
  • There is another error calling to: $ sregistry delete $IMAGE
This line crashes [L54](https://github.com/vsoch/singularity-python/blob/development/singularity/registry/client/delete.py#L54) . It seems that python 3 `input` command equivalent in python 2.5 is `raw_input` . 
* Finally,  if I try to force-delete `$ sregistry delete --force $IMAGE` It returns:

ERROR Beep boop! Internal Server Error: 500


Thanks in advance!
@vsoch
Copy link
Member

vsoch commented Oct 13, 2017

Issue board is open for business!

@vsoch
Copy link
Member

vsoch commented Oct 13, 2017

https://github.com/vsoch/singularity-python/issues

You are correct that I have done absolutely no testing for python 2.x. Please file all the issues and we will fix them up!

@victorsndvg
Copy link
Contributor Author

Post the issue in the right place. Closing ...

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

2 participants