Package Details: brainworkshop 5.0.3-1

Git Clone URL: https://aur.archlinux.org/brainworkshop.git (read-only, click to copy)
Package Base: brainworkshop
Description: Brain Workshop is a free open-source version of the Dual N-Back mental exercise
Upstream URL: https://github.com/samcv/brainworkshop
Licenses: GPL
Submitter: xantares
Maintainer: xantares
Last Packager: xantares
Votes: 10
Popularity: 0.106617
First Submitted: 2015-10-13 20:02 (UTC)
Last Updated: 2024-02-23 20:20 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

xantares commented on 2017-11-23 19:56 (UTC) (edited on 2017-11-23 19:57 (UTC) by xantares)

@josealb77 could you add a print around L66: def get_main_dir(): print('XXX', main_is_frozen()) if main_is_frozen(): return os.path.dirname(sys.executable) return sys.path[0] the run and look at what the program prints on the screen.

JustinSB commented on 2017-11-22 21:21 (UTC) (edited on 2017-11-22 21:27 (UTC) by JustinSB)

I had to copy the data and res directories from /usr/share/brainworkshop/ to /usr/lib/python2.7/site-packages/pyglet/extlibs/future/py2/ as well, although once I did, everything starts to work properly. Alas, my python-fu isn't up to the task of finding out why pyglet overrides the path, but at least it's a quick'n'easy fix, albeit somewhat ugly... For the record, I'm running a fully updated system. python2-pyglet 1.3.0-1 is the one installed by pacman as a dependency, just before I compiled & installed brainworkshop.

josealb77 commented on 2017-11-22 21:06 (UTC)

could you edit the /usr/share/brainworkshop/brainworkshop.pyw ? you could add print statements in get_res_dir, get_main_dir to see where to code goes, in particular I wonder if it goes into the "if main_is_frozen():" condition I'm sorry, I do not know code in python. But I can edit brainworkshop.pyw. Tell me exactly what to add and where to add it and I will do it.

xantares commented on 2017-11-22 19:02 (UTC)

could you edit the /usr/share/brainworkshop/brainworkshop.pyw ? you could add print statements in get_res_dir, get_main_dir to see where to code goes, in particular I wonder if it goes into the "if main_is_frozen():" condition

josealb77 commented on 2017-11-22 14:14 (UTC)

What's your pyglet version (python2) ? python2-pyglet-1.3.0-1 python-pyglet-1.3.0-1 The last version that comes with the distro (you know "sudo pacman -Syu")

josealb77 commented on 2017-11-22 13:50 (UTC)

What's your pyglet version (python2) ? $ python2 --version Python 2.7.14 $ python --version Python 3.6.3 Do you have the full traceback ? I don't know if you mean to all the errors I get. That's the only one I get: $ brainworkshop Error: the resource folder /usr/lib/python2.7/site-packages/pyglet/extlibs/future/py2/res does not exist or is not readable. Exiting $ No more messages

xantares commented on 2017-11-22 13:31 (UTC) (edited on 2017-11-22 13:31 (UTC) by xantares)

What's your pyglet version (python2) ? Do you have the full traceback ?

josealb77 commented on 2017-11-22 12:50 (UTC)

"data" and "res" folders where placed in the folder "/usr/share/brainworkshop". "brainworkshop.pyw" was there too. I updated the application to -5 version but I still got the same error. Uninstalled brainworkshop 4.8.4-5 and reinstalled it but I had the same error. Moved both folders to /usr/lib/python2.7/site-packages/pyglet/extlibs/future/py2/ that is where python2 is looking for them and the problem was solved. Nevertheless... i don't know if it is a clean way to solve that problem. Shouldn't the python2 executable looked for them before in the application folder?

xantares commented on 2017-11-22 12:09 (UTC) (edited on 2017-11-22 12:09 (UTC) by xantares)

I had to fix errors due to the pyglet 1.3.0 update, but did not encounter yours @josealb77.

josealb77 commented on 2017-11-21 18:56 (UTC)

$ brainworkshop Error: the resource folder /usr/lib/python2.7/site-packages/pyglet/extlibs/future/py2/res does not exist or is not readable. Exiting