Comments (3)
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.
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.
@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)
- DataLoader's function create_item fails when the dataset is Pandas Dataframe
- setting emb_szs colab_learner is ignored causing function call to exit in error
- get_preds gives me non-deterministic results when using dls.train
- Unable to install fastbook when running Jupyter locally
- Found a possible security concern
- '_FakeLoader' object has no attribute 'pin_memory_device'
- Unable to deploy on Sagemaker
- Cannot scroll on image cleaner HOT 1
- get_image_files providing error message
- get_y should be changed to 'category' from 'label'
- AssertionError when trying to predict image data with FastAI HOT 2
- Training multiple FasiAI models and validating using dataframe dataloader(): HOT 1
- can find the rename_extracted funtion HOT 1
- Unable to process Multi-GPU Training
- Want to ask why I use DataBlock to do NLP task,I have many "xxboxs xxunk" in my data? HOT 1
- Issue with setting the number of workers
- Documentation on which is the actual label vs predicted in learn.show_results() is missing HOT 2
- how to use in google colab?sorry I don't find the entrance,I am a new learner
- Fastai version 2.7.14 produces "AttributeError: device" when running .predict HOT 1
- Notebook_launcher: Importing libraries initializes CUDA
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastai.