Ask Your Question
0

Win7 Installation error: SETX, vcvarsall, pygame

asked 2013-02-15 11:21:56 -0600

jlredford gravatar image

updated 2013-02-15 11:22:55 -0600

I've tried both the superpack and individual installs, but am still having problems.

The first was that SETX failed. When I try:

SETX mypath foo;%PATH% ERROR: Invalid syntax. Default option is not allowd more than '2' times(s).

This might be because there are spaces in some of the directories in PATH. Saying

SET mypath=foo;%PATH%

works fine. I manually updated Path to: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\CMake 2.8\bin;C:\Python27\;C:\Python27\Scripts\;C:\OpenCV2.3\opencv\build\x86\vc10\bin\

and also added PYTHONHOME c:\python27\

The rest of the superpack installation finished, although there were some other errors in something called vcvarsall.bat

After this, SimpleCV did not appear on the program list. When I ran it from the DOS prompt I got:

simplecv Traceback (most recent call last): File "C:\Python27\Scripts\simplecv-script.py", line 8, in <module> loadentrypoint('simplecv==1.3', 'consolescripts', 'simplecv')() File "c:\python27\lib\site-packages\pkgresources.py", line 318, in loadentrypoint return getdistribution(dist).loadentrypoint(group, name) File "c:\python27\lib\site-packages\pkgresources.py", line 2221, in loadentrypoint return ep.load() File "c:\python27\lib\site-packages\pkgresources.py", line 1954, in load entry = import(self.modulename, globals(),globals(), ['name']) File "c:\python27\lib\site-packages\simplecv-1.3-py2.7.egg\SimpleCV_init_.py", line 3, in <module> from SimpleCV.base import * File "c:\python27\lib\site-packages\simplecv-1.3-py2.7.egg\SimpleCV\base.py", line 21, in <module> import pygame as pg ImportError: No module named pygame

The pygame installation apparently couldn't find Python. It splatted files all over c:\Include and c:\Lib\site-packages.

I tried a later version of pygame, pygame-1.9.2pre.win32-py2.7.exe, and it did install below Python27, as I would expect.

Now simplecv actually runs. I say: i = Image("Lenna") but then i.show() tells me that the image processing libraries aren't installed.

So my installation is hosed in multiple ways. Am I missing some key environment variable? Thanks for any help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-04-23 21:10:32 -0600

Sewar gravatar image

You probably need to install
Python Imaging Library (PIL)
, you can get it from its website.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-02-15 11:21:56 -0600

Seen: 542 times

Last updated: Apr 23 '13