vapory icon indicating copy to clipboard operation
vapory copied to clipboard

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

Open GuruOfPython opened this issue 5 years ago • 4 comments

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?

GuruOfPython avatar Nov 20 '19 21:11 GuruOfPython

I have the same error

rafael-fuente avatar May 07 '20 13:05 rafael-fuente

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

rafael-fuente avatar May 13 '20 02:05 rafael-fuente

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

FedeClaudi avatar May 31 '20 11:05 FedeClaudi

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] 系统找不到指定的文件。

a897456 avatar Feb 26 '24 14:02 a897456