SpiNNakerManchester / IntroLab

Introductory Lab Material
Apache License 2.0
6 stars 3 forks source link

New sudoku visualiser #8

Closed dkfellows closed 7 years ago

dkfellows commented 7 years ago

This allows the new visualiser to be used so long as the sPyNNakerVisualisers package has been pip installed. The old visualiser can be used instead by setting the OLD_VIS environment variable (to anything) before running the sudoku script.

rowleya commented 7 years ago

Further to this, the install on Linux should work with the install of freeglut:

sudo apt-get install freeglut3-dev

or

sudo dnf install freeglut-devel

For windows, the user needs to download one of the following: http://www.lfd.uci.edu/~gohlke/pythonlibs/tuft5p8b/PyOpenGL-3.1.1-cp27-cp27m-win_amd64.whl or http://www.lfd.uci.edu/~gohlke/pythonlibs/tuft5p8b/PyOpenGL-3.1.1-cp27-cp27m-win32.whl

They then need to run:

pip install PyOpenGL-3.1.1-cp27-cp27m-win_amd64.whl

or

pip install PyOpenGL-3.1.1-cp27-cp27m-win32.whl

I assume that the Mac OS comes with the appropriate libraries...

Christian-B commented 7 years ago

This should be merged in BEFORE any PyNN0.8 changes.

I would then suggest creating and keeping a PyNN0.7 branch

rowleya commented 7 years ago

Note that the old visualiser is no less likely to run than the new one. That said, on Windows, the dll files required are included and the rest of the libraries are statically compiled in. Not sure about why the old visualiser works on Linux when the new one doesn't...

rowleya commented 7 years ago

Ahh of course weird permissions are a standard issue for ITS installed machines :)

rowleya commented 7 years ago

IntroLab instructions updated - note that OSX is supposed to have glut already so no additional instructions are provided. This needs checking!

dkfellows commented 7 years ago

When I developed the changed code on my laptop, it Just Worked™, but that could have been because of something else that I have installed in the past. I also have a full compiler toolchain (several in fact) so installing from source isn't a barrier for me. All in all, it works on a system with a lot of customisations, but I can't say much about any other.

Someone else, with a more conventional configuration, needs to check.

alan-stokes commented 7 years ago

you mean like @sara-es whom has a mac which is as fresh as it can be?

sara-es commented 7 years ago

Worked fine for me! (after fiddling with PyNN8 modules a bit)

rowleya commented 7 years ago

Yay! In that case, my updated instructions in the IntroLab are fine.

alan-stokes commented 7 years ago

those devious pynn 0.8 modules. least we got one os covered, ill check the linux ones shortly. once i catch up on notifications, and labelling