Author Topic: No module named pinproc  (Read 5219 times)

Snux

  • Wizard
  • *****
  • Posts: 779
  • Mark Sunnucks
    • View Profile
No module named pinproc
« on: March 23, 2012, 07:07:51 AM »
So, my previous machine I was using for development basically gave up following a nasty virus.  So I'm now reinstalling everything from scratch and things have changed a little over the last year or so since I did it last.

I think I've got everything and I'm not trying to build/compile anything, I just need the vanilla installs, so this is likely something stoopid.  I've used the latest 1.1 installer for libpinproc.

After installing everything, I thought I'd just try a simple "procgame config" from the scripts folder.  I get the following output :

Traceback (most recent call last):
  File "E:\Python26\Scripts\procgame-script.py", line 8, in <module>
    load_entry_point('pyprocgame==1.0.1', 'console_scripts', 'procgame')()
  File "e:\python26\lib\site-packages\pkg_resources.py", line 318, in load_entry
_point
    return get_distribution(dist).load_entry_point(group, name)
  File "e:\python26\lib\site-packages\pkg_resources.py", line 2221, in load_entr
y_point
    return ep.load()
  File "e:\python26\lib\site-packages\pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build\bdist.win32\egg\procgame\tools\__init__.py", line 3, in <module>
    # $Id$
ImportError: No module named pinproc

The main suspect is that following the 1.1 libpinproc install, running the setup from the resulting ext folder fails with invalid program error (see attached screenprint).  This is just regular old 32 bit WinXP.


Hints and tips welcome, I want to get back to the Tomcat but my brain has been out of PROC mode for too long otherwise I'd be able to remember all this!!


thanks
Mark
« Last Edit: March 23, 2012, 08:02:32 AM by MarkS »
F14 Tomcat - Second Sortie

Jimmy

  • Administrator
  • *****
  • Posts: 186
    • View Profile
Re: No module named pinproc
« Reply #1 on: March 23, 2012, 08:03:59 AM »
Mark,

Sorry you're having trouble. Just to make sure since this is a fresh XP install, you may be missing the Visual C++ runtime libraries which is technically what is packaged inside our installer in order for the installation to run. You may want to download the Visual C++ 2005 redistributable at http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=5638

If that doesn't work, please let us know. I am turning up an XP Virtual Machine now so I can test this, but that looks to be what you're missing.

Thanks,
Jimmy

Snux

  • Wizard
  • *****
  • Posts: 779
  • Mark Sunnucks
    • View Profile
Re: No module named pinproc
« Reply #2 on: March 23, 2012, 08:23:43 AM »
Hi Jimmy,

Tried installing the runtimes, then uninstalling libpinproc (from Control Panel) and reinstalling.  It looks like it runs fine (as it did before), the USB drivers etc get installed etc.

Should I still need to manually run the exe from the ext\python folder afterwards?  I still get the error trying to run that....

I could always pull all the sources, install the compilers and what-not and build everything (like I did on the old machine) but I was hoping to keep it nice and simple this time!! :D
F14 Tomcat - Second Sortie

Snux

  • Wizard
  • *****
  • Posts: 779
  • Mark Sunnucks
    • View Profile
Re: No module named pinproc
« Reply #3 on: March 23, 2012, 08:30:20 AM »
Getting closer - just checked the Windows logs..

Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error was The referenced assembly is not installed on your system.
F14 Tomcat - Second Sortie

Snux

  • Wizard
  • *****
  • Posts: 779
  • Mark Sunnucks
    • View Profile
Re: No module named pinproc
« Reply #4 on: March 23, 2012, 08:33:56 AM »
That was it.  It's the Visual C++ 2008 it needed, not 2005.  All is well and good now.  Probably worth calling out in the install notes.

thanks for the digging in so quick :-)
F14 Tomcat - Second Sortie

Jimmy

  • Administrator
  • *****
  • Posts: 186
    • View Profile
Re: No module named pinproc
« Reply #5 on: March 23, 2012, 08:48:11 AM »
Excellent debugging, Mark!

I will snag the 2008 redist. Really honestly the installer should invoke the module installer during the install process. I may do some testing and reconfigure all of that. Feel free to add those notes to the wiki as well!

Much appreciated, now to see if we can make it easier for the next person!

Pieter

  • Jr. Member
  • **
  • Posts: 27
    • View Profile
    • Pinballzone.nl
Re: No module named pinproc
« Reply #6 on: June 12, 2012, 05:09:53 PM »
I'm having trouble installing with pinproc-1.1.win32-py2.6.exe

Everything looks fine until I start a game.
Then I get the error: "ImportError: DLL load failed: The specified module could not be found."

Win7-64bit.
Tried installing yesterday on my new netbook.
I checked the forum, copied the ft2xx.dll and ft2xx.h to proper maps.
Did three complete new fresh installs and finally got it working when i installed the old pinproc-1.0 over the new one.

Anybody else got this with win7?
« Last Edit: June 12, 2012, 05:13:53 PM by Pieter »

ufopinball

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: No module named pinproc
« Reply #7 on: July 08, 2014, 01:16:57 AM »
Dunno if it's okay to resurrect an old thread, but I'm having the same problem.

Trying to install on Windows 7 SP1 32-bit OS.

Start with a clean OS
Install VS2008 SP1 Redistributable files (I actually also tried VS2005 and VS2008)
Run ProcToolkit.exe
Test with command line:

C:\Python26>C:\Python26\python.exe C:\cactuscanyon\cc.py fakepinproc
Traceback (most recent call last):
  File "C:\cactuscanyon\cc.py", line 29, in <module>
    from game import *
  File "C:\cactuscanyon\game.py", line 25, in <module>
    from procgame import *
  File "C:\cactuscanyon\procgame\dmd\__init__.py", line 10, in <module>
    from dmd import *
  File "C:\cactuscanyon\procgame\dmd\dmd.py", line 1, in <module>
    import pinproc
ImportError: No module named pinproc

Any ideas on what else I should try, or what step I may have missed?

Thanks a bunch!!
Bill

Jimmy

  • Administrator
  • *****
  • Posts: 186
    • View Profile
Re: No module named pinproc
« Reply #8 on: July 08, 2014, 12:08:12 PM »
Hey Bill,

Did the installer come up with any errors or anything?

Generally the toolkit takes a while to complete because it has to download minGW and such. Was your computer connected to the internet?

Jimmy

ufopinball

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: No module named pinproc
« Reply #9 on: July 08, 2014, 05:15:21 PM »
It ran everything smoothly as far as I can tell.  Lots of downloads, installed the drivers, etc.  Is there an specific error log I should be looking at?  There were no message boxes of note...

Nate

  • Wizard
  • *****
  • Posts: 161
    • View Profile
Re: No module named pinproc
« Reply #10 on: July 08, 2014, 08:33:44 PM »
I was getting that error on linux, ended up being an issue with the FTDI driver... No idea if it's what's causing your problems though.