question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python 3.7 does not appear to be supported anymore

See original GitHub issue

Hi! My env file looks like this:

name: my-env
channels:
  - conda-forge
  - defaults
dependencies:
  - python<3.8
  - networkit==6.1.0
...

However, the setup-miniconda logs report that Python 3.8.5 is being added to the env file, which then predictably fails

2021-03-29T16:03:37.0343949Z Making patched copy of 'environment-file: my-service/env.yml'
2021-03-29T16:03:37.0344996Z name: my-env
2021-03-29T16:03:37.0345729Z channels:
2021-03-29T16:03:37.0346613Z   - defaults
2021-03-29T16:03:37.0347511Z   - conda-forge
2021-03-29T16:03:37.0348311Z dependencies:
2021-03-29T16:03:37.0349231Z   - python<3.8
2021-03-29T16:03:37.0350128Z   - networkit==6.1.0
...
2021-03-29T16:03:37.0370060Z   - python=3.8.5
2021-03-29T16:03:37.0370462Z 
2021-03-29T16:03:37.0371612Z ##[group]Updating 'my-env' env from conda env update...
2021-03-29T16:03:37.0373261Z [command]/usr/share/miniconda/condabin/conda env update --name my-env --file /tmp/environment-patched.yml
2021-03-29T16:04:09.3426732Z Collecting package metadata (repodata.json): ...working... done
2021-03-29T16:04:09.3822645Z Solving environment: ...working... failed
2021-03-29T16:04:09.3833700Z ##[warning]
ResolvePackageNotFound: 
  - python[version='3.8.5.*,<3.8']

Is this related to the new update? It has not failed in the past. I tried pinning setup-miniconda@2.0.0 but had the same error result. Ideally, I’d like to be able to specify the Python version in my env.yml file.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bollwyvlcommented, Mar 29, 2021

Lacking more precise information…

v2.1 tries to reduce the number of successive re-solves of the environment, for performance reasons.

If you specify use: python-version:, it will always override whatever it finds in environment.yml, as it now actually creates a patched version of the file and conda env updates that in one shot.

Note that #160 (which did provide enough information to debug the issue) points out that we’re messing up the channel ordering, because javascript, but we’ll get that sorted this evening.

In the near term (e.g. next 24 hours), try removing python-version, and provided you are not bit by the channel ordering bug, you should see the expected behavior.

0reactions
sam-hoffmancommented, Mar 30, 2021

Thank you @bollwyvl ! You are correct, removing python-version from the actions specification fixed the problem. This issue can be closed 😃 Thank you so much for all your hard work, all of you

Read more comments on GitHub >

github_iconTop Results From Across the Web

It's time to stop using Python 3.7
Python 3.7 will stop getting security updates in June 2023. Given the existence of 3.8, 3.9, 3.10, and 3.11, you really should upgrade....
Read more >
Status of Python Versions - Python Developer's Guide
Supported Versions#. Dates shown in italic are scheduled and can be adjusted. Branch.
Read more >
Community support for Python 3.7 is ending on 27 June 2023
Because Python 3.7 extended support on Linux will end on 27 June 2023, any applications hosted on Azure App Service that are still...
Read more >
Out-of-the-box support on Python 3.7 or above for snappy after ...
Hello, I have realised that Python 3.6 reached is End of Life support on Dec 21 ( Python | endoflife.date). Is there any...
Read more >
when will keras support python 3.7 · Issue #11690 - GitHub
keras is compatible with 3.7 as far as I know. It's just that we don't test against 3.7 yet. You can try and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found