Opened 6 years ago
Closed 5 years ago
#1966 closed task (fixed)
migrate wcst_import to python 3.x
Reported by: | Dimitar Misev | Owned by: | dkamov |
---|---|---|---|
Priority: | major | Milestone: | 10.0 |
Component: | wcst_import | Version: | 9.7 |
Keywords: | Cc: | Vlad Merticariu | |
Complexity: | Medium |
Description
Python 2.x is being slowly deprecated in distributions. We should migrate wcst_import eventually.
Change History (7)
follow-up: 3 comment:1 by , 5 years ago
comment:2 by , 5 years ago
If WCST_Import can run in a system with Python 3.x installed, I will check soon. There is nothing to do.
follow-up: 4 comment:3 by , 5 years ago
Replying to dmisev:
On Ubunt 16.04 pip prints this warning:
"DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7."
In Ubuntu 18.04, pip cannot install package for Python 3, it needs to use pip3 to install. If one wants to use Python 3, rasdaman installer also needs to be updated to install pip3 and required packages for wcst_import in Python 3.
comment:4 by , 5 years ago
Replying to bphamhuu:
Replying to dmisev:
On Ubunt 16.04 pip prints this warning:
"DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7."In Ubuntu 18.04, pip cannot install package for Python 3, it needs to use pip3 to install. If one wants to use Python 3, rasdaman installer also needs to be updated to install pip3 and required packages for wcst_import in Python 3.
Correct, pip is for python 2.7. What has to be done is:
- identify the corresponding python 3 package for each python 2.7 external library that wcst_import uses. In some cases, the interface changed as well, so the code has to be adjusted.
- Further code changes, unrelated to the libraries, like adding parenthesis to print statements.
- Finally, in wcst_import.sh, python3 should be used instead of python.
All in all, a non-negligible amount of work.
comment:5 by , 5 years ago
Milestone: | 10.0 → 11.0 |
---|
comment:6 by , 5 years ago
Milestone: | 11.0 → 10.0 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
In Ubuntu 18.04, pip cannot install package for Python 3, it needs to use pip3 to install. If one wants to use Python 3, rasdaman installer also needs to be updated to install pip3 and required packages for wcst_import in Python 3.
This is already the case at the moment.
@dkamov there are many tests in systemtest/testcases_services/test_all_wcst_import
comment:7 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
On Ubunt 16.04 pip prints this warning: