XPD: open-source keywin e-bike lab replacement

bigmoose said:
If I may ask you guys that were successful with this. Did you just load the setup per anpaza's instructions, and did it "just work" out of the box... or were you python experts?

The reason I ask, I was unsuccessful on an IBM laptop, I think because IBM squirreled away a hidden python installation for it's purposes. But I tried again on a fresh, unpolluted desktop and have not been able to get the GUI to open. I am likely lost in the woods... I don't think it's fair to bog this thread down with beginner python problems... but perhaps someone could IM me if there were "intuitive tricks" needed to get it to run. Stuff that is obvious to a successful python user on XP pro, but unknown to a neophyte.
Dave are you just trying to get the XPD app to run? Or are you trying to open it up to crack the code it self?

I had problems at first. But eventualy I got it on my windows 7 based laptop.
 
Arlin, Just trying to get it to run as a simple user. The dos window just flashes and "nothing" appears to happen. Never have been able to get the GUI to open on either computer, which makes me think I am missing some "intuitive" step.
 
bigmoose said:
Arlin, Just trying to get it to run as a simple user. The dos window just flashes and "nothing" appears to happen. Never have been able to get the GUI to open on either computer, which makes me think I am missing some "intuitive" step.
I think to get mine to run I needed the usb-serial adapter plugged into the laptop the first time other wise I could not get it to open try that. And its best to have it plugged into your computer before opening it as well because it will select the wright com port automatically for you.
 
bigmoose said:
Arlin, Just trying to get it to run as a simple user. The dos window just flashes and "nothing" appears to happen. Never have been able to get the GUI to open on either computer, which makes me think I am missing some "intuitive" step.

Strange

I have made it work on two laptops, a Win XP virtual machine and two different farm workshop computers, all running basic Win XP installations of various Service pack levels, and all installs just worked 'out of the box'

I know this sounds just too basic and even condescending to ask, but here goes any way...Did you read and follow his instructions from the prerequisites instal folder ?

Are you maybe running 64 bit? seem to remember that had a bearing on it too..if not for this, some other Python app I had, had 64 bit issues
 
XPD runs in all windows flavors I've tested... being x86 or x64 (Xp, Vista, 7)
Bigmoose I think you are missing some one of the pre reqs. Try to reinstall the pre reqs and see if it "works".

The order should be this (just do a standard, next, next, finish in each install)

python-2.7.1
pygtk-all-in-one-2.22.6.win32-py2.7
pyserial-2.5.win32

After that XPD should run without issues. Unless you are using a guess account or something alike.
 
Ok, we cleaned everything up and reinstalled. Did it in that order. This time I let it all go into the default directory it wanted to in the root as C:\Python27 Did it in this order and everything installed ok.
python-2.7.1
pygtk-all-in-one-2.22.6.win32-py2.7
pyserial-2.5.win32

This time I moved the xpd-0.2.2 folder so it is a subfolder of Python27.

I double click on xpd.pyw and nothing.

I try to make the shortcut in the readme.txt Note I don't have "object" I assume it is "Target" in XP Pro?
Again, nothing happens.

When I enter it as a command line in the DOS window I get this error, at the bottom.
View attachment 1

Here is the search for pygtk within my Python27 folder:
Error3.jpg
 
Well if double clicking on the actual file won't run it, then creating a shortcut won't make it.
Am interested where you got the instructions about making the shortcut. I can't see that in the Readme file I have

may be you need to re download the pre req folder?

I have the actual xpd.pyw file and folder on the desktop...where I put it, it just works
Screen shot 2011-12-27 at 18.16.17.png

even if I create a shortcut, I do not get the "-E' flag you seem to have in your shortcut properties box
 

Attachments

  • Screen shot 2011-12-27 at 18.17.23.png
    Screen shot 2011-12-27 at 18.17.23.png
    20.2 KB · Views: 1,807
Check your 'Add Remove programs' window in Control panel to see that GTK has installed

 
Installed programs shows PyGTK there:
Error4.jpg
I had to add Python27 manually to the path variable. Also tried to add a path to what I thought was the critical pygtk files to no luck.

Still cannot find PyGTK after uninstalling it, and downloading a fresh file from the source Neil recommended. Showing same error screen in DOS window:
Error5.jpg

Can someone check and show their path variable for a system that "works?"
 
from the System Properties, Advanced tab, Environment Variables button
Path = %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Smart Projects\IsoBuster

no mention of python at all..

how long is your Path currently

The path statement length limit is 1024 characters, 2048 in SP2.
http://support.microsoft.com/default...b;en-us;832978

just booted up the laptop, and there is not mention of ptyhon in the path there either, or any VMware Xp machine I have running
 
489 characters in path currently. It wouldn't find python until I added c:\python27 to the path...

Raats, something didn't go right on both my laptop and this desktop...
 
Found this..not mch help I know, but at least yu are not alone

Common problems

Installer complains pygtk is missing
This is a very common error to see when all dependencies are not installed or installed correctly. Please make sure that each of the packages required have installed correctly, and re-boot the computer prior to running the GRAMPS installer. We often see users attempting to use other packages to satisfy these requirements that omit something necessary (e.g., glade) which produce this error.

In rare occasions, the installer will complain that pygtk is not installed even though everything is correct. Canceling and re-running the installer seems to fix this problem, although if it happens repeatedly, the error is the more severe situation discussed above. (Anyone know why? Please tell us on the gramps-windows email list.)
GTK+ installer error
If you already have GTK+ installed, perhaps because you have installed The GIMP, Pidgin, or Gnu Cash, the GTK+ installer will not be able to write to some files if one of those applications is running. If you see errors with the GTK+ installer, select Cancel, shut down the other GTK+ applications and run the installer again. (This issue has been reported as GTK+ Installer doesn't handle locked files well to the kind people who make the GTK+ installer for windows.)
ImportError: DLL load failed:


maybe try a boot to safe mode, uninstall everything.
re boot.
Run something like CCleaner,
re boot
run ccleaner again, cleaning registry etc
Reboot then install each part of the pre requ folder again with a re boot between each install
 
Is it worth maybe trying an earlier version of XPD..go back to the earlier one to start with..0.1.0
 
Neil is on rampage.. hahaha...
could be windows UAC and a guest account exploiting the fun.
 
Thankfully this UAC shit is only a vague rumour to me. I went over to the dark side a few years ago...my computing hardware now has a little fruit logo on it. Thankfully never used Vista or 7
 
gensem said:
Neil is on rampage.. hahaha...
could be windows UAC and a guest account exploiting the fun.

Yes he is! After this machine gets trashed, I am going to run out into the snow with my bottle of booze and rest under a tree. Perhaps make a fire in the Tipi... feed a deer or something non technical... :p
NeilP said:
Is it worth maybe trying an earlier version of XPD..go back to the earlier one to start with..0.1.0

Will do! I am uninstalling again, will run CCleaner, re-install and re-boot after each segment. (I did not do that previously on either machine. I installed them back to back to back, then rebooted.

NeilP said:
not something basic like your user rights is it?
Don't think so, I have admin rights on both machines...
 
bigmoose said:
After this machine gets trashed, I am going to run out into the snow with my bottle of booze and rest under a tree. Perhaps make a fire in the Tipi... feed a deer or something non technical... :p

Better still, feed the deer the booze, make a fire with the laptop and Lipo and upload the result to youtube.

It is now 2100 hrs here, and I am on an early shift tomorrow, so 0500 start..so off to bed now. I'll look in in the morning and see what has happened

As a thought...you could try and use something like Virtual Box create a Virtual Xp machine on your current machine and try a clean install of just the Python and XPD on the Virtual machine
 
OK we have a solution!! Thanks Neil, with your help I looked in the right place.

Ok, the answer is in a russian thread http://electrotransport.ru/ussr/index.php/topic,10396.36.html Post #38 by our initiator anpaza who goes by zap on that board. My russian is very bad, but Google translator is very good.

The problem is a dll named zlib1.dll there are TWO of them sometimes floating around. Some fowled up previous installations placed one in C:\WINDOWS\system32\zlib1.dll in my case this was an old version, 1.2.2.0

Then in the directory C:\Python27\Lib\site-packages\gtk-2.0\runtime\bin\zlib1.dll THERE IS ANOTHER ONE with the same name, but version 1.2.5.0

What happens is the computer preferentially goes to C:\WINDOWS\system32\zlib1.dll instead of the python path and loads an out of date dll.

Solution is to save what is in C:\WINDOWS\system32\zlib1.dll as zlib1OLD.dll just in case something else important breaks, and copy the newer version from C:\Python27\Lib\site-packages\gtk-2.0\runtime\bin\zlib1.dll TO C:\WINDOWS\system32\zlib1.dll I also tried just deleting C:\WINDOWS\system32\zlib1.dll and that worked also (after saving it as zlib1OLD.dll just in case)!!

What were the chances of me figuring that out alone? . .. ha, zero, nada, none!

Now my installation works just like you guys said it would! WHOOPPEE! :D I'm a happy man! :D Thanks to anpaza who is the one that figured this out for his Russian pal/mate/friend who was having the same problem that I was. This fix corrected the same problem on the laptop.

My apologies for a two page diversion on this great software to fix python problems... my hope is it will help someone else with this obscure problem.
 
Good work Bigmoose on reporting back on the solution - everyone should have this software going, it is so much better than the stock software in my opinion.
 
Yup just flashed a 12 fet with it! It the best thing other then C programing and dspic chips ;)
 
Well that is good news
I have had a few hours sleep and it kept going over in my head
I was thinking the next option was going to be Revo Unistaller and a little app called DLL Explorer, it searches the entire system for DLL files and duplicates, originally designed as a clean up tool to rid the PC of unwated duplicates, if is also good for cases like this
Glad you got it sorted
 
Back
Top