OSError: 'NAUTILUS_PATH' environment variable is not set. #1721
-
Hello, import datetime
import os
import shutil
from decimal import Decimal
import fsspec
import pandas as pd
from nautilus_trader.backtest.node import BacktestNode
from nautilus_trader.backtest.node import BacktestVenueConfig
from nautilus_trader.backtest.node import BacktestDataConfig
from nautilus_trader.backtest.node import BacktestRunConfig
from nautilus_trader.backtest.node import BacktestEngineConfig
from nautilus_trader.config import ImportableStrategyConfig
from nautilus_trader.config import LoggingConfig
from nautilus_trader.core.datetime import dt_to_unix_nanos
from nautilus_trader.model.data import QuoteTick
from nautilus_trader.model.objects import Price, Quantity
from nautilus_trader.persistence.catalog import ParquetDataCatalog
from nautilus_trader.test_kit.providers import TestInstrumentProvider
from nautilus_trader.persistence.catalog import ParquetDataCatalog
# You can also use a relative path such as `ParquetDataCatalog("./catalog")`,
# for example if you're running this notebook after the data setup from the docs.
# catalog = ParquetDataCatalog("./catalog")
catalog = ParquetDataCatalog.from_env()
catalog.instruments() but an error occurred: Traceback (most recent call last): Can anyone help me to avoide this error? I use Linux Debian 11, Python 3.12.4 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @evgrmn You have two options here:
Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Thank you. It works. |
Beta Was this translation helpful? Give feedback.
Hi @evgrmn
You have two options here:
NAUTILUS_PATH
environment variable to a path you're happy with to write data for the catalogParquetDataCatalog("./catalog")
Hope that helps!