Package Details: brainworkshop 4.8.4-7

Git Clone URL: https://aur.archlinux.org/brainworkshop.git (read-only)
Package Base: brainworkshop
Description: Brain Workshop is a free open-source version of the Dual N-Back mental exercise
Upstream URL: http://brainworkshop.sourceforge.net/
Licenses: GPL
Submitter: xantares
Maintainer: xantares
Last Packager: xantares
Votes: 7
Popularity: 0.646073
First Submitted: 2015-10-13 20:02
Last Updated: 2017-12-02 10:19

Latest Comments

josealb77 commented on 2017-12-03 20:28

josealb77, I reverted back to avbin7, does that fix your problem?

Yes ;)

xantares commented on 2017-12-02 10:21

josealb77, I reverted back to avbin7, does that fix your problem?

xantares commented on 2017-12-01 08:05

could you try running gdb ?

josealb77 commented on 2017-11-30 10:24

I've uninstalled both avbin7 and brainworkshop, in order to not having dependency problems, and after I've installed brainworkshop answering yes when yaourt have asked me to install avbin as a dependency. All was installed fine. But when I launched brainworkshop:

$ brainworkshop
*** Error in `python2': munmap_chunk(): invalid pointer: 0x000055e43147e598 ***
/usr/bin/brainworkshop: line 2: 8615 Aborted (`core' generated) python2 /usr/share/brainworkshop/brainworkshop.pyw --resdir /usr/share/brainworkshop/res
$

xantares commented on 2017-11-27 20:32

ok, that a weird behavior of pyglet:
https://bugs.archlinux.org/task/56487?project=5&string=python2-pyglet

josealb77 commented on 2017-11-27 18:22

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

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

josealb77 commented on 2017-11-23 21:06

@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

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

also could someone try brainworkshop-git ?

All comments