algorithmic-trading-python icon indicating copy to clipboard operation
algorithmic-trading-python copied to clipboard

downloading secrets.py

Open noaa1603 opened this issue 4 years ago • 17 comments

When I click on download the file, a new tab opens with only one line written in it: IEX_CLOUD_API_TOKEN = 'Tpk_059b97af715d417d9f49f50b51b1c448' What should I do?

noaa1603 avatar Mar 07 '21 10:03 noaa1603

I'm getting the same thing when trying to download the secrets.py file...

Deang1983 avatar Mar 07 '21 14:03 Deang1983

Hey, to solve this you can just copy that text into notepad or another text editor and just save as secrets.py

sjk39 avatar Mar 13 '21 19:03 sjk39

Hey, to solve this you can just copy that text into python idle and just save as secrets.py

yogesh3singh avatar Apr 23 '21 05:04 yogesh3singh

Also, if you're on windows make sure to select "all files" on the drop down or it will just save a a secrets.py.txt....not a secrets.py

Christianp54 avatar Jun 05 '21 21:06 Christianp54

Thank You So Much

AGAMFIRE avatar Jun 12 '21 07:06 AGAMFIRE

I saved it to secrets.py however it still is not working . image

Dereklenny avatar Jun 14 '21 13:06 Dereklenny

I'm using mac. Same thing happened to me, a new tab opened and saved it to a text editor file with extension of .py and tried it again. still didnt work so I can't continue the course. Send help

shekinahgc avatar Jun 29 '21 12:06 shekinahgc

I'm using mac. Same thing happened to me, a new tab opened and saved it to a text editor file with extension of .py and tried it again. still didnt work so I can't continue the course. Send help

Hey guys and gals, I had the same issue, seems to be that "secrets" it's now a built in module in python, so you need to rename it to something else. And then it should work (Rename the secrets. pays to something else.py).

Cheers!

Addendum: You also need to create a free account on https://iexcloud.io/ and setup the environment to sandbox in order to get your API test key and then finally you can proceed with the tutorial.

erickjvazquez avatar Jul 13 '21 01:07 erickjvazquez

I'm using mac. Same thing happened to me, a new tab opened and saved it to a text editor file with extension of .py and tried it again. still didnt work so I can't continue the course. Send help

Hey guys and gals, I had the same issue, seems to be that "secrets" it's now a built in module in python, so you need to rename it to something else. And then it should work (Rename the secrets. pays to something else.py).

Cheers!

Addendum: You also need to create a free account on https://iexcloud.io/ and setup the environment to sandbox in order to get your API test key and then finally you can proceed with the tutorial.

Had the same issue on MAC so I named a textedit file "secretstest.py" and when I tried to import it got a module not found error. I also set up my iexcloud account and set it to sandbox mode. Any idea what's going on? I'm very inexperienced and genuinely don't know what's going wrong here, sorry if I did something stupid.

DrewN8 avatar Aug 25 '21 22:08 DrewN8

I'm using mac. Same thing happened to me, a new tab opened and saved it to a text editor file with extension of .py and tried it again. still didnt work so I can't continue the course. Send help

Hey guys and gals, I had the same issue, seems to be that "secrets" it's now a built in module in python, so you need to rename it to something else. And then it should work (Rename the secrets. pays to something else.py). Cheers! Addendum: You also need to create a free account on https://iexcloud.io/ and setup the environment to sandbox in order to get your API test key and then finally you can proceed with the tutorial.

Had the same issue on MAC so I named a textedit file "secretstest.py" and when I tried to import it got a module not found error. I also set up my iexcloud account and set it to sandbox mode. Any idea what's going on? I'm very inexperienced and genuinely don't know what's going wrong here, sorry if I did something stupid.

to clarify, it was not the importerror message nick got in the tutorial (ModuleNotFoundError: No module named 'secretstest')

DrewN8 avatar Aug 25 '21 22:08 DrewN8

I saved it to secrets.py however it still is not working . image

Try to restart your Kernel and run from starting I hope it will work.

varunjalota avatar Oct 09 '21 04:10 varunjalota

Hi Guys, I'm also facing the same issue, I've tried reloading the Kernal and also saved the file multiple times with different names with all folders selected, and seeing the error same as this pic above. Please Help

Aman762000 avatar Oct 10 '21 10:10 Aman762000

Screen Shot 2021-11-26 at 02 15 56

I'm using Mac too. And changed the file name secret to another file name. But, I got this error saying "null is not defined" When I changed "null" to "1", it says like the below. Screen Shot 2021-11-26 at 02 20 03

Taka1313 avatar Nov 26 '21 10:11 Taka1313

Hey, to solve this you can just copy that text into notepad or another text editor and just save as secrets.py

how do you save as secrets.py? where do you save it?

ThomazPires avatar Jan 30 '22 16:01 ThomazPires

I am following this tutorial on Youtube and there isn't any link to download the secrets.py file that was mentioned in the video. I understand that secrets.py is for storing API keys from IEX, but the video does not show how to go about getting those keys. The concept is understandable, go on IEX, create a sandbox, get your API keys and save them in a secrets.py file. However, to follow a YouTube tutorial, the concept wouldn't work because you may end up with the wrong outcome. Please HELP

ibuchix avatar Feb 08 '22 16:02 ibuchix

When I click on download the file, a new tab opens with only one line written in it: IEX_CLOUD_API_TOKEN = 'Tpk_059b97af715d417d9f49f50b51b1c448' What should I do?

What you need to do is copy the entire line i.e. " IEX_CLOUD_API_TOKEN = 'Tpk_059b97af715d417d9f49f50b51b1c448' " Open notepad -> paste it and save it as " sec.py " (Note that .py is a python extension. Don't save it as sec.py.txt)

Then change this line from secrets import IEX_CLOUD_API_TOKEN to from sec import IEX_CLOUD_API_TOKEN

Note that we can't use the secrets name because it already exists in python as something else.

whightspace avatar Apr 25 '22 12:04 whightspace

When I click on download the file, a new tab opens with only one line written in it: IEX_CLOUD_API_TOKEN = 'Tpk_059b97af715d417d9f49f50b51b1c448' What should I do?

What you need to do is copy the entire line i.e. " IEX_CLOUD_API_TOKEN = 'Tpk_059b97af715d417d9f49f50b51b1c448' " Open notepad -> paste it and save it as " sec.py " (Note that .py is a python extension. Don't save it as sec.py.txt)

Then change this line from secrets import IEX_CLOUD_API_TOKEN to from sec import IEX_CLOUD_API_TOKEN

Note that we can't use the secrets name because it already exists in python as something else.

this worked like a charm, thank you!

AbhishekG-1plus avatar Oct 19 '22 22:10 AbhishekG-1plus