You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed PST on another computer without realizing that python 3.12 wasn't supported. I soon encountered the following error:
Private configuration private/private_config.yaml does not exist; no problem if running in sim mode
2024-04-30 01:15:19 DEBUG config {'type': 'config', 'stage': 'config'} Adding config defaults
output /home/tim/pysystemtrade/syscontrol/__init__.py
directory_name_of_package /home/tim/pysystemtrade/syscontrol
output None
NO FILE FOR {package_name} perhaps add an __init__.py to the package
Private configuration private/private_control_config.yaml does not exist; no problem if running in sim mode
Traceback (most recent call last):
File "/home/tim/pysystemtrade/private/chapman/./generate_orders.py", line 31, in <module>
system_backtest_runner = strategyRunner(
^^^^^^^^^^^^^^^
File "/home/tim/pysystemtrade/syscontrol/strategy_tools.py", line 18, in __init__
self._strategy_method = get_strategy_method(
^^^^^^^^^^^^^^^^^^^^
File "/home/tim/pysystemtrade/syscontrol/strategy_tools.py", line 47, in get_strategy_method
strategy_class_instance = get_strategy_class_instance(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tim/pysystemtrade/syscontrol/strategy_tools.py", line 58, in get_strategy_class_instance
strategy_class_object, other_args = get_class_object_and_other_arguments(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tim/pysystemtrade/syscontrol/strategy_tools.py", line 81, in get_class_object_and_other_arguments
strategy_class_object = resolve_function(config_this_process.pop("object"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'object'
As the error message implies, a __init__.py file needs to be added in the private directory. In this file I simply put the word "pass".
Everything else seems to be working. I don't think this will break earlier versions and should probably be added to the repository.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I installed PST on another computer without realizing that python 3.12 wasn't supported. I soon encountered the following error:
As the error message implies, a
__init__.py
file needs to be added in the private directory. In this file I simply put the word "pass".Everything else seems to be working. I don't think this will break earlier versions and should probably be added to the repository.
Hope this helps someone.
Beta Was this translation helpful? Give feedback.
All reactions