https://dagster.io/ logo
#announcements
Title
# announcements
x

Xu Zhang

11/17/2020, 8:09 AM
resolved the issue above using the following code before initializing the Dagster instance:
Copy code
CURRENT_PATH = ":".join([p.strip() for p in sys.path if p])

EXECUTABLE_PATH = check_output([sys.executable, '-c', 'import sys; print(":".join([p.strip() for p in sys.path if p]))']).decode().strip()

os.putenv('PYTHONPATH', ':'.join([CURRENT_PATH, EXECUTABLE_PATH]))