huaweicloudsdk / sdk-python

It stores OpenStackPythonSDK for Huawei cloud and partner clouds.
Other
21 stars 17 forks source link

When will the SDK support python 3? #7

Open dan-bar-dov opened 5 years ago

dan-bar-dov commented 5 years ago

What is the plan to move the SDK forward to python 3.6/3.7?

IamFive commented 5 years ago

I think it should support PY36 by default, what is the issue?

dan-bar-dov commented 5 years ago

I get the following error: eddy@eddy-om-linux2:~/hec/test$ python3 test.py Traceback (most recent call last): File "test.py", line 3, in from openstack import connection File "/usr/local/lib/python3.6/dist-packages/openstack/connection.py", line 88, in from openstack import aksksession as aksession File "/usr/local/lib/python3.6/dist-packages/openstack/aksksession.py", line 21, in import urlparse ModuleNotFoundError: No module named 'urlparse'

This link explains that the module was renamed in Python 3: https://docs.python.org/2/library/urlparse.htmlhttps://docs.python.org/2/library/urlparse.html

This is obviously only the first error. It proves that the openstack package was never run in Python 3

From: Woo Cube [mailto:notifications@github.com] Sent: Monday, January 14, 2019 3:43 PM To: huaweicloudsdk/sdk-python sdk-python@noreply.github.com Cc: Dan Bar Dov dan.bar.dov@huawei.com; Author author@noreply.github.com Subject: Re: [huaweicloudsdk/sdk-python] When will the SDK support python 3? (#7)

I think it should support PY36 by default, what is the issue?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/huaweicloudsdk/sdk-python/issues/7#issuecomment-454008685, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aqq-Td5MtzCsLM_rw3wgwLPgy2dnedCZks5vDImAgaJpZM4Z9EFd.

IamFive commented 5 years ago

It seems the AKSK feature breaks python3 support. I am not the commitor now, may the project manager will fix it.