OpenSfM icon indicating copy to clipboard operation
OpenSfM copied to clipboard

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

Open HardOldGrit opened this issue 10 months ago • 2 comments

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

HardOldGrit avatar Feb 27 '25 13:02 HardOldGrit

Check this issue https://github.com/mapillary/OpenSfM/issues/1078. As far as I know, in the commit ef872b2399cf1cc036d91e950f210a7be33c2745 someone removed 4 important files from the library. Check if it works for you and if not we will try to find a solution.

vgutierrez2404 avatar Feb 27 '25 16:02 vgutierrez2404

This project is completely fucked

Waffle1434 avatar Apr 05 '25 20:04 Waffle1434