Neuropsydia.py icon indicating copy to clipboard operation
Neuropsydia.py copied to clipboard

Compatible with Mac OS and Linux

Open DominiqueMakowski opened this issue 8 years ago • 10 comments

It would be great.

DominiqueMakowski avatar Nov 06 '16 23:11 DominiqueMakowski

With mac it seems to work, however there might be an issue with the cvxopt package used for signal processing... further checking is required

DominiqueMakowski avatar Nov 15 '16 15:11 DominiqueMakowski

go/nogo task example running well on my mac v10.11

hndr91 avatar Aug 22 '17 07:08 hndr91

@hndr91 - What mac hardware did you use?

cMadan avatar Aug 24 '17 05:08 cMadan

I'm using macpro 13 model mid-2012 running on el capitan @cMadan

hndr91 avatar Aug 24 '17 06:08 hndr91

Hmm, I would've guessed the issue was related to my hardware being older, but it's the other way around... Macbook Pro 15", Late 2013, also El Capitan

cMadan avatar Aug 25 '17 00:08 cMadan

@cMadan As neuropsydia is built on top of pygame, does this minimal pygame code works?

import pygame
from pygame.locals import *

pygame.init()


screen = pygame.display.set_mode((640, 480))

pygame.draw.rect(screen, (128, 128, 128), (0, 0, 20, 20))
pygame.draw.rect(screen, (0, 128, 255), (40, 200, 30, 20))
pygame.draw.rect(screen, (255, 255, 0), (200, 20, 20, 80))

pygame.display.update()

pygame.time.wait(5000)
pygame.display.quit()

It should draw 3 rectangles on a screen, wait for 5 s and then quit.

DominiqueMakowski avatar Aug 25 '17 05:08 DominiqueMakowski

maybe my gist can be helpful. I forgot, maybe I had problem with pygame too back then.

hndr91 avatar Aug 25 '17 06:08 hndr91

Minimal pygame does work fine

cMadan avatar Nov 10 '17 20:11 cMadan

Update: it worked on MacOS Yosemite.

Installation steps were:

  1. install anaconda with python 3.6
  2. open macOS terminal
  3. (run source activate root, altough I'm not sure about that step, better try first without it)
  4. run pip install neuropsydia

DominiqueMakowski avatar Dec 14 '17 17:12 DominiqueMakowski

Neuropsydia.py doesn't work with linux (Ubuntu 20.04.2 LTS). pygame is ok

import neuropsydia as n
AttributeError: module 'ctypes' has no attribute 'windll'

jbcoffin avatar May 03 '21 09:05 jbcoffin