Author Topic: Installation errors  (Read 4606 times)

briancox

  • Full Member
  • ***
  • Posts: 45
    • View Profile
Re: Installation errors
« Reply #15 on: May 23, 2015, 04:15:12 PM »
Anyone figure this out yet?

Also getting this error when trying to install on a 64-bit machine (Surface Pro 3 with Windows 10).

Does anyone have pre-compiled binaries for this module? That would seem to solve the problem instead of forcing it to compile during installation.

Any help would be appreciated, this seems like a major problem going forward for anyone on Windows.

Thanks!

BC

MOcean

  • P3 Developers
  • *
  • Posts: 822
  • Michael Ocean
    • View Profile
Installation errors
« Reply #16 on: May 24, 2015, 09:59:48 PM »
If you've run the installer and it has failed, there's a few things you can check to see what you're missing.  Links are for Windows:

If you've run the One-Click installer on Windows but it failed, leaving you with errors after import pinproc, jump right to #6. If that doesn't work you can work backwards.

If you feel like the installer failed early for some reason you may want to step through all of these

1: Check for Python 2.6, 32bit
Open up a command-line (Win-R, type cmd.exe, press enter)
type
Code: [Select]
python and press enter

This should run python. 

If you have python installed, python will be launched and you will see something along the lines of this:
Code: [Select]
C:\Users\Michael>python
Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

Note the Python version 2.6.6 --you want 2.6.x installed.  Not 2.7 (even-though it does seem to work..).  Further down the line you see 32 bit.  You should see 32 bit and NOT 64 bit.  Good.  Jump to 2.

If you see that python is not a registered command or file name, or the wrong version, you need to manually install Python 2.6, 32 bit for windows.  https://www.python.org/ftp/python/2.6.6/python-2.6.6.msi

2: Check for Pygame 1.9.1 for Python 2.6, 32bit
on the python command line '>>>' you should be able to import pygame.  Type:

Code: [Select]
>>> import pygame


Note, you don't actually type the >>>

If it succeeds, it will do so silently.  Seeing nothing back means it was installed successfully.  Skip to 3.

If it fails you will see something like 'ImportError: No module named pygame', if it fails. download and install pygame for 2.6, w32: http://pygame.org/ftp/pygame-1.9.1.win32-py2.6.msi

3: pyYAML

Code: [Select]
>>> import yaml Returning nothing means success.  Jump to 4.

If it fails you will see something like 'ImportError: No module named yaml', if it fails. download and install pyYAML 3.11 for py2.6, 32bit: http://pyyaml.org/download/pyyaml/PyYAML-3.11.win32-py2.6.exe

4: Python Imaging Library (PIL)

Code: [Select]
>>> from PIL import Image

Notice this is case-sensitive!  Returning nothing means success.  Jump to 5.

If it fails you will see something like 'ImportError: No module named PIL', if it fails. download and install PIL 1.1.7 for py26, win32: http://effbot.org/downloads/PIL-1.1.7.win32-py2.6.exe

5: FTDI dll
http://www.ftdichip.com/Drivers/CDM/CDM%20v2.12.00%20WHQL%20Certified.exe

Run this.  It installs all the DLLs you need.  among them is: ftd2xx.dll (32-bit and 64-bit).  One lives in c:\Windows\System32, the other lives in c:\Windows\SysWOW64.  I know what you're thinking, System32 is 32bit, right?  Of course not.  Thanks, Microsoft.  32-bit DLLs go in SysWOW64 and 64-bit ones go in System32.  Proof is here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa384187%28v=vs.85%29.aspx

Anyway, the point is, you may want to go into your SysWOW64 directory, copy ftd2xx.dll and copy it into somewhere you know is in your PATH system environment variable.. you shouldn't NEED to, but in times of desperation I have copied into a folder called c:\Python26\DLLs on the machines of others...

6. libpinproc

Download and run my libpinproc installer, here: https://dl.dropboxusercontent.com/u/254844/nopinproc-fix.exe

if it worked, you should be able to run:
Code: [Select]
>>> import pinproc

without errors
« Last Edit: May 24, 2015, 11:13:49 PM by MOcean »