brain-workshop / brainworkshop

Continued development of the popular brainworkshop game
GNU General Public License v2.0
235 stars 39 forks source link

Will not start in Linux Mint 18.x based Ubuntu 16.04? #9

Closed phd21 closed 5 years ago

phd21 commented 6 years ago

Hi Samcv,

Thanks for forking this into version 5 for Python 2 and 3 and updating it.

Unfortunately, I cannot get this to work in my Linux Mint 18.x based Ubuntu 16.04.

Some people in the Linux Mint forum would like to use "Brainworkshop" and could not get it to work, then I found your fork "Brainworkshop 5", and I cannot get it to load. I have installed all the dependencies I think. Does this still use the "avbin" like the older one because I installed that too?

These are the results from my console terminal using either python or python3.

`python brainworkshop.pyw Warning: Could not load AVbin. Music disabled.

This is usually due to Windows Data Execution Prevention (DEP). Due to a bug in AVbin, a library used for decoding sound files, music is not available when DEP is enabled. To enable music, disable DEP for Brain Workshop. To simply get rid of this message, set USE_MUSIC = False in your config.ini file.

To disable DEP:

  1. Open Control Panel -> System
  2. Select Advanced System Settings
  3. Click on Performance -> Settings
  4. Click on the Data Execution Prevention tab
  5. Either select the "Turn on DEP for essential Windows programs and services only" option, or add an exception for Brain Workshop.

Press any key to continue without music support.

Exception AttributeError: "'FFmpegSource' object has no attribute '_packet'" in <bound method FFmpegSource.del of <pyglet.media.codecs.ffmpeg.FFmpegSource object at 0x7fc7c3d63110>> ignored Traceback (most recent call last): File "brainworkshop.pyw", line 4735, in brain_icon.set_position(field.center_x - brain_icon.width//2, AttributeError: 'Sprite' object has no attribute 'set_position' `

Best regards, Phil (phd21) phd21mint@gmail.com

xantares commented 5 years ago

that's a change in pyglet, try #13

lgtout commented 5 years ago

I had the same error on Mac Sierra. Using @xantares' changes fixed it.

xantares commented 5 years ago

@samcv this is fixed in #13