tensorflow: tflite Model Maker installation Error metadata-generation-failed, No such file or directory: '..\\VERSION'
Click to expand!
Issue Type
Build/Install
Have you reproduced the bug with TF nightly?
Yes
Source
source
Tensorflow Version
2.11.0
Custom Code
No
OS Platform and Distribution
Windows 11
Mobile device
No response
Python version
3.10.4
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
Hello everyone, I hope you can help me with the following problem
I have checked the requirements several times but always get the same error:
pip install tflite-model-maker results in FileNotFoundError: [Errno 2] No such file or directory: '..\\VERSION'
Clone source code from GitHub and install results in TypeError: 'WindowsPath' object is not subscriptable
Standalone code to reproduce the issue
pip install tflite-model-maker
Relevant log output
Using cached sentencepiece-0.1.83.tar.gz (497 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\1\AppData\Local\Temp\pip-install-uny2d85u\sentencepiece_d8babf4dcc3a48be9b4874119d6463fb\setup.py", line 29, in <module>
with codecs.open(os.path.join('..', 'VERSION'), 'r', 'utf-8') as f:
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\codecs.py", line 905, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '..\\VERSION'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
-------------------------------------------------------------------------
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\1\Desktop\Dev\tflite_model_maker\examples\tensorflow_examples\lite\model_maker\pip_package\setup.py", line 122, in <module>
INTERNAL_NAME).run()
File "C:\Users\1\Desktop\Dev\tflite_model_maker\examples\tensorflow_examples\lite\model_maker\pip_package\setup_util.py", line 163, in run
namespace_packages = find_namespace_packages(where=self.build_dir)
File "C:\Users\1\Desktop\Dev\tflite_model_maker\tfliteMM-venv\lib\site-packages\setuptools\__init__.py", line 64, in find
convert_path(where),
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\distutils\util.py", line 123, in convert_path
if pathname[0] == '/':
TypeError: 'WindowsPath' object is not subscriptable
[end of output]
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 17 (1 by maintainers)
still aint working ffs
yess… still not working today (2023-08-08) in google collab
There’s something wrong. It doesn’t even install in collab