patriciogonzalezvivo / HeNerator

script to generate HeN ipfs app exports of GLSL shaders
22 stars 1 forks source link

HeNerator.py Errno 2 [SOLVED] #1

Closed AlejoHarris closed 3 years ago

AlejoHarris commented 3 years ago

Hi again @patriciogonzalezvivo, this is the error trying to doing it in a Windows PC:

  File "C:\Users\Alejo\Desktop\HeNerator\henerator.py", line 2309, in <module>
    generate(file, args)
  File "C:\Users\Alejo\Desktop\HeNerator\henerator.py", line 2239, in generate
    shader_in_file = open(shader_filename+'.frag', "r")
FileNotFoundError: [Errno 2] No such file or directory: 'ejndjhwghg6pwxsu9vvskh27yhk011sz.frag'

I installed GLSLViewer I think, there is a way to verify that?

patriciogonzalezvivo commented 3 years ago

In you console type glslViewer and see if it finds it. GlslViewer needs to be installed on you system path

AlejoHarris commented 3 years ago

Thank you @patriciogonzalezvivo, also encounter same issue with FFMpeg, and made the same thing. Thank you! It could be nice to make a note in the Readme that these dependencies need to be installed on the system path, as a recommendation for Windows users that maybe don't know about instlalling this by themselves. Again, thank you!

patriciogonzalezvivo commented 3 years ago

https://github.com/patriciogonzalezvivo/HeNerator/blob/main/README.md#requirements-and-install

AlejoHarris commented 3 years ago

Hi @patriciogonzalezvivo, I'm reopening this issue because happened again, with all the dependencies installed in the system PATH

./henerator.py black.frag --title Black --duration 10
Warnings while compiling vertex shader:
WARNING: 0:2: '' :  #version directive missing

Warnings while compiling fragment shader:
WARNING: 0:2: '' :  #version directive missing
WARNING: 1:61: Unary operation folding into constant is supported in newer GLSL versions

Warnings while compiling vertex shader:
WARNING: 0:2: '' :  #version directive missing

Warnings while compiling fragment shader:
WARNING: 0:2: '' :  #version directive missing

Traceback (most recent call last):
  File "C:\Users\Alejo\Desktop\HeNerator\henerator.py", line 2309, in <module>
    generate(file, args)
  File "C:\Users\Alejo\Desktop\HeNerator\henerator.py", line 2239, in generate
    shader_in_file = open(shader_filename+'.frag', "r")
FileNotFoundError: [Errno 2] No such file or directory: '45yax3k0kel4j7hhk5inftfbkm6fic1z.frag'

image

image

The shader seems to be running normally using the GLSL Viewer extension from VSCode, any idea of what it could be?

patriciogonzalezvivo commented 3 years ago

Seams there is an issue with your shader. It's missing the version number. Please try your shaders on glslViewer to make sure they run properly

AlejoHarris commented 3 years ago

It opens a windows, shows the same warnings and then it closes.

image

Is there something in the versioning I may be missing?

AlejoHarris commented 3 years ago

Seams there is an issue with your shader. It's missing the version number. Please try your shaders on glslViewer to make sure they run properly

Oh I missed this, how can I do this inside my .frag file?

AlejoHarris commented 3 years ago

Ok solved this by using de Win32 release of glslViewer, not the x64