nautechsystems / nautilus_trader

A high-performance algorithmic trading platform and event-driven backtester
https://nautilustrader.io
GNU Lesser General Public License v3.0
1.7k stars 398 forks source link

make install-debug is not working #1715

Closed faysou closed 2 weeks ago

faysou commented 2 weeks ago

Bug Report

Expected Behavior

should compile without problem

Actual Behavior

I get the following error

make install-debug BUILD_MODE=debug poetry install --with dev,test --all-extras --sync Installing dependencies from lock file Path /private/var/folders/k1/30mswbxs7r1g6zwn8y4fyt500000gp/T/abs_a17a7759g2/croot/anyio_1706220182417/work for anyio does not exist

Path /private/var/folders/k1/30mswbxs7r1g6zwn8y4fyt500000gp/T/abs_a17a7759g2/croot/anyio_1706220182417/work for anyio does not exist make: *** [install-debug] Error 1

Steps to Reproduce the Problem

  1. run make install-debug

Specifications

cjdsellers commented 2 weeks ago

Hi @faysou

My first impression is this is a local issue, since anyio is not a required dependency and this command is working locally for me and in CI.

Also note that --sync is going to uninstall any package which is not a dependency specified in the pyproject.toml (this is done to make sure we have a clean environment when developing - which tends to be when this command is used).

Did you modify the source code at all? I would recommend you try a new poetry environment and also clear it's package cache.

Hope that helps!

faysou commented 2 weeks ago

Thank you for your reply @cjdsellers I managed to install the debug version when not using --sync. The problem was likely that other packages are installed in the environment and that dependencies can't be uninstalled without problems.