pip install yotta --user unable to find pyocd/_version.py - python

I have encountered an error when installing yotta:
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-install-t_jfni1z/pyOCD/
The complete error message goes on and on forever and eventually leads to this:
File "/tmp/pip-install-t_jfni1z/pyOCD/.eggs/setuptools_scm-3.1.0-py3.6.egg/setuptools_scm/__init__.py", line 72, in dump_version
with open(target, "w") as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'pyocd/_version.py'
I have tried to reinstall pyocd, and pip, and python without any success. The error for pip install pyocd --user goes as follows:
FileNotFoundError: [Errno 2] No such file or directory: 'pyocd/_version.py'
Pretty much exactly the same error message, which led me to believe that I may have broke pip.
I am currently using Ubuntu 18.04 and python 2.7.
Is there a way for me to fix this without reinstalling the OS?

Seems like a bug in the package: https://github.com/mbedmicro/pyOCD/issues/442

Related

Why does pip throw WinError 225 on moosegesture installing?

I'm trying to install moosegesture, using pip install moosegesture in PyCharm and I get this error:
ERROR: Error [WinError 225] The operation failed because the file contains a virus or potentially unwanted software while executing command python setup.py egg_info
So far using pip worked fine for me.
Can I install it some other way or what can I do with this error?

error when trying to find files in git repo: ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/AppleInternal

I am trying to clone and run a project from Github on my computer via the repo's manual instructions listed here:
https://github.com/antoinelame/GazeTracking
i have already done the following:
git clone https://github.com/antoinelame/GazeTracking.git
pip3 install -r requirements.txt
but when I ran the last line I got the following error: ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' even though I went and checked and was able to find the file in the repo so I wasn't sure why I was getting the error
in order to troubleshoot, I found most people would run the following line:
pip3 freeze > requirements.txt
but now when I try to run the install requirements.txt line, I get a new error:
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/python3/python3-103/six-1.15.0-py2.py3-none-any.whl'
can anyone explain what might be causing the error and how I might be able to fix it?
was expecting the install to work so I would be able to run the demo
python example.py
Open requirements.txt and remove the line:
six # file:///AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/python3/python3-103/six-1.15.0-py2.py3-none-any.whl

Need to fix error when installing nni, filename or extension is too long

I am trying to install nni via pip install nni as said in their documentation (https://nni.readthedocs.io/en/stable/installation.html).
I get the following error and I am not sure how to fix it:
ERROR: Could not install packages due to an OSError: [WinError 206]
The filename or extension is too long: 'C:\\Users\\ceqcx\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\nni_node\\node_modules\\app-module-path\\test\\node_modules\\installed-module-allowed\\installed-module-allowed-foo'

Error [WinError 87] when installing Kivy on Windows 7

I'm following the instructions here https://saas1907y5.saas-secure.com/projects/pitanga-square/wiki on a computer running Windows 7.
When I have to execute py -m pip install kivy[base] kivy_examples I get the following error:
ERROR: Error [WinError 87] The parameter is incorrect while executing command python setup.py egg_info
ERROR: Could not install packages due to an OSError: [WinError 87] The parameter is incorrect
I tried reinstalling Python 3.6.5 and it didn't solve.
Also, when I run the next command py -m virtualenv env I get another error:
RuntimeError: failed to query D:\pitanga-v21.08 with code 13 err: 'Access is denied'
My guess was that there was something wrong with the permissions Python has, so I opened the folder properties -> security and gave full control to everything, that didn't fix it. Instead I got another error:
Error: [Errno 2] No such file or directory: ''
For the record, I tried following the same steps on a Windows Vista machine I have here and (even though it's not officially supported) it worked fine.

python: can't open file 'setup.py': [Errno 2] No such file or directory -Tensorflow

I want to do a tutorial with tensorflow from Anaconda and created a middle. When installing, you need to install the python "(parking) C:\parking\models\research>python setup.py build" as follows. But it gives an error. Can you help me what should I do?

Categories

Resources