FileNotFoundError: [WinError 2] The system cannot find the file specified
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 899
- PR merge metrics
- No merged PRs in 30d
Description
(urex_python3.8) PS E:\PersonalProjects\UREX\OpenSfM> python setup.py install
Configuring for python 3.8...
Traceback (most recent call last):
File "setup.py", line 59, in <module>
configure_c_extension()
File "setup.py", line 43, in configure_c_extension
subprocess.check_call(cmake_command, cwd="cmake_build")
File "C:\Users\miniconda3\envs\urex_python3.8\lib\subprocess.py", line 359, in check_call
retcode = call(*popenargs, **kwargs)
File "C:\Users\miniconda3\envs\urex_python3.8\lib\subprocess.py", line 340, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Users\miniconda3\envs\urex_python3.8\lib\subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\miniconda3\envs\urex_python3.8\lib\subprocess.py", line 1327, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
This is my requirements file.
cloudpickle==0.4.0
exifread==2.1.2
flask==2.3.2
fpdf2==2.4.6
joblib==0.14.1
matplotlib
networkx==2.5
numpy>=1.19
Pillow>=8.1.1
pyproj>=1.9.5.1
pytest==3.0.7
python-dateutil>=2.7
pyyaml==5.3.1
scipy>=1.10.0
Sphinx==4.2.0
six
xmltodict==0.10.2
wheel
opencv-python==4.5.3.56 ; sys_platform == "win32"
opencv-python ; sys_platform == "linux"
I am unsure on how to resolve this.. The only thing I changed in the requirements file was the pyyaml version to 5.3.1 as the installation process was stuck at pyyaml. As shown below. After changing it to an earlier version, the error was resolved.
Collecting pyyaml==5.4 (from -r requirements.txt (line 13))
Using cached PyYAML-5.4.tar.gz (174 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [65 lines of output]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with setup.py, especially configure_c_extension and the cmake_build working directory, then review the requirements.txt PyYAML pin and the reported installation logs. Reproduce the Windows Python 3.8 installation path; done means the dependencies install and python setup.py install completes without the reported FileNotFoundError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, python
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100