GLFW3 issue prevents pupil from working

901 views
Skip to first unread message

oechsn...@gmail.com

unread,
Oct 10, 2016, 11:24:48 AM10/10/16
to pupil-discuss
Hi folks, i can't find any solution to my problem, maybe there are some Python pros present, who could help me.

I'm using the Pupil Vive Trackers on a Windows 10 Laptop. I've installed all dependencies as described on https://github.com/pupil-labs/pupil/wiki/Dependencies-Installation-Windows.

But still it does not run because of a GLFW3 issue:

#########################
D:\Programme\PupilLabs\pupil\pupil_src\capture>python main.py
MainProcess - [INFO] os_utils: Disabling idle sleep not supported on this OS version.
Process world:
Traceback (most recent call last):
File "C:\Python27\lib\multiprocessing\process.py", line 258, in _bootstrap
self.run()
File "C:\Python27\lib\multiprocessing\process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "D:\Programme\PupilLabs\pupil\pupil_src\capture\world.py", line 69, in world
import glfw
File "C:\Python27\lib\site-packages\glfw.py", line 169, in <module>
raise ImportError("Failed to load GLFW3 shared library.")
ImportError: Failed to load GLFW3 shared library.
##########################

I've traced down the line in glfw.py that tries to find the file 'glfw3.dll':

if sys.platform == 'win32':
# only try glfw3.dll on windows
try:
_glfw = ctypes.CDLL('glfw3.dll')
...
if _glfw is None:
raise ImportError("Failed to load GLFW3 shared library.")

but I don't know where that command actually searches for this particular file. I've tried copying it to several folders but still, the error remains the same.

Any help?

Pupil Labs Info

unread,
Oct 10, 2016, 2:36:45 PM10/10/16
to pupil-...@googlegroups.com
Hi,

I have an answer but I m afraid you will not like it :-)  We currently cannot build pupil on windows. We have a problem with another dependency (libuvc) we have a developer working on this right now. 

In the meantime I would highly recommend connecting the cameras to a small mac or linux machine/laptop and running pupil service on that machine. You can connect to pupil service over the network just as you would if it ran on the same machine.

I will update this post once the windows version is deployed.

Another alternative is running  Yuta Itohs 3d eye tracking software on your windows machine. It was designed to work with pupil hardware as well: https://github.com/YutaItoh/3D-Eye-Tracker/blob/master/README.md


I hope this helps and let us know if you have any other questions!

Best,

Moritz






--
You received this message because you are subscribed to the Google Groups "pupil-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pupil-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to pupil-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pupil-discuss/09a5a61d-419f-460c-8acf-822b48e0bc4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Pupil Labs
research + development + design

Message has been deleted

oechsn...@gmail.com

unread,
Oct 12, 2016, 9:12:05 AM10/12/16
to pupil-discuss
Hi Moritz,

thanks for your instant reply.

I'm currently trying to install the dependencies on a virtual Linux machine and am following the instructions provided in the Github wiki. But I'm facing the following problem trying to install the 'av' package:

##################
Installing collected packages: av
Running setup.py install for av ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-nVV6Us/av/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-m9v_mi-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/av
copying av/__init__.py -> build/lib.linux-x86_64-2.7/av
copying av/__main__.py -> build/lib.linux-x86_64-2.7/av
creating build/lib.linux-x86_64-2.7/av/video
copying av/video/__init__.py -> build/lib.linux-x86_64-2.7/av/video
creating build/lib.linux-x86_64-2.7/av/subtitles
copying av/subtitles/__init__.py -> build/lib.linux-x86_64-2.7/av/subtitles
creating build/lib.linux-x86_64-2.7/av/container
copying av/container/__init__.py -> build/lib.linux-x86_64-2.7/av/container
creating build/lib.linux-x86_64-2.7/av/audio
copying av/audio/__init__.py -> build/lib.linux-x86_64-2.7/av/audio
running build_ext
running reflect
running config
Could not find libavdevice with pkg-config.

----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-nVV6Us/av/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-m9v_mi-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-nVV6Us/av/
#############


Now I've found a similar problem in this group (https://groups.google.com/forum/#!topic/pupil-discuss/z6W5uLlxpEA) but I already installed ffmpeg.

Any ideas what may cause this error?

Appreciate your help!

oechsn...@gmail.com

unread,
Oct 12, 2016, 9:16:28 AM10/12/16
to pupil-discuss, oechsn...@gmail.com
I didn't mention: I'm trying to install av because running capture/main.py fails due to missing av package.

oechsn...@gmail.com

unread,
Oct 12, 2016, 9:30:20 AM10/12/16
to pupil-discuss, oechsn...@gmail.com
Solved this issue thanks to this post (-> https://github.com/mikeboers/PyAV/issues/105):

sudo apt-get install -y \
libavformat-dev libavcodec-dev libavdevice-dev \
libavutil-dev libswscale-dev libavresample-dev

Reply all
Reply to author
Forward
0 new messages