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.98
First Submitted: 2015-10-13 20:02 (UTC)
Last Updated: 2024-02-23 20:20 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

josealb77 commented on 2017-11-27 18:22 (UTC) (edited on 2017-11-27 18:24 (UTC) by josealb77)

Do you have the python2-future package installed ? I hadn't. I've installed it and now works ;)

xantares commented on 2017-11-25 08:20 (UTC)

@josealb77 do you have the python2-future package installed ?

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

@xantares also could someone try brainworkshop-git ? Yes, after uninstalling brainworkshop I've installed brainworkshop-git without problems, but launching brainworkshop... $ brainworkshop Traceback (most recent call last): File "/usr/share/brainworkshop/brainworkshop.pyw", line 895, in <module> _(' does not exist or is not readable. Exiting'), trace=False) File "/usr/share/brainworkshop/brainworkshop.pyw", line 165, in quit_with_error if message: print >> sys.stderr, message + '\n' TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOWrapper'. Did you mean "print(<message>, file=<output_stream>)"? $ But brainworkshop didn't even appeared. So, by the moment, moving the data and res folders to /usr/lib/python2.7/site-packages/pyglet/extlibs/future/py2/ with the 4.8.4 brainworkshop version is the only reliable solution.

josealb77 commented on 2017-11-23 20:59 (UTC)

Adding literally just print('XXX', main_is_frozen()) to the line 66 the code looked like this (I've added here the number of the lines to clear it a bit): 61 # some functions to assist in path determination 62 def main_is_frozen(): 63 return (hasattr(sys, "frozen") or # new py2exe 64 hasattr(sys, "importers") # old py2exe 65 or imp.is_frozen("__main__")) # tools/freeze 66 print('XXX', main_is_frozen()) 67 def get_main_dir(): 68 if main_is_frozen(): 69 return os.path.dirname(sys.executable) 70 return sys.path[0] And the result was: $ brainworkshop ('XXX', False) Error: the resource folder /usr/lib/python2.7/site-packages/pyglet/extlibs/future/py2/res does not exist or is not readable. Exiting $ Adding the whole code def get_main_dir(): print('XXX', main_is_frozen()) if main_is_frozen(): return os.path.dirname(sys.executable) return sys.path[0] The result was: $ brainworkshop File "/usr/share/brainworkshop/brainworkshop.pyw", line 68 print('XXX', main_is_frozen()) ^ IndentationError: expected an indented block $

xantares commented on 2017-11-23 20:41 (UTC)

also could someone try brainworkshop-git ?

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")