analogdevicesinc / libsmu

Software abstractions for the analog signal exploration tools.
http://analogdevicesinc.github.io/libsmu/
BSD 3-Clause "New" or "Revised" License
32 stars 31 forks source link

bin/pysmu: Fix urllib imports for python2 and python3 compatibility #175

Closed cyber-g closed 3 years ago

cyber-g commented 3 years ago

1/ Fix "ImportError: cannot import name 'urlretrieve'" 2/ Fix "ModuleNotFoundError: No module named 'urllib2'"

Fixes #174

AppVeyorBot commented 3 years ago

:x: Build libsmu 1.0.1341 failed (commit https://github.com/analogdevicesinc/libsmu/commit/6af3cd8d9f by @cyber-g)

AppVeyorBot commented 3 years ago

:x: Build libsmu 1.0.1342 failed (commit https://github.com/analogdevicesinc/libsmu/commit/71b219fa5d by @cyber-g)

cristi-iacob commented 3 years ago

1) For solving this issue we have to consider the situation for both Python2 and Python3. So a solution for this issue might be the one I described in #174. Can you please modify your commit to contain the solution which is both Python2 and Python3 friendly? (The current one is only Python3 friendly). If you want I can do this for you. Just let me know. 1.1) More like a general thing about libsmu commits. In order to be accepted into the master branch, your commits should respect a pattern. The main things to respect are: