Installing 1.85.6 - psychojs error on install

I’m getting an error when trying to install PsychoPy 1.85.6 (Installing 1.85.3 from PyPy w/ pip works fine):

Mah Mac~/Downloads$ pip install PsychoPy-1.85.6.zip
Processing ./PsychoPy-1.85.6.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “/private/var/folders/19/3brkp6_j7ll93m9_dxjf6f440000gn/T/pip-DjBlHQ-build/setup.py”, line 14, in
shutil.make_archive(os.path.join(‘psychopy’, ‘psychojs’), ‘zip’, ‘psychojs’)
File “/Users/glupyan/anaconda2/lib/python2.7/shutil.py”, line 537, in make_archive
os.chdir(root_dir)
OSError: [Errno 2] No such file or directory: ‘psychojs’


Same error when running setup.py:

Mah Mac~/Downloads/PsychoPy-1.85.6$ python setup.py install
Traceback (most recent call last):
File “setup.py”, line 14, in
shutil.make_archive(os.path.join(‘psychopy’, ‘psychojs’), ‘zip’, ‘psychojs’)
File “/Users/glupyan/anaconda2/lib/python2.7/shutil.py”, line 537, in make_archive
os.chdir(root_dir)
OSError: [Errno 2] No such file or directory: ‘psychojs’

Thanks!

1 Like

I have the same problem with 1.90.dev2:

C:\WINDOWS\system32>pip install psychopy==1.90.dev2
Collecting psychopy==1.90.dev2
  Using cached PsychoPy-1.90.dev2.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\audach~1\appdata\local\temp\pip-build-d0cndf\psychopy\setup.py", line 61, in <module>
        shutil.make_archive(os.path.join('psychopy', 'psychojs'), 'zip', 'psychojs')
      File "c:\python27\lib\shutil.py", line 561, in make_archive
        os.chdir(root_dir)
    WindowsError: [Error 2] 系統找不到指定的檔案。: 'psychojs'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\audach~1\appdata\local\temp\pip-build-d0cndf\psychopy\

Please try:

Unzip PsychoPy-1.85.6.zip (This makes a “PsychoPy-1.85.6” folder)
Download psychojs-master.zip from GitHub (https://github.com/psychopy/psychojs)
Unzip psychojs-master.zip to the unzipped “PsychoPy-1.85.6” folder
Rename the unzipped folder “psychojs-master” to “psychojs”
(Now you can see “docs”, “psychojs”, “psychopy” and “PsychoPy.egg-info” folders on the same folder)
Make PsychoPy-1.85.6.zip again
(Now this zip file contains psychojs folder that the setup process can find)

Then, try “pip install PsychoPy-1.85.6.zip” again. I have managed to install it this way.

The problem with 1.90.dev2 from “audachang” seems the same, so I believe this could fix it too though I haven’t tested.

I hope it works well.