help ! it doesn't work : "error unable to connect to servers to test latency"
@ido9129 Жыл бұрын
AttributeError: module 'speedtest' has no attribute 'Speedtest' Why? Please someone help
@zikobht46233 жыл бұрын
We can all agree that this dude a legen when it comes to Python 👌
@LearnTermux3 жыл бұрын
yeah😍
@muthurubant58123 жыл бұрын
Yeah🔥
@NeuralNine3 жыл бұрын
Thank you brother. Appreciate it! :)
@zikobht46233 жыл бұрын
@@NeuralNine i am telling facts bro, thanks for the amazing content
@benjamindreyer98843 жыл бұрын
I think the module is outdated for python 3.9, i get this error: AttributeError: partially initialized module 'speedtest' has no attribute 'Speedtest' (most likely due to a circular import)
@sumerox77463 жыл бұрын
It works mate, just checked
@sumerox77463 жыл бұрын
import speedtest test = speedtest.Speedtest() print("Loading server list") test.get_servers() # -> get list of servers print("Choosing the best server") best = test.get_best_server() # -> choose best server print(f"Found: {best['host']} located in {best['country']}") print('Performing download test') download_result = test.download() # bit = Kbit/1024 Kbit = Mbit / 1024 print('Performing upload test') upload_result = test.upload() ping_result = test.results.ping print(f"Download speed: {download_result/1024/1024:.2f} Mbit/sec Upload speed: {upload_result/1024/1024:.2f} Mbit/sec Ping speed: {ping_result:.2f} ms")
@brkmrt23 жыл бұрын
yeah, i checked the repository and it works with Python 2.4-3.7
@benjamindreyer98843 жыл бұрын
@@sumerox7746 yes but you must be using a previous version of python 3.9.4
@visuss13 жыл бұрын
Did you try changing your file name ? Hope its not speedtest as well
@stevenwoods94033 жыл бұрын
@NeuralNine: It's not often that I comment on videos here on YT, but I watched this video (and a lot of your other videos), and I've used your code for a tiny project of mine (I've credited you in the code). I'm not an avid coder - not by a long shot - but I finally found the "key" to understanding a lot of how coding (and especially Python) works. Most of that understanding is because of your great way of "show and tell" in your videos. Thumbs up! Keep up the good work!
@NeuralNine3 жыл бұрын
I really appreciate your comment thank you! :)
@marcusmar11902 жыл бұрын
Hey, can we do that on the mobile app
@kaisj73 жыл бұрын
sorry I get this error throw that I was install sppedtest module ..........""AttributeError: module 'speedtest' has no attribute 'speedtest'
@martingamingstreamhighligts3 жыл бұрын
Are you using this library under python 3.9? Because my python compiler sais an error because of the python version.
@g.s.33893 жыл бұрын
great video as usual, the same python library has a method that can be called and gives back a dictionary. a=test.results.dict()
@dennydavid26063 жыл бұрын
How did u made that quick refactor at 5:19 that was awesome what is the trick?
@lingeshwaran2 жыл бұрын
you're a underrated legend
@zdrTamas3 жыл бұрын
source code?
@Salmankhan-qt8uy2 жыл бұрын
From where can I get those codes in this video????
@gbocarvalhoАй бұрын
this test works in a VPN?
@edwinshabu83783 жыл бұрын
Great channel! Really appreciate your work and teaching skills.
@wko_3 жыл бұрын
Great video as always! And please keep making more videos like this one. 🇧🇷 ✌
@Zylops3 жыл бұрын
Great video, whats the intro song you use pls :)
@faizan_khan6603 жыл бұрын
Also check coding Lifestyle 4u channel for more python projects for beginners 😀
@skipi19823 жыл бұрын
short and very helpful. Really appreciate
@Megaheropap3 жыл бұрын
I keep getting ValueError: invalid literal for int() with base 10: ''
@CrazyAlexer3 жыл бұрын
Nice tutorial but isnt dividing by 1024 only for bytes? 1Kilobit has 1000 bits not 1024 bits. 1KiloByte has 1024 Bytes
@arpankumar50073 жыл бұрын
It's more just one command in "" "" "python3 -m speedtest --bytes" for get speed in Mbp/s terminal if just quickly want to check speed .... This you have given a great tutorial if we want to add a feature in a project thx... And keep mqking such videos it's always great to learn new things...
@Sabrsulab2 жыл бұрын
Make it without the module that just reaches out to a third-party though. How would you analyze it locally without relying on a third party?
@vishvajitviswanathan79703 жыл бұрын
Brother I'm getting error saying invalid literal for int() with base 10: ''. In the line test=speedtest.Speedtest(). Why!?
@litx70543 жыл бұрын
Can you please make a video in how to make zoom clone works in the internet?
@marcusmar11902 жыл бұрын
Hey, can we do that on the mobile app
@Salmankhan-qt8uy2 жыл бұрын
Great but how these codes comes to ur mind.? Is it because u learned everything in python?
@aikingpin3 жыл бұрын
can yu plz make a version with gui
@martyb37833 жыл бұрын
Great Video. It is much simpler that I imagined. Thank you for making this video! I am new to python and you explain things well.
@simon34313 жыл бұрын
bro you deserve 1M sub. youre a legend
@piyushpaul4673 жыл бұрын
I am following all your videos Your videos are awesome.... Love from India
@reubenthomas10333 жыл бұрын
Awesome content!! Please keep uploading
@southisacknova Жыл бұрын
Great video and tutorial sir thank you
@CODEMANTHEUNDERDARK3 жыл бұрын
keeps saying no module named 'speedtest'
@yourmom-xe2lx2 жыл бұрын
because you didnt install it.
@minhajhossain337 Жыл бұрын
Where do you live Florian??
@trusaberingo3 жыл бұрын
Great work, keep it up :D
@MathonX3 жыл бұрын
i was just testing my wifi with opening youtube and now i see this XD. Nice video keep it up
@faizan_khan6603 жыл бұрын
Also check coding Lifestyle 4u channel for more python projects for beginners 😀
@tsmghost3 жыл бұрын
Bro you just read my mind😂😂😂I had just started building it and there comes your video!✨
@錘哥錘哥錘哥3 жыл бұрын
Good content, dude 感謝你
@insertx2k_dev3 жыл бұрын
It doesn't seem like to properly function on Python 3.9.x, Please update the module.
@faizan_khan6603 жыл бұрын
Also check coding Lifestyle 4u channel for more python projects for beginners 😀
@jerryandori2993 жыл бұрын
can you do a video of how to use dustloop in python ?
@GermanTimecrafter3 жыл бұрын
great to hear that apparently Austria doesn't have any better internet speed than Germany 😅
@agentmahone17933 жыл бұрын
AttributeError: module 'speedtest' has no attribute 'Speedtest'
@grahammccann85542 жыл бұрын
Thank you for making an easy video to follow.
@alibaz1469 Жыл бұрын
Thanks I learned a lot❤
@chiragpandit17632 жыл бұрын
hello dear I am using Ubuntu, when I using import speedtest its showing error .. can u assist me ?
@x3roxismygood2 жыл бұрын
do pip install speedtest
@AKtrooper3 жыл бұрын
im extremely new. hopefully someone can help me out here. when i try to run it, i get the same error that he did, but unlike him i am unable to get it corrected. i downloaded the speedtest in the cmd center. and when i use python IDLE it works, just not when i use PyCharm. any help would be appreciated.
@shamanthrajreddy12302 жыл бұрын
Great tutorial!
@addyaddy58793 жыл бұрын
Good stuff, the last line should be ping_result instead of download_result
@HoriRecap2 жыл бұрын
print(upload_result) đi nốt iWork can u please respond
@adaobas3 жыл бұрын
I was looking for so long how to truncate decimal values using the function string.. such a simple thing lmao... thx
@rahulmalhotra73043 жыл бұрын
Was just researching about it this morning. 😄😄😄
@augustosegapeli10203 жыл бұрын
Great Video
@NeuralNine3 жыл бұрын
thank you :)
@faizan_khan6603 жыл бұрын
Also check coding Lifestyle 4u channel for more python projects for beginners 😀
@erothiuslol3 жыл бұрын
Great vid. Thank you!
@faizan_khan6603 жыл бұрын
Also check coding Lifestyle 4u channel for more python projects for beginners 😀
@suwedo86773 жыл бұрын
hi, looking forward to it as always, your videos are always great !
@avishekacharya75863 жыл бұрын
1st one please reply dear from 🇳🇵🇳🇵🇳🇵 Nepal
@faizan_khan6603 жыл бұрын
Also check coding Lifestyle 4u channel for more python projects for beginners 😀
@CactusAmigo3 жыл бұрын
First I love your vids
@NeuralNine3 жыл бұрын
thanks ^^
@CactusAmigo3 жыл бұрын
@@NeuralNine no problem
@minusharma17383 жыл бұрын
I was looking this an hour ago only 😂😂
@dofikurniawan38813 жыл бұрын
Basic oop with python please
@abhinavchoudhary80143 жыл бұрын
Nice info
@Dark-Base2 жыл бұрын
you good man
@vigneshwarannallasamy3 жыл бұрын
Is there any possibility of getting speed of best server? Because the download speed is much lesser than the speed I get in speedtest.net..
@jeanmarcel64952 жыл бұрын
Everyone who is getting this error: AttributeError: module 'speedtest' has no attribute 'Speedtest' do these 2 command "pip uninstall speedtest" and after "pip install speedtest-cli"
@sunilraoalsreenivasan26862 жыл бұрын
'pip' is not recognized as an internal or external command, operable program or batch file. i keep getting this. Do i have to install any file from github? pls help
@jeanmarcel64952 жыл бұрын
@@sunilraoalsreenivasan2686 go look a video on how to install pip and after try my command and it will work
@mimurajam15013 жыл бұрын
nice video
@faizan_khan6603 жыл бұрын
Also check coding Lifestyle 4u channel for more python projects for beginners 😀
@holo233 жыл бұрын
I love you
@Guiestrela.lambert3 жыл бұрын
Good
@rohiths13253 жыл бұрын
U can type 1 cmd to know this 🤭🤭🤭🤦♂️🤦♂️🤦♂️🤦♂️
@emr_yasa_3 жыл бұрын
+1
@apmihai3 жыл бұрын
How can be sure that the tests are performed against the "best" server found with *best = test.get_best_server()*. Because you never use the best variable. There is a way to force that? Thanks!
@wexxansmith7893 жыл бұрын
I guess the line "best = test.get_best_server()" do the thing. It should return information about best server and also it should set the best server to default one to work with.
@apmihai3 жыл бұрын
Not sure. If I comment that line (and test.get_servers() too, btw) the script works just fine... Maybe defaults to the best server. But how can you choose a specific server from get_servers() list? In cli you have --server option.