Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
christophe-david opened this issue Mar 18, 2022 · 3 comments
Closed

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

christophe-david opened this issue Mar 18, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@christophe-david
Copy link
Contributor

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 christophe-david added the bug Something isn't working label Mar 18, 2022
@christophe-david
Copy link
Contributor Author

christophe-david commented Mar 18, 2022

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
Copy link
Contributor Author

christophe-david commented Mar 18, 2022

Detailed version:
FAST-OAD 1.3 separates the core software and the CS25-related models into FAST-OAD-core and FAST-OAD-CS25.
The fastoad command 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:

  • Uninstalling first FAST-OAD before reinstalling its last version
  • After having done the upgrade, uninstalling and reinstalling FAST-OAD-core

@christophe-david
Copy link
Contributor Author

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

@christophe-david christophe-david closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant