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

Unable to install glumpy on Ubuntu 14.04 : GLFW Library not found #25

Closed
aman-ks opened this issue Feb 16, 2015 · 11 comments
Closed

Unable to install glumpy on Ubuntu 14.04 : GLFW Library not found #25

aman-ks opened this issue Feb 16, 2015 · 11 comments

Comments

@aman-ks
Copy link

aman-ks commented Feb 16, 2015

Here's the traceback when I executed the commands for installation.

./app-simple.py 
Traceback (most recent call last):
  File "./app-simple.py", line 7, in <module>
from glumpy import app
  File "/usr/local/lib/python2.7/dist-packages/glumpy-1.0.3-py2.7-linux-    x86_64.egg/glumpy/__init__.py", line 8, in <module>
    from . import app
  File "/usr/local/lib/python2.7/dist-packages/glumpy-1.0.3-py2.7-linux-x86_64.egg/glumpy/app/__init__.py", line 17, in <module>
    from glumpy.ext.inputhook import inputhook_manager, stdin_ready
  File "/usr/local/lib/python2.7/dist-packages/glumpy-1.0.3-py2.7-linux-x86_64.egg/glumpy/ext/__init__.py", line 6, in <module>
    from . import glfw
  File "/usr/local/lib/python2.7/dist-packages/glumpy-1.0.3-py2.7-linux-x86_64.egg/glumpy/ext/glfw.py", line 60, in <module>
    raise OSError('GLFW library not found')
OSError: GLFW library not found

I have already compiled and executed 'make' and 'make install' for GLFW 3.1. Cannot understand why this is not working.

@rougier
Copy link
Member

rougier commented Feb 16, 2015

Do you know where is your glfw C library installed ?

@aman-ks
Copy link
Author

aman-ks commented Feb 16, 2015

It is in /usr/local/include

@aman-ks
Copy link
Author

aman-ks commented Feb 16, 2015

Also, I found this link https://stackoverflow.com/questions/25151085/unable-to-locate-package-glfw-on-linux-mint. GLFW 3 won't work in 14.04, is it so? Should I try to get GLFW 2 working then ?

Update: I installed libglfw-dev (GLFW 2) and now the traceback changed to

raise OSError('Need GLFW library version 3, found version %s' % version)
OSError: Need GLFW library version 3, found version 2.7.2

@rougier
Copy link
Member

rougier commented Feb 16, 2015

You need to install GLFW 3 from sources (and uninstall glfw library 2 first)

@aman-ks
Copy link
Author

aman-ks commented Feb 17, 2015

I purged all files related to glfw2 and then installed glfw3 using git.

(https://github.com/shurcooL/reusable-commands/blob/ed33ae496f36aaea735a1d183f77e833c92a9f3d/go-gl_glfw3_install.sh#L19-L32)

@aman-ks
Copy link
Author

aman-ks commented Feb 17, 2015

This worked. Thanks a lot @rougier

@rougier
Copy link
Member

rougier commented Feb 17, 2015

Cool !

@rougier rougier closed this as completed Feb 17, 2015
@ssinfod
Copy link

ssinfod commented Feb 28, 2015

I have the same problem on Ubuntu 14.04.
How do you remove (purge) glfw 2.7.2 from Ubuntu 14.04 ?

Thanks
ssinfod

@rougier
Copy link
Member

rougier commented Feb 28, 2015

From the package manager, you should be able to uninstall it.

@ssinfod
Copy link

ssinfod commented Mar 1, 2015

I found it, I had to use:
sudo apt-get purge libglfw-dev

@rougier
Copy link
Member

rougier commented Mar 1, 2015

Then follow the procedure above (to install glfw3) and glumpy should work hopefully.

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

3 participants