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

BUG: conda install requirement of apstools>=1.5.3 fails on Windows - pip successful #568

Closed
prjemian opened this issue Nov 6, 2021 · 11 comments
Labels
Milestone

Comments

@prjemian
Copy link
Contributor

prjemian commented Nov 6, 2021

Discovered that with a conda install requirement of apstools>=1.5.3, conda was not able to resolve all dependencies for Windows. (Found this by selective removal of packages from environment until successful install.) Was able to install latest apstools via pip.

Originally posted by @prjemian in BCDA-APS/use_bluesky#111 (comment)

@prjemian prjemian added this to the 1.6.0 milestone Nov 6, 2021
@prjemian prjemian modified the milestones: 1.6.0, 1.5.4 Nov 6, 2021
@prjemian prjemian added the bug label Nov 6, 2021
@gfabbris
Copy link
Collaborator

gfabbris commented Nov 6, 2021

Is it because of aps-dm-api? #561

@prjemian
Copy link
Contributor Author

prjemian commented Nov 6, 2021

That is a distinct possibility, which would push this to the 1.6.0 since it would mean a breaking change.

@prjemian
Copy link
Contributor Author

prjemian commented Nov 8, 2021

[9:08 AM] Rodolakis, Fanny M.
I install the mac version on my mac and that worked (I have apstools 1.5.3);

@rodolakis: Thanks!

@gfabbris
Copy link
Collaborator

gfabbris commented Nov 8, 2021

@rodolakis: what is your python version? The 1.5.3 does install in my Mac, but only if python <= 3.7. Even if I install it in an environment with a newer version, conda will downgrade it to 3.7.

@rodolakis
Copy link
Collaborator

I'm all good, I was just not running what I thought (too many aliases, config etc...)

@prjemian
Copy link
Contributor Author

See if the 1.5.4 release fixes this. Pushing to the next milestone after the 1.5.4 release.

@prjemian prjemian modified the milestones: 1.5.4, 1.6.0 Nov 19, 2021
@prjemian
Copy link
Contributor Author

prjemian commented Nov 26, 2021

Released 1.5.4 yesterday. Try again in Anaconda Powershell prompt:

conda create -n test "apstools>=1.5.3" -c defaults -c conda-forge -c aps-anl-tag

Still a problem:

(base) PS C:\Users\Pete>  conda create -n test "apstools>=1.5.3" -c defaults -c conda-forge -c aps-anl-tag
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.-
failed

UnsatisfiableError:

@prjemian
Copy link
Contributor Author

Pin the python version, still fails:

(base) PS C:\Users\Pete>  conda create -n test "apstools>=1.5.3" "python>=3.7,<3.8"  -c defaults -c conda-forge -c aps-anl-tag
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: |
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
Examining apstools[version='>=1.5.3']:  75%|█████████████████████████████████████████████████████████                   | 3/4 [00:00<00:00,  3.11it/s]/failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package python conflicts for:
apstools[version='>=1.5.3'] -> python[version='>=3.7|>=3.7,<3.8']
python[version='>=3.7,<3.8']
apstools[version='>=1.5.3'] -> bluesky[version='>=1.6.7'] -> python[version='2.7.*|3.5.*|3.6.*|>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.6|>=3.7,<3.8.0a0|>=3.8,<3.9.0a0|>=3.9,<3.10.0a0|>=3.5,<3.6.0a0|>=3.10,<3.11.0a0|3.4.*']

@prjemian
Copy link
Contributor Author

To test, a tag is necessary: 1.6.0rc#

@prjemian
Copy link
Contributor Author

prjemian commented Nov 28, 2021

Tagged 1.6.0rc3 to test in windows. Once that publishes to anaconda.org, then test with:

conda create -n test "apstools=1.6.0rc3" -c defaults -c conda-forge -c aps-anl-tag

@prjemian
Copy link
Contributor Author

This worked but apstools>=1.6 failed. Probably because only release candidates are available.

conda create -n test "apstools>1.5.4" --force -y -c defaults -c conda-forge -c aps-anl-tag

This worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants