-
Notifications
You must be signed in to change notification settings - Fork 811
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
Cannot fetch required TF version 2.15.0.post1 for building TensorFlow Lite Micro example hello_world: #2499
Comments
I have the same issue here on my Mac. It looks like we are falling between an emerging dependency nightmare that has just surfaced recently. All the Shawn Hymell arduino examples on his blog also seem to be broken. I followed the install instructions for bazel and it upgraded my python to 3.12, and none of the pip dependency resolution in the tflite hello world worked, failing due to deleted setuptools methods between 3.11 and 3.12. I manually moved my brew link to 3.11.8 and it solved that issue, but now I have exactly the same issue as above, where the hello world bazel build will not find a matching distribution for tensorflow. |
Mac OSX: |
If I change between Python 3.12, 3.11 and 3.10 I get different behaviour. Python 3.12 complains about a missing method inside setuptools, Python 3.11 and earlier complain about no suitable candidate. On Ubuntu I get a different issue, the wheel for numpy is unavailable and it tries to compile from C, and it complains about <Python.h> missing. |
Hi, Does it help running: |
same issue |
Well, that gets over that specific problem (thanks for that!), and it spends some time downloading dependencies and building lots of cpp code. But then the build fails (small extract below...) - I suspect this might be some python runtime version issue, as a new version of Python has recently broken lots of other projects of mine, and I am repeatedly switching between different python distributions. I will try a few different versions of Python and see if any other version works.
|
I have tried the suggestion from @mansnils However, I still fails, albeit with different issues, referring to the arm64 architecture. Small extract below:
... |
I have not seen the issues reported in the last two comments. Don't know if it matters but I am using python 3.10. |
"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days." |
"This issue is being closed because it has been marked as |
I've been trying to put together a project for over 3 days now... There is a file in a separate Tensorflow micro repository https://github.com/tensorflow/tflite-micro/blob/main/third_party/python_requirements.txt where version 2.15.0.post1 is specified, but it does not exist either in the main repository or in micro, in order to remove this problem, I installed pip-compile and used it to rebuild this file, the correct hash and version 2.15.0 were added, the project began to assemble further, but already went other mistakes... But that's another story. |
When attempting to build the TensorFlow Lite Micro example hello_world:evaluate given in
https://github.com/tensorflow/tflite-micro/blob/main/tensorflow/lite/micro/examples/hello_world/README.md#, the build process fails due to an error fetching the required TensorFlow version. The error message (see below) indicates that the specified version 2.15.0.post1 cannot be found in the available distributions.
Platform:
macOS: 13.4.1
Python Platform: macOS-13.4.1-arm64-arm-64bit
Python 3.10.13 (main, Sep 11 2023, 08:16:02) [Clang 14.0.6 ]
Steps to Reproduce:
Execute the command: 'bazel build tensorflow/lite/micro/examples/hello_world:evaluate'
Expected Behavior:
The build process completes successfully, fetching the required TensorFlow version 2.15.0.post1.
The text was updated successfully, but these errors were encountered: