Missing file, unable to run
Onepamopa opened this issue · 7 comments
Actually, the whole folder "templates" is missing.
Traceback (most recent call last):
File "main.py", line 494, in
start_test()
File "main.py", line 470, in start_test
cerebro.plot(p)
File "/home/user/PycharmProjects/backtrader/venv/lib/python3.8/site-packages/backtrader/cerebro.py", line 989, in plot
rfig = plotter.plot(strat, figid=si * 100,
File "/home/user/PycharmProjects/backtrader/venv/lib/python3.8/site-packages/btplotting-0.1.0-py3.8.egg/btplotting/app.py", line 563, in plot
self.create_figurepage(
File "/home/user/PycharmProjects/backtrader/venv/lib/python3.8/site-packages/btplotting-0.1.0-py3.8.egg/btplotting/app.py", line 319, in create_figurepage
self._blueprint_strategy(figid, filter)
File "/home/user/PycharmProjects/backtrader/venv/lib/python3.8/site-packages/btplotting-0.1.0-py3.8.egg/btplotting/app.py", line 203, in _blueprint_strategy
figure = Figure(
File "/home/user/PycharmProjects/backtrader/venv/lib/python3.8/site-packages/btplotting-0.1.0-py3.8.egg/btplotting/figure.py", line 245, in init
self._init_figure()
File "/home/user/PycharmProjects/backtrader/venv/lib/python3.8/site-packages/btplotting-0.1.0-py3.8.egg/btplotting/figure.py", line 335, in _init_figure
formatter_code = pkgutil.get_data(
File "/usr/lib/python3.8/pkgutil.py", line 637, in get_data
return loader.get_data(resource_name)
File "", line 972, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/PycharmProjects/backtrader/venv/lib/python3.8/site-packages/btplotting-0.1.0-py3.8.egg/btplotting/templates/js/tick_formatter.js'
should be fixed, please close if it works.
Still getting the exact same error
i see, will need to test it out with python 3.8
$ ls /home/user/PycharmProjects/backtrader/venv/lib/python3.8/site-packages/btplotting-0.1.0-py3.8.egg/btplotting/templates/js/
init.py pycache
Looks like the js files aren't being copied to the dst folder on install
for now, just download the repository and copy the btplotting folder into your project dir. it seems, its because of the installation script.
Yeah, already did that - no errors (so far).
should work now :)