Welcome, Guest
Username: Password: Remember me

TOPIC: Python version compatibility issues

Python version compatibility issues 4 years 9 months ago #35280

  • Cyangou
  • Cyangou's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 73
  • Thank you received: 2
Hello, I am trying to use convertHYCOM.py to download global ocean current from HyCOM data (Thanks for the convert python file),

But it is a pity that in python2.7.5 environment, its always show no modules 'XXX', such as 'urllib.parse'. However, i used Pip.py install tool, there is no 'urllib' module in python2. i check it online that just in python3 it is divided into 'urllib.parse'.

Maybe my explanation is a bit confusing, but i just want to say that convertHYCOM.py seems does not match some modules of python2.7.5. Or my measure of using convertHYCOM.py is not good, i searched the forum that shows some users met the same problem like me.

There is no doubt that telemacv8p0r2 can run in the latest python3 environment. In order to solve the above problems (in my opinion), I decided to quit the old version of python2.7.5. and using Python3 may better match the statement in convertHYCOM.py.

I downloaded the new python3, but i don't know how to "connect" with my telemac v8p0r2. Should I re-compile telemac with python3, right? what should I do?
i am using winPython.

Best wishes
Yang
Attachments:
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.