p5 icon indicating copy to clipboard operation
p5 copied to clipboard

Trouble installing GLFW on windows

Open andrey-gvrd opened this issue 5 years ago • 7 comments

I've downloaded GLFW as instructed.

I've tried:

  • Putting the location of the DLL it into PATH
  • Putting DLL itself into SysWOW64
  • Putting DLL itself into Python36-32\Lib\site-packages\p5

Nothing works, same error.

Test script:

from p5 import *

Errors produced (if any):

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\andre\AppData\Local\Programs\Python\Python36-32\lib\site-packages\p5\__init__.py", line 19, in <module>
    from .sketch import *
  File "C:\Users\andre\AppData\Local\Programs\Python\Python36-32\lib\site-packages\p5\sketch\__init__.py", line 19, in <module>
    vispy.use('glfw')
  File "C:\Users\andre\AppData\Local\Programs\Python\Python36-32\lib\site-packages\vispy\util\wrappers.py", line 96, in use
    use_app(app)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python36-32\lib\site-packages\vispy\app\_default_app.py", line 47, in use_app
    default_app = Application(backend_name)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python36-32\lib\site-packages\vispy\app\application.py", line 49, in __init__
    self._use(backend_name)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python36-32\lib\site-packages\vispy\app\application.py", line 223, in _use
    raise RuntimeError(msg)
RuntimeError: Could not import backend "Glfw":
[WinError 193] %1 is not a valid Win32 application

p5 version:

0.4.0a1

Python version:

Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32

Operating System:

Windows 10 x64

andrey-gvrd avatar Jul 21 '18 22:07 andrey-gvrd

Hmm. I don't have access to a windows machine so, can't verify it at the moment. @Manindra29, could you see if there's some step missing?

abhikpal avatar Jul 21 '18 23:07 abhikpal

@andrey-gvrd - Here's what I added to my Windows PATH: C:\Users\Manindra\Downloads\glfw-3.2.1.bin.WIN64\lib-mingw-w64

Manindra29 avatar Jul 23 '18 04:07 Manindra29

@andrey-gvrd, Unfortunately, I had the same issue. I've just downloaded 32-bit package instead of 64-bit. Now everything works fine!

Windows PATH (32-bit): C:\Program Files\GLFW\lib-mingw.

avdotion avatar Aug 15 '18 18:08 avdotion

How was the solution? I encounter the same problem. I have downloaded the right one (GLFW 64-bit Windows Binary)

wildanpurnomo avatar Dec 15 '18 16:12 wildanpurnomo

Hi, check out issue #76 , i have a detailed answer on this problem. Thanks.

dbhavsar76 avatar Dec 15 '18 16:12 dbhavsar76

Hi, check out issue #76 , i have a detailed answer on this problem. Thanks.

It doesn't work , tried everything , but it is broken

mberoakoko avatar Sep 04 '20 22:09 mberoakoko

@andrey-gvrd, Unfortunately, I had the same issue. I've just downloaded 32-bit package instead of 64-bit. Now everything works fine!

Windows PATH (32-bit): C:\Program Files\GLFW\lib-mingw.

It look like this problem is still present but this worked for me... Thanks for the help.

MrPancakes39 avatar Nov 04 '20 19:11 MrPancakes39