OSError: 'NAUTILUS_PATH' environment variable is not set. #2168
Unanswered
Endura2024
asked this question in
Q&A
Replies: 2 comments
-
create a .env file in your root folder and add |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can also pass a path as argument to catalog, no need to have only one catalog. A catalog is basically just a folder, it was confusing to me initially. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I had to install nautilus_trader from source by following steps outlined in https://nautilustrader.io/docs/latest/getting_started/installation#from-source as I have an old Mac with Intel chip. After installing, I did a quicktest by following instruction on https://nautilustrader.io/docs/latest/getting_started/quickstart using a local installed jupyterlab, but got following error:
OSError Traceback (most recent call last)
Cell In[4], line 11
9 from nautilus_trader.model import QuoteTick
10 from nautilus_trader.persistence.catalog import ParquetDataCatalog
---> 11 catalog = ParquetDataCatalog.from_env()
12 catalog.instruments()
File ~/tmp/nautilus_trader/nautilus_trader/persistence/catalog/parquet.py:185, in ParquetDataCatalog.from_env(cls)
170 """
171 Create a data catalog instance by accessing the 'NAUTILUS_PATH' environment
172 variable.
(...)
182
183 """
184 if _NAUTILUS_PATH not in os.environ:
--> 185 raise OSError(f"'{_NAUTILUS_PATH}' environment variable is not set.")
186 return cls.from_uri(os.environ[_NAUTILUS_PATH] + "/catalog")
OSError: 'NAUTILUS_PATH' environment variable is not set.
Did I miss any additional setup required after installing from source?
Beta Was this translation helpful? Give feedback.
All reactions