esa / pykep

PyKEP is a scientific library providing basic tools for research in interplanetary trajectory design.
http://esa.github.io/pykep/
GNU General Public License v3.0
341 stars 96 forks source link

Problems installing #151

Open jhaiduce opened 3 years ago

jhaiduce commented 3 years ago

It looks like pykep is unavailable for install through pip and the anaconda package has broken dependencies.

Pip:

$ venv/bin/pip install pykep
ERROR: Could not find a version that satisfies the requirement pykep (from versions: none)
ERROR: No matching distribution found for pykep

Anaconda (using a newly created conda environment):

$ conda config --add channels conda-forge
$ conda config --set channel_priority strict
$ conda install pykep
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: | 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.

...several hours later:

Examining conflict for matplotlib-base pykep pandas seaborn pyerfa h5py bokeh\ ^failed                                                                          

CondaError: KeyboardInterrupt

^C

My system is running Fedora 34 and has Python 3.9.5 installed.

albertoibm commented 3 years ago

@jhaiduce Did you try creating a new clean environment in conda? I have had problems with some packages (I think it was matplotlib but I'm not quite sure) with Python 3.9, you can create a new environment with Python 3.8 maybe?

JJavierRosales commented 2 years ago

I have also problems installing pykep library

$ conda config --add channels conda-forge
$ conda config --set channel_priority strict
$ conda install pykep
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - pykep

Current channels:

  - https://conda.anaconda.org/conda-forge/osx-arm64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/osx-arm64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-arm64
  - https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

Did you manage to solve this issue? I am running Python 3.8.13 on a new Conda environment.

darioizzo commented 2 years ago

what architecture is your machine? I cannot reproduce this problem.

JJavierRosales commented 2 years ago

I am using ARM architecture (Apple silicon M1 Pro)

darioizzo commented 2 years ago

Than that is probably the reason ... not sure what happens with the M1 but it has issues with conda. Can you try to set the channel priority to false and try again?

JJavierRosales commented 2 years ago

Thanks @darioizzo for your suggestion, unfortunately it does not work either...

I raised this issue in the library where I originally found it (kesslerlib/kessler) and some contributors managed to get it working on M1 (issue)... Do you have any other suggestion I could try?

bluescarni commented 2 years ago

The conda recipe of pykep needs to be explicitly updated to enable support for ARM OSX, it is not an automatic process.

If I recall correctly, one has first to open a PR to conda-forge to add pykep to the list of ARM OSX packages. See here for an example:

https://github.com/conda-forge/conda-forge-pinning-feedstock/pull/2708

Then a PR to the pykep feedstock will be opened automatically by a bot.

JJavierRosales commented 2 years ago

Thanks @bluescarni ! The PR that I did yesterday to conda-forge to include pykep on the osx-arm64.txt list has been successfully merged to the main branch.

Do you know what could be the lead-time for the PR to the pykep feedstock to be approved?

bluescarni commented 2 years ago

The PR to the pykep feedstock is open here:

https://github.com/conda-forge/pykep-feedstock/pull/27

There seems to be an issue with the recipe, I think the problem is that make is not listed among the build time dependencies on unix. I cannot fix this directly though as I am not a maintainer of the recipe, guess we have to ping @darioizzo

bluescarni commented 2 years ago

@JJavierRosales the packages for osx arm64 should now be available.

JJavierRosales commented 2 years ago

@bluescarni That worked ! Thank you very much for your support.

starkgate commented 2 years ago

Same issue trying to install pykep with Python 3.11 on Windows 11 x64:

ERROR: Could not find a version that satisfies the requirement pykep (from versions: none)
ERROR: No matching distribution found for pykep
DaedalusAerospaceOfficial commented 1 year ago

failed to install with conda `C:\Users\Administrator>conda config --add channels conda-forge Warning: 'conda-forge' already in 'channels' list, moving to the top

C:\Users\Administrator>conda config --set channel_priority strict

C:\Users\Administrator>conda install pykep Collecting package metadata (current_repodata.json): - DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 \ DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 | DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443 / DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443