Help with python here | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help with python here

Am trying to run this script but am lost with how to do it. I keep getting error. https://raw.githubusercontent.com/josai/crypto-arbitrage/master/exchange_compare.py Can someone show me a way to run this script successful please?

26th Aug 2020, 7:22 AM
Dprincebh
Dprincebh - avatar
26 Answers
0
Dprincebh you probably don't have a code that defines "exhanges". If it's a variable, at least set it to 0. Or it could be a typo - double check the variables name.
26th Aug 2020, 12:12 PM
Alexander Bolte
Alexander Bolte - avatar
+ 2
Rik Wittkopp I tried it on my ide window 10. It didn't run
26th Aug 2020, 11:48 AM
Dprincebh
Dprincebh - avatar
+ 2
I dont know then.
26th Aug 2020, 2:04 PM
Alexander Bolte
Alexander Bolte - avatar
+ 2
Try to run it on other editor..sololearn is not the best and a lot of times it can cause errors...Its a mobile bro
27th Aug 2020, 8:37 AM
David Sontu
David Sontu - avatar
+ 1
I suspect it won't run on Sololearn. Download Pycharm or other IDE and try to run external of Sololearn server
26th Aug 2020, 9:03 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
That's the same error I got actually ~ swim ~
26th Aug 2020, 11:58 AM
Dprincebh
Dprincebh - avatar
+ 1
Yes
26th Aug 2020, 12:20 PM
Alexander Bolte
Alexander Bolte - avatar
+ 1
its a typo The reason why it's not defined is because the name "exhanges" is defined instead of "exchanges"
26th Aug 2020, 12:46 PM
Alexander Bolte
Alexander Bolte - avatar
+ 1
Hmm.
26th Aug 2020, 1:47 PM
Alexander Bolte
Alexander Bolte - avatar
+ 1
I got error and I don't seem to know any way to help!!,😔😔
27th Aug 2020, 10:03 PM
WeApOn-A
WeApOn-A - avatar
+ 1
1st step- Write pip install pycoingecko in your terminal. 2nd step- Replace the 'exhanges' by 'exchanges' in line 66.
28th Aug 2020, 1:26 AM
Ujjawal Gupta
0
~ swim ~ can you help me here?
26th Aug 2020, 11:49 AM
Dprincebh
Dprincebh - avatar
0
~ swim ~ yeah I tried. There is nothing. It was an API actually
26th Aug 2020, 12:02 PM
Dprincebh
Dprincebh - avatar
0
~ swim ~ the output should be something like this BOT spread: 5.39% PRG spread: 5.49% PMA spread: 9.26% CLOAK spread: 14.2% But I got no output either
26th Aug 2020, 12:19 PM
Dprincebh
Dprincebh - avatar
0
Alexander Bolte could there be any problem with the script
26th Aug 2020, 12:22 PM
Dprincebh
Dprincebh - avatar
0
I changed that actually Alexander Bolte but still there is no output. Or does the program has to run for so long before it could give an output
26th Aug 2020, 12:47 PM
Dprincebh
Dprincebh - avatar
0
Well if it has no errors...
26th Aug 2020, 12:54 PM
Alexander Bolte
Alexander Bolte - avatar
0
Alexander Bolte then it should take more time to execute, to give the output
26th Aug 2020, 12:55 PM
Dprincebh
Dprincebh - avatar
0
Wait a minute... WAIT A MINUTE If I'm right, there are errors in not just this script but OTHERS as well.
26th Aug 2020, 12:57 PM
Alexander Bolte
Alexander Bolte - avatar
0
Seeing the error that ~ swim ~ posted, it looks like there are multiple errors in different scripts
26th Aug 2020, 1:00 PM
Alexander Bolte
Alexander Bolte - avatar