Giter Site home page Giter Site logo

Comments (3)

warner-benjamin avatar warner-benjamin commented on May 17, 2024

The latest release of PyTorch doesn't support Python 3.12, so fastai currently does not support it either.

Could you provide more details about the error? I am unable to replicate it on a new Python 3.11 environment. The fastai CI tests Python 3.8-3.10 and this error crop up either.

from fastai.

steve-estes avatar steve-estes commented on May 17, 2024

The issue is the requirements peg to cymem==2.0.2. I get the exact same as rupert above:

ERROR: Some build dependencies for cymem==2.0.2 from https://files.pythonhosted.org/packages/8b/dc/0976e04cc46f86e0dd3ee3797ec68057eaafebf31daca9a076dc138b9920/cymem-2.0.2.tar.gz (from fastai) conflict with the backend dependencies: wheel==0.42.0 is incompatible with wheel>=0.32.0,<0.33.0.

If we want to use fastai for some of its utils, even without PyTorch (e.g. we're fans of df_shrink), this prevents us from doing so on Python 3.12. A simple fix would be to remove the version peg, instead just say cymem>=2.0.2. cymem has (as of last Sept) released a version which fixes the wheel compatibility issue, all you need to do is allow people to use it.

Also, PyTorch supports Python 3.12 in its RC from a month ago (see: pytorch/pytorch#110436 ), so we can expect a stable release that supports it shortly. So testing fastai on 3.12, including for issues like this, is probably going to be an increasing priority - e.g. Homebrew now ships 3.12 by default on Mac, etc.

from fastai.

warner-benjamin avatar warner-benjamin commented on May 17, 2024

@steve-estes fastai doesn't directly require cymem, so it must be from an upstream requirement. You can see fastai's requirements here. If you could figure out which package is pinning to cymem-2.0.2, we can raise the issue with the maintainers or look into a workaround.

from fastai.

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.