Replies: 1 comment
-
I'm not very good at diagnosing installation issues, but this is clearly wrong; for me it says ==1.61.0 when I reinstall; hence you are basically running an out of date version which is why the example code fails. You could check your local files against what is shown on git hub for a very recently committed file to see if they match. If they dont, then your git clone is at fault. If they do, then something weird is going on with your install. As a linux user I might sometimes have to delete Converting to discussion as not a bug. |
Beta Was this translation helpful? Give feedback.
-
see this page:
https://github.com/robcarver17/pysystemtrade/blob/master/docs/introduction.md
See the following text / code:
**Not all the instruments are easily identifiable
data.get_instrument_object_with_meta_data("MUMMY")
futuresInstrumentWithMetaData(instrument=MUMMY, meta_data=instrumentMetaData(Description='TSE Mothers Index', Pointsize=1000.0, Currency='JPY', AssetClass='Equity', Slippage=0.5, PerBlock=50.0, Percentage=0.0, PerTrade=0.0))**
When I try to run data.get_instrument_object_with_meta_data("MUMMY") I get the following error:
AttributeError: 'csvFuturesSimData' object has no attribute 'get_instrument_object_with_meta_data'
At first I assumed pysystemtrade has been updated since I initially installed it (I believe I am running 1.12.0 and have been for the last year or so). I had a go at reinstalling pysystemtrade just now (running !git clone, followed by python setup.py install - but it culminates in the statement "finish processing dependencies for pysyttemtrade==1.12.0... which leads me to believe the version is no different).
Anyway, I am still suffering the AttributeError I mentioned above.
Apologies if I am being very thick here... any ideas?
Beta Was this translation helpful? Give feedback.
All reactions