OS/2, eCS & ArcaOS - Technical > Programming

Python 3.x?

<< < (7/8) > >>

Dariusz Piatkowski:

--- Quote from: Paul Smedley on July 14, 2020, 11:21:17 pm ---...for 2) see https://www.os2world.com/forum/index.php/topic,2484.msg27230.html#msg27230...
--- End quote ---

Yikes...umm, that's embarrassing that I missed the answer right there!!!

Yes, this works.

Paul Smedley:
New _ssl.pyd at http://smedley.id.au/tmp/_ssl.zip

Copy it over the top of the one in \python38\lib\python3.8\lib-dynload

Cheers,

Paul

Dariusz Piatkowski:
Hi Paul,


--- Quote from: Paul Smedley on July 15, 2020, 10:09:32 am ---New _ssl.pyd at http://smedley.id.au/tmp/_ssl.zip

Copy it over the top of the one in \python38\lib\python3.8\lib-dynload...
--- End quote ---

Yes sir, that worked.

Here is the output, there are additional messages showing (DeprecationWarning), not sure if this is a Python 2.x vs 3.x script difference, but I thought I'd share in case this is actually a Python 3.8 issue:


--- Code: ---Retrieving speedtest.net configuration...
Testing from Managed Network Systems (98.143.64.3)...
Retrieving speedtest.net server list...
speedtest-cli:1265: DeprecationWarning: This method will be removed in future versions.  Use 'tree.iter()' or 'list(tree.iter())' instead.
  elements = root.getiterator('server')
Retrieving information for the selected server...
Hosted by MNSi Telecom (Windsor, ON) [1.76 km]: 32.353 ms
Testing download speed.speedtest-cli:1517: DeprecationWarning: isAlive() is deprecated, use is_alive() instead
  while prod_thread.isAlive():
speedtest-cli:1504: DeprecationWarning: isAlive() is deprecated, use is_alive() instead
  while thread.isAlive():
.......................................................................speedtest-cli:1519: DeprecationWarning: isAlive() is deprecated, use is_alive() instead
  while cons_thread.isAlive():
........
Download: 756.56 Mbit/s
Testing upload speed.speedtest-cli:1589: DeprecationWarning: isAlive() is deprecated, use is_alive() instead
  while thread.isAlive():
speedtest-cli:1602: DeprecationWarning: isAlive() is deprecated, use is_alive() instead
  while prod_thread.isAlive():
................................................................................................speedtest-cli:1604: DeprecationWarning: isAlive() is deprecated, use is_alive() instead
  while cons_thread.isAlive():
.....
Upload: 343.51 Mbit/s

--- End code ---

In comparison, here is what the execution with Python 2.7 looks like:


--- Code: ---Retrieving speedtest.net configuration...
Testing from Managed Network Systems (98.143.64.3)...
Retrieving speedtest.net server list...
Retrieving information for the selected server...
Hosted by MNSi Telecom (Windsor, ON) [1.76 km]: 33.667 ms
Testing download speed................................................................................
Download: 759.68 Mbit/s
Testing upload speed................................................................................................
Upload: 381.17 Mbit/s

--- End code ---

EDIT
====
Issue resolved, these messages pertain to the script itself. Version 2.1.2 addresses these, can be found here => https://pypi.org/project/speedtest-cli.

Paul Smedley:
FYI I installed it using pip... Suggest you install pip using the instructions at https://pip.pypa.io/en/stable/installing/

Then you can install things with 'python3 \python38\bin\pip install speedtest-cli'

TeLLie:
Hi Paul,
I did like you suggested and it works with speedtest

[F:\usr\bin]python3.exe speedtest
Retrieving speedtest.net configuration...
Testing from Xs4all Internet BV (83.161.157.109)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Flexyz (Harderwijk) [11.02 km]: 5.984 ms
Testing download speed................................................................................
Download: 364.44 Mbit/s
Testing upload speed...
Upload: 90.25 Mbit/s

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version