-
Notifications
You must be signed in to change notification settings - Fork 74k
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
AttributeError: cython_sources when installing tflite-model-maker #61337
Comments
facing this on macOS too. Any solutions for this? |
@ljmerza There are a few dependencies like numpy that need a specific version installation. Did you try to upgrade the numpy version by using |
This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. |
@sushreebarsa I tried your fix and I'm still running into same error |
There is a known issue of tflite model maker installation if you are using python >=3.10. Please use Python 3.9 or Mediapipe Model Maker as a workaround. Thanks. |
This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. |
Also mediapipe-model-maker is broken. On windows I get this error during setup when it starts to get PyYAML dependency
|
Hi @ljmerza, I was able to install if I downgraded Python to 3.9.17, can you try that out to see if you are able to continue that way? If you are using conda you can do so like this: conda create -n your_env_name python=3.9
conda activate your_env_name
pip install -q tflite-model-maker |
Downgraded from 3.10.9 to Python 3.9.6. % python3 --version |
This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. |
This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. |
Problem is still here unsolved. This automatic issue close should be disabled or set to a reasonable amount of time. |
Hi @lu-wang-g, assigning this to you to consolidate tflite-model-maker issues. Thanks. |
I got the same issue and was able to fix by using this hack: echo "Cython<3" > cython_constraint.txt
$ PIP_CONSTRAINT=cython_constraint.txt pip install "tflite-model-maker" |
I was able to solve that dependency issue by installing
Until the next dependency conflict... |
What ended up working for me was a combination of @bduyng and @vpmalley's solutions. This is what I did, in order
|
Issue type
Build/Install
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
binary
TensorFlow version
v2.13.0-rc2-7-g1cb1a030a62 2.13.0
Custom code
Yes
OS platform and distribution
ubuntu 20
Mobile device
No response
Python version
3.10.6
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
when trying to install
tflite-model-maker
i get an error:Standalone code to reproduce the issue
run `pip install -q tflite-model-maker`
Relevant log output
No response
The text was updated successfully, but these errors were encountered: