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

Python 3 compatibility #81

Closed
alexpearce opened this issue Jul 11, 2018 · 4 comments
Closed

Python 3 compatibility #81

alexpearce opened this issue Jul 11, 2018 · 4 comments
Assignees

Comments

@alexpearce
Copy link

alexpearce commented Jul 11, 2018

I tried using the client using the Python that ships with my Linux distribution, v3.6.5 but this failed:

$ cap-client --help
Traceback (most recent call last):
  File "/home/apearce/tmp/venv/bin/cap-client", line 11, in <module>
    load_entry_point('cap-client==0.0.2', 'console_scripts', 'cap-client')()
  File "/home/apearce/tmp/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 480, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/apearce/tmp/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2693, in load_entry_point
    return ep.load()
  File "/home/apearce/tmp/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in load
    return self.resolve()
  File "/home/apearce/tmp/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2330, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/apearce/tmp/venv/lib/python3.6/site-packages/cap_client/cli/__init__.py", line 33, in <module>
    from cap_client.cap_api import CapAPI
  File "/home/apearce/tmp/venv/lib/python3.6/site-packages/cap_client/cap_api.py", line 30, in <module>
    from urlparse import urljoin
ModuleNotFoundError: No module named 'urlparse'

I suspect there are probably other issues with Python 3 compatibility, but I haven't checked.

@ioannistsanaktsidis
Copy link
Member

@alexpearce the client is not compatible with Python 3. It only works with python 2.x. It's in our future plans to work on that.

@alexpearce
Copy link
Author

the client is not compatible with Python 3

Yes, I figured 😄 I thought I'd open an issue just to track it, and for others who might try with Python 3 to see that it's a known problem.

@clelange
Copy link

Hi, is there any timescale to make the cap-client work with python3? Also, it would be nice if the instructions at https://cap-client.readthedocs.io/en/latest/ stated that cap-client only works with legacy python.

@pamfilos
Copy link
Collaborator

@clelange PR #83 has been created.. we will try and merge before the end of next week

ioannistsanaktsidis added a commit to ioannistsanaktsidis/cap-client that referenced this issue Mar 14, 2019
 * Closes cernanalysispreservation#81.

Signed-off-by: Ioannis Tsanaktsidis <[email protected]>
ioannistsanaktsidis added a commit to ioannistsanaktsidis/cap-client that referenced this issue Mar 14, 2019
 * Closes cernanalysispreservation#81.

Signed-off-by: Ioannis Tsanaktsidis <[email protected]>
ioannistsanaktsidis added a commit to ioannistsanaktsidis/cap-client that referenced this issue Mar 14, 2019
 * Closes cernanalysispreservation#81.

Signed-off-by: Ioannis Tsanaktsidis <[email protected]>
ioannistsanaktsidis added a commit to ioannistsanaktsidis/cap-client that referenced this issue Mar 14, 2019
 * Closes cernanalysispreservation#81.

Signed-off-by: Ioannis Tsanaktsidis <[email protected]>
@ghost ghost removed the Status: in review label Apr 2, 2019
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

5 participants