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 #53

Open
GuruOfPython opened this issue Nov 20, 2019 · 4 comments

Comments

@GuruOfPython
Copy link

I use Windows 10. I installed povwin-3.7-agpl3-setup.exe and ran the sample code, but I noticed error;

  • Code
    from vapory import *

camera = Camera( 'location', [0,2,-3], 'look_at', [0,1,2] )
light = LightSource( [2,4,-3], 'color', [1,1,1] )
sphere = Sphere( [0,1,2], 2, Texture( Pigment( 'color', [1,0,1] )))

scene = Scene( camera, objects= [light, sphere])
scene.render("purple_sphere.png", width=400, height=300)

  • Error
    Traceback (most recent call last):
    File "C:\Users\Lion\Anaconda3\lib\subprocess.py", line 775, in init
    restore_signals, start_new_session)
    File "C:\Users\Lion\Anaconda3\lib\subprocess.py", line 1178, in _execute_child
    startupinfo)
    File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.2.3\helpers\pydev_pydev_bundle\pydev_monkey.py", line 536, in new_CreateProcess
    return getattr(_subprocess, original_name)(app_name, patch_arg_str_win(cmd_line), *args)
    FileNotFoundError: [WinError 2] The system cannot find the file specified

  • Need Help
    How can I fix this error?

@rafael-fuente
Copy link

I have the same error

@rafael-fuente
Copy link

@FedeClaudi
Copy link

thanks @rafael-fuente that was very helpful. vapory should try to catch this error and provide a more helpful error message.

@a897456
Copy link

a897456 commented Feb 26, 2024

I found a solution to the problem here: https://stackoverflow.com/questions/58963669/vapory-error-filenotfounderror-winerror-2-the-system-cannot-find-the-file-sp

I followed the steps to make changes, but the following error still appeared

Traceback (most recent call last):
File "C:\Users\User1\Desktop\SpecVQGAN-main\specVQ.py", line 33, in
duration = get_duration(input_wav)
File "C:\Users\User1\Desktop\SpecVQGAN-main\feature_extraction\demo_utils.py", line 67, in get_duration
result = subprocess.run(cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "E:\ProgramData\anaconda3\envs\py39\lib\subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "E:\ProgramData\anaconda3\envs\py39\lib\subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "E:\ProgramData\anaconda3\envs\py39\lib\subprocess.py", line 1436, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

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

4 participants