Actions

Difference between revisions of "Programming"

From ACL@NCU

Line 21: Line 21:
** [https://groups.google.com/forum/?fromgroups#!searchin/psychopy-users/avbin.dll$20fail$20to$20load/psychopy-users/Hk5nlVAOqYE/_1zLkcU-ZCMJ More issue with pyglet/avbin]([[Pyglet_avbin_problem|Details]])
** [https://groups.google.com/forum/?fromgroups#!searchin/psychopy-users/avbin.dll$20fail$20to$20load/psychopy-users/Hk5nlVAOqYE/_1zLkcU-ZCMJ More issue with pyglet/avbin]([[Pyglet_avbin_problem|Details]])


** [http://goo.gl/9oPkyy the "Double flip" problem for the setColor method of screen]
** [http://goo.gl/9oPkyy the "Double flip" problem for the setColor method of screen]
Actually I wouldnt use the screen setColor option - the way it works (using glClearColor) it only has an effect one frame later than expected.
Actually I wouldnt use the screen setColor option - the way it works (using glClearColor) it only has an effect one frame later than expected.



Revision as of 02:11, 23 April 2014

Python

TKinter is used in easygui for creating GUIs. Somehow when installing PyInstaller, the system will use the python in Panda package if it is installed on the system, which may not have all the required modules. Therefore, a quick solution is to first remove all Panda installations on the system, and then install the PyInstaller package again. There is sometimes also a warning saying that:

WARNING: file already exists but should not: C:\Users\username\AppData\Local\Temp\_MEI86402\Include\pyconfig.h

This is caused by repetitive importing of the pyconfig.h in the current release of PyInstaller. To fix it, one can manually "patch" the problem by adding the following lines into the *.spec file (generated after using python makespec.py <yourfile.py>):

for d in a.datas:
    if 'pyconfig' in d[0]: 
        a.datas.remove(d)
        break

Not as convenient as one would hope, but it works (see similar issue here).


Actually I wouldnt use the screen setColor option - the way it works (using glClearColor) it only has an effect one frame later than expected.

  • Using Chinese Fonts in python scripts (details)
  • Problem in installing packages
    • "error: Unable to find vcvarsall.bat"[1] when running
pip install cffi

(details)

Matlab

Version Control