Code Monkey home page Code Monkey logo

Comments (3)

apeschel avatar apeschel commented on June 25, 2024

I think just having the image ignore the python-version file would be fine. Can pyenv be stripped from the image?

from cimg-python.

devkapilbansal avatar devkapilbansal commented on June 25, 2024

@apeschel I want to look into this but as a beginner, I am not able to understand how to reproduce the bug. It would be great if you can help me with this

from cimg-python.

dsayling avatar dsayling commented on June 25, 2024

@apeschel - I think following the existing issues you've opened, I don't think the pyenv is the issue. We're using pyenv to support the same paths and install locations of python across all the versions the convenience image supports. If your project only supports 3.8.5, then you should use the 3.8.5 image. In tools like pipenv, your Pipfile can "lock" you to a specific python version that would stop the build from happening

circleci@55c305602d8b:~/project$ python --version
Python 3.8.5
circleci@55c305602d8b:~/project$ cat Pipfile | grep _version
python_version = "3.8.6"
circleci@55c305602d8b:~/project$ pipenv install
Warning: Python 3.8.6 was not found on your system…

Also, if using just a setup.py you can specify a python version in your setup.py to make it more explicit

circleci@55c305602d8b:~$ cat setup.py 
from setuptools import setup
setup(
    # Your setup arguments
    python_requires='==3.8.6',  # Your supported Python ranges
)
circleci@55c305602d8b:~$ pip install -e .
Obtaining file:///home/circleci
ERROR: Package 'UNKNOWN' requires a different Python: 3.8.5 not in '==3.8.6'

I believe the broken behavior you're seeing in changing python versions is from the cache restore. I opened this CircleCI-Public/python-orb#51 to address this. And included a few workarounds.

Thanks again for providing feedback on the initial release of the image and orb. Your input is extremely valuable.

from cimg-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.