pupil-labs / pupil

Open source eye tracking
https://pupil-labs.com
GNU Lesser General Public License v3.0
1.48k stars 676 forks source link

pupil-1.1 not starting on ubuntu 17.10 #929

Closed callummole closed 6 years ago

callummole commented 6 years ago

Hi,

I've recently downloaded pupil-labs v1.1, but am having trouble starting it. It may have something to do with me recently updating ubuntu to 17.10, but I'm not certain (I'm relatively new to linux).

When you run from source you get: eyetrike@eyetrike-ThinkPad-E570:~/pupil-1.1/pupil_src$ python3 main.pyError calling git: "Command '['git', 'describe', '--tags']' returned non-zero exit status 128." output: "b'fatal: Not a git repository (or any of the parent directories): .git\n'" Traceback (most recent call last): File "main.py", line 50, in app_version = get_version(version_file) File "/home/eyetrike/pupil-1.1/pupil_src/shared_modules/version_utils.py", line 69, in get_version version = pupil_version() File "/home/eyetrike/pupil-1.1/pupil_src/shared_modules/version_utils.py", line 51, in pupil_version version = get_tag_commit().decode('utf-8') AttributeError: 'NoneType' object has no attribute 'decode'

When you run the app you get: eyetrike@eyetrike-ThinkPad-E570:~$ pupil_capture Could not find platform independent libraries Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] MainProcess - [INFO] os_utils: Disabling idle sleep not supported on this OS version. world - [ERROR] launchables.world: Process Capture crashed with trace: Traceback (most recent call last): File "launchables/world.py", line 98, in world File "/home/pupil-labs/.pyenv/versions/3.6.0/envs/general/lib/python3.6/site-packages/PyInstaller-3.3.dev0+g8998a9d-py3.6.egg/PyInstaller/loader/pyimod03_importers.py", line 714, in load_module ImportError: /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1: undefined symbol: drmGetDevices2

world - [INFO] launchables.world: Process shutting down.

Any help appreciated.

mkassner commented 6 years ago

Hi,

when trying to run from source please do the following: git clone the repository. Just downloading the source files breaks our version scripts.

Can you try the bundle from here: https://drive.google.com/open?id=1KeAgmosLyn8kZ_xTJy_lVom5NNyXxG69

and let me know if if works on 17.10?

callummole commented 6 years ago

Tried the bundle, unfortunately still get the same error as above.

callummole commented 6 years ago

However, when I run pupil-capture from source (after cloning), it runs fine.

mkassner commented 6 years ago

Hi, sorry i uploaded the wrong bundle! Please try again:

https://drive.google.com/open?id=1lxtevzD1szstHjsXW99LtOBNLRwEhCc6 Thank you!

callummole commented 6 years ago

The new bundle works on 17.10 fine.

Thanks!

mkassner commented 6 years ago

Awesome! I will update all bundles.

callummole commented 6 years ago

Hi, the pupil player and pupil service also struggle to work on ubuntu 17.10. Apologies for not trying these out when I reported the previous issue. Presumably they are related.

If you try and run pupil player you get:

eyetrike@eyetrike-ThinkPad-E570:~$ pupil_player Could not find platform independent libraries Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] MainProcess - [INFO] os_utils: Disabling idle sleep not supported on this OS version. player - [ERROR] launchables.player: Process player_drop crashed with trace: Traceback (most recent call last): File "PyInstaller/loader/pyiboot01_bootstrap.py", line 144, in init File "ctypes/init.py", line 344, in init OSError: /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1: undefined symbol: drmGetDevices2

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "OpenGL/platform/glx.py", line 17, in GL File "OpenGL/platform/ctypesloader.py", line 45, in loadLibrary File "PyInstaller/loader/pyiboot01_bootstrap.py", line 146, in init PyInstallerImportError: ("Failed to load dynlib/dll 'libGL.so.1'. Most probably this dynlib/dll was not found when the application was frozen.", 'libGL.so.1', 'libGL.so.1')

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "launchables/player.py", line 534, in player_drop File "/home/pupil-labs/.pyenv/versions/3.6.0/envs/general/lib/python3.6/site-packages/PyInstaller-3.3.dev0+g8998a9d-py3.6.egg/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module File "shared_modules/gl_utils/init.py", line 12, in File "/home/pupil-labs/.pyenv/versions/3.6.0/envs/general/lib/python3.6/site-packages/PyInstaller-3.3.dev0+g8998a9d-py3.6.egg/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module File "shared_modules/gl_utils/utils.py", line 15, in File "/home/pupil-labs/.pyenv/versions/3.6.0/envs/general/lib/python3.6/site-packages/PyInstaller-3.3.dev0+g8998a9d-py3.6.egg/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module File "OpenGL/GL/init.py", line 3, in File "/home/pupil-labs/.pyenv/versions/3.6.0/envs/general/lib/python3.6/site-packages/PyInstaller-3.3.dev0+g8998a9d-py3.6.egg/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module File "OpenGL/error.py", line 12, in File "/home/pupil-labs/.pyenv/versions/3.6.0/envs/general/lib/python3.6/site-packages/PyInstaller-3.3.dev0+g8998a9d-py3.6.egg/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module File "OpenGL/platform/init.py", line 35, in File "OpenGL/platform/init.py", line 32, in _load File "OpenGL/platform/baseplatform.py", line 92, in install File "OpenGL/platform/baseplatform.py", line 14, in get File "OpenGL/platform/glx.py", line 96, in GetCurrentContext File "OpenGL/platform/baseplatform.py", line 14, in get File "OpenGL/platform/glx.py", line 20, in GL ImportError: ('Unable to load OpenGL library', "Failed to load dynlib/dll 'libGL.so.1'. Most probably this dynlib/dll was not found when the application was frozen.", 'libGL.so.1', 'libGL.so.1')

and if you try and run pupil service you get:

eyetrike@eyetrike-ThinkPad-E570:~$ pupil_service

Could not find platform independent libraries Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] MainProcess - [INFO] os_utils: Disabling idle sleep not supported on this OS version. service - [ERROR] launchables.service: Process Service crashed with trace: Traceback (most recent call last): File "launchables/service.py", line 88, in service File "/home/pupil-labs/.pyenv/versions/3.6.0/envs/general/lib/python3.6/site-packages/PyInstaller-3.3.dev0+g8998a9d-py3.6.egg/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module File "shared_modules/pupil_detectors/init.py", line 18, in File "/home/pupil-labs/.pyenv/versions/3.6.0/envs/general/lib/python3.6/site-packages/PyInstaller-3.3.dev0+g8998a9d-py3.6.egg/PyInstaller/loader/pyimod03_importers.py", line 714, in load_module File "pupil_detectors/detector_2d.pyx", line 17, in init pupil_detectors.detector_2d (detector_2d.cpp:26699) File "/home/pupil-labs/.pyenv/versions/3.6.0/envs/general/lib/python3.6/site-packages/PyInstaller-3.3.dev0+g8998a9d-py3.6.egg/PyInstaller/loader/pyimod03_importers.py", line 714, in load_module ImportError: /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1: undefined symbol: drmGetDevices2

service - [INFO] launchables.service: Process shutting down.

mkassner commented 6 years ago

@callummole please try the latest bundles. I just uploaded the version with 17.10 fixes. https://github.com/pupil-labs/pupil/releases/tag/v1.1

callummole commented 6 years ago

New bundles start fine. Thanks again.

mkassner commented 6 years ago

@callummole Can you confirm that the cameras are working for you? We have some users on 17.10 that have trouble...

callummole commented 6 years ago

@mkassner it was working very well until I accepted some recommended linux updates. See issue #954

mkassner commented 6 years ago

ok. We have a fix for this. (It is actually a linux kernel bug.) I ll upload the fixed bundle on Monday.