Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HardOldGrit opened this issue Feb 27, 2025 · 1 comment

Comments

@HardOldGrit
Copy link

HardOldGrit commented Feb 27, 2025

(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]
@vgutierrez2404
Copy link

Check this issue #1078. As far as I know, in the commit ef872b2 someone removed 4 important files from the library. Check if it works for you and if not we will try to find a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants