Author Topic: Python 3.x?  (Read 3640 times)

Dariusz Piatkowski

  • Hero Member
  • *****
  • Thank You
  • -Given: 14
  • -Receive: 17
  • Posts: 728
    • View Profile
Re: Python 3.x?
« Reply #30 on: July 15, 2020, 05:29:50 am »
...for 2) see https://www.os2world.com/forum/index.php/topic,2484.msg27230.html#msg27230...

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

Yes, this works.

Paul Smedley

  • Hero Member
  • *****
  • Thank You
  • -Given: 21
  • -Receive: 70
  • Posts: 605
    • View Profile
Re: Python 3.x?
« Reply #31 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

Cheers,

Paul

Dariusz Piatkowski

  • Hero Member
  • *****
  • Thank You
  • -Given: 14
  • -Receive: 17
  • Posts: 728
    • View Profile
Re: Python 3.x?
« Reply #32 on: July 15, 2020, 04:45:28 pm »
Hi Paul,

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...

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: [Select]
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

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

Code: [Select]
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

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.
« Last Edit: July 15, 2020, 04:58:21 pm by Dariusz Piatkowski »

Paul Smedley

  • Hero Member
  • *****
  • Thank You
  • -Given: 21
  • -Receive: 70
  • Posts: 605
    • View Profile
Re: Python 3.x?
« Reply #33 on: July 15, 2020, 11:13:39 pm »
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

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 8
  • Posts: 88
    • View Profile
Re: Python 3.x?
« Reply #34 on: July 16, 2020, 10:51:57 am »
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

Paul Smedley

  • Hero Member
  • *****
  • Thank You
  • -Given: 21
  • -Receive: 70
  • Posts: 605
    • View Profile
Re: Python 3.x?
« Reply #35 on: July 29, 2020, 10:26:43 am »