fast-aircraft-design / FAST-OAD

FAST-OAD: An open source framework for rapid Overall Aircraft Design
GNU General Public License v3.0
47 stars 25 forks source link

Command line not found after upgrade to FAST-OAD 1.3 #425

Closed christophe-david closed 1 year ago

christophe-david commented 2 years ago

Describe the bug When upgrading from FAST-OAD 1.2.1 (or below) to 1.3.0 (or above), the fastoad (and its alias fast-oad) command is no more available.

To Reproduce In bash, in a new environment:

$ pip install fast-oad==1.2.1
[...]
Successfully installed fast-oad-1.2.1

$ fastoad -v
FAST-OAD 1.2.1
$ pip install -U fast-oad
[...]
Successfully installed fast-oad-1.3.0.post0 fast-oad-core-1.3.0 fast-oad-cs25-0.1.1

$ fastoad -v
bash: fastoad: command not found
christophe-david commented 2 years ago

TL;DR: Sorry for the inconvenience. Simply uninstall/reinstall FAST-OAD-core:

$ pip uninstall fast-oad-core
[...]
  Successfully uninstalled fast-oad-core-1.3.0
$ pip install fast-oad-core
[...]
Successfully installed fast-oad-core-1.3.0
$ fastoad -v
fastoad, version 1.3.0.post0
christophe-david commented 2 years ago

Detailed version: FAST-OAD 1.3 separates the core software and the CS25-related models into FAST-OAD-core and FAST-OAD-CS25. The fastoadcommand line is now provided by FAST-OAD-core

In a attempt to keep compatibility for users of FAST-OAD, the FAST-OAD package has become an "empty shell" and its installation simply triggers the installation of FAST-OAD-core and FAST-OAD-CS25.

The problem is that when doing the upgrade, pip has to remove the CLI provided by FAST-OAD 1.2.1 and to create the CLI provided by FAST-OAD-core... and it is not done in the order I would have expected.

Thererefore, to do the upgrade, one has 2 solutions:

christophe-david commented 1 year ago

We are far past this version, now. This should not be an issue any longer.