Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when running main.py #4

Closed
Trumantester opened this issue Aug 9, 2023 · 2 comments
Closed

Errors when running main.py #4

Trumantester opened this issue Aug 9, 2023 · 2 comments

Comments

@Trumantester
Copy link

I am getting these errors when running Main.py :
No ThinkOrSwimCacheFileName specified. Found 2 cache files in directory
Found /Applications/thinkorswim/cache.6a4nrrvdrmmwpd9.tda.thinkorswim.com.xml cache file
Found /Applications/thinkorswim/cache.6a4nrrvdrmmwpd9.demo.thinkorswim.com.xml cache file
Using cache file /Applications/thinkorswim/cache.6a4nrrvdrmmwpd9.tda.thinkorswim.com.xml
Found 2 script entries
Downloading DailyExpectedMove at https://raw.githubusercontent.com/BennyKJohnson/TOSExpectedMoveStudies/master/DailyExpectedMoveSTUDY.ts...
Downloading WeeklyExpectedMove at https://raw.githubusercontent.com/BennyKJohnson/TOSExpectedMoveStudies/master/WeeklyExpectedMoveSTUDY.ts...
Updated contents of script {} DailyExpectedMove
Failed to find script with name WeeklyExpectedMove
Successfully updated /Applications/thinkorswim/cache.6a4nrrvdrmmwpd9.tda.thinkorswim.com.xml

Any idea why?
Thanks for any help.

@BennyKJohnson
Copy link
Owner

Hi,

The error means it couldn't locate the script with the name 'WeeklyExpectedMove'. The way the script works is it replaces the contents of existing scripts, it cannot install new scripts.

You need to add a script manually with the name 'WeeklyExpectedMove'. Alternatively you can remove the entry "WeeklyExpectedMove = https://raw.githubusercontent.com/BennyKJohnson/TOSExpectedMoveStudies/master/WeeklyExpectedMoveSTUDY.ts" from the "scripts.ini".

@Trumantester
Copy link
Author

That worked. After going down the rabbit hold of trying to decode the base64 encoded cache file, I tried deleting the daily expected move study and made a new one from scratch and it worked. I thought I had it named right but It must of been some error I made in naming and renaming the studies.
Thank You.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants