Search Criteria
Package Details: brainworkshop 5.0.1-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: | |
Submitter: | xantares |
Maintainer: | xantares |
Last Packager: | xantares |
Votes: | 8 |
Popularity: | 0.003778 |
First Submitted: | 2015-10-13 20:02 |
Last Updated: | 2020-05-27 07:55 |
Dependencies (3)
- ffmpeg (ffmpeg-semifull-git, ffmpeg-tmblock-git, ffmpeg4.0, ffmpeg-cuda, ffmpeg-v4l2-request-git, ffmpeg-svt, ffmpeg-headless, ffmpeg-gl-transition, ffmpeg-git, ffmpeg-decklink, ffmpeg-intel-full-git, ffmpeg-mmal, ffmpeg-svt-av1-git, ffmpeg-libfdk_aac, ffmpeg-full, ffmpeg-nox-git, ffmpeg-svt-vp9-git, ffmpeg-nocuda, ffmpeg-ndi, ffmpeg-amd-full, ffmpeg-full-git, ffmpeg-amd-full-git)
- openal (openal119-bin, openal-git, openal-minimal-git)
- python-pyglet (python-pyglet-hg)
Latest Comments
« First ‹ Previous 1 2 3 Next › Last »
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 ?
xantares commented on 2017-11-23 19:56
@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
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
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
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
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
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