Skip to content

FileNotFoundError: [WinError 2] The system cannot find the file specified #1089

@HardOldGrit

Description

@HardOldGrit
(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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions