I can't login with the quickstart? #324
-
I changed the config file just like the Quickstart teaches from trading_ig.rest import IGService Yet it says Exception: Environment variable 'IG_SERVICE_USERNAME' doesn't exist Why is this so?? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Ty your login data here: https://labs.ig.com/sample-apps/api-companion/index.html Are you using a DEMA account? If so, please note the comments. |
Beta Was this translation helpful? Give feedback.
-
for documentation sake Then I encountered the error no module named Crypto, I uninstall crypto then reinstalled pycryptodome to no avail. |
Beta Was this translation helpful? Give feedback.
for documentation sake
I solved the thing.
The trading_ig_config.py had to be put under the python directory?? or the directory of .py I am running with.(I dunno which one) In my case the /Users/username.
Then I encountered the error no module named Crypto, I uninstall crypto then reinstalled pycryptodome to no avail.
Then I manually changed the folder under Lib/site-packages from 'crypto' to 'Crypto' manually and all good