How to instal a working Python27 on Windows 10

298 views
Skip to first unread message

Per Rose

unread,
Oct 25, 2017, 4:51:53 AM10/25/17
to Raspberry Pi Film Capture
I have Pyton27 installed on windows 10, and I have the Client/Server software functioning perfectly.

I get the images placed on the client or my Synology NAS as I want them to.

I saw that you Jean-Luc, have installed winPyton, and that is bad, I tried it, and nothing worked.

I have made this guide for installing Pyton27, including all necessary subprogram on Windows 10, in order to get the Client/Server software to work correctly.

As I am still in the learning curve with Github, I have temporarely placed the necessesary downloads on my WEB-Server.

Joe, you may, if you want to, include this guide on your own Github.

1. Even if you are having Windows 10 64Bit, use 32Bit install for ALL

2. Install Pyton27, download it here www.tordenvejr.nu/8mm/python-2.7.14.msi

3. Enter Windows CMD mode

4. Go to the Python27/scripts directory (C:\python27\scripts)

5. Write “pip install -U numpy”

6. Numpy should now be installed

7. Install PyQt4 download it here www.tordenvejr.nu/8mm/PyQt4-4.11.4-gpl-Py2.7-Qt4.8.7-x32.exe

8. Go to the Python27/scripts directory (C:\python27\scripts)

9. Write “pip install matplotlib”

10. Download www.tordenvejr.nu/8mm/opencv-3.3.0-vc14.exe

11. Execute the exe file

12. Now go to this tutorial on YouTube https://www.youtube.com/watch?v=iWoStqsCs6o

13. Copy Joe’s Client PY files to your local drive (any place)

14. Open Idle

15. Open the fcClient.py

16. Start the Server software on the Raspberry PI

17. Run the fcClient.py from Idle

Voila – It works. (I expect)

If you have any problems with my tutorial, do not hesitate to forward me the problem.

Regards
Per Rose

Jean-Luc NAVARRO

unread,
Oct 25, 2017, 7:33:47 AM10/25/17
to Raspberry Pi Film Capture
Thank you Per Rose for this tutorial.

Something remains wrong on my installation...
More investigations seem necessary !

Regards
Jean-Luc

Per Rose

unread,
Oct 26, 2017, 4:15:49 AM10/26/17
to Raspberry Pi Film Capture
I do not know if you got my answer yesterday, but here it is again.

Jean-Luc, have you changed the server_ip variable in the Client config.py file, originally it writes something like Raspberry.local.

My server_ip variable looks like this: server_ip = "192.168.1.242", and I have made this IP a fixed IP for this particular Raspberry PI.

Regards,
Per

Joe Herman

unread,
Oct 26, 2017, 11:35:02 AM10/26/17
to Raspberry Pi Film Capture
Per Rose, thank you for this. It's very helpful, as I have no experience with this on windows yet.  I will add it to the wiki (with your comments below about IP addresses)

Per Rose

unread,
Oct 26, 2017, 11:48:59 AM10/26/17
to Raspberry Pi Film Capture
Somehow when going via Gmail, it does not appear here in the Group.

Jean-Luc, I have copyed your answer below

Hello Per

I’ve received your answer, sorry for the delay (I’m in France).

Thank you for your help !
I would like to use Joe’s software but but there are some problems.

At first, I’ve strictly followed your instructions.

What happens now :

SERVER ON RASPBERRY PI 3 (RASPBIAN STRETCH, PYTHON 2.7.13)

On start, program halt just after debug infos « Start » then « MotorDriverInit » with a window « Kill ? » OK/Cancel options.

Why this event ?
If I continue, program is waiting connection.

CLIENT ON DESKTOP PC WIN 10 + IDLE PYTHON 2.7.13

Program runs, and I can display preview, adjust camera settings, no problem.
I can ask the motor to advance, go back, faster…

But when I try to run Capture, the first picture is taken, and no more…

Weird things :
Light command does not function correctly (was ok in precedent release)
I can’t change picture resolution, stripped pictures obtained (not a problem, but was ok in precedent release)

I don’t understand…

Thank you again
Regards
Jean-Luc

Per Rose

unread,
Oct 26, 2017, 11:59:27 AM10/26/17
to Raspberry Pi Film Capture
Jean-Luc,

I am actually situated in Denmark, so we are on same time-zone ;-) - But sometimes I stay up late, as I am on pension, so I do not need to get early up.

I have actually NOT tried the whole Client/Server yet, as my first issue was to see if the connections worked, which it as far as I could see, it does.

Over the next days/week, I am mounting the Stepmoter, in order to get it to work in the Projector. This will give me some more experience with how it works further.

The issue you describe with only getting 1 frame saved - matches my test without the Stepmotor.

It could look like an issue with your read switch, It looks to me like you do not get the next step, from closing the Read Switch, to get the stepmotor running for a new frame.

As I have to change the program in order to get it to work with Gears in stead of the Read Switch, I will look for an eventual explanation to your problem.

Btw. I get another message, when not having any stepmotor on, it says something like, now it is time to initiate the motors.

I think your problem lies in the first error message, which when you continue, kills the process that control the rotation.

As you say that you can manual forward and rewind the stepmotor, via the client, this shows you have contact to the stepmotors.

Check you Read Switch wiring.

I return when I get into my setup of the stepmotors.

Regards,
Per

Per Rose

unread,
Oct 26, 2017, 12:01:58 PM10/26/17
to Raspberry Pi Film Capture
Joe,

I have it with LINUX, like you have it with Windows.

I have been working in the Windows environment for more than 20 years, but only with LINUX in connection with Raspberry PI :-), so whenever I work with the Raspberry - Google is my friend.

Regards,
Per

Jean-Luc NAVARRO

unread,
Oct 26, 2017, 12:37:14 PM10/26/17
to Raspberry Pi Film Capture
Per,

I don't know how to search the problem. But I'm sure that my reed switch is ok.

I will wait your own tests Per, and I've seen that Joe is about to publish a new release running under Python 3 and PyQt5...

But I hope use this software!

Regards
Jean-Luc
Message has been deleted
Message has been deleted
Message has been deleted

Terry D

unread,
Sep 11, 2019, 7:28:09 PM9/11/19
to Raspberry Pi Film Capture
Okay I have tried this and found Python 2.7 no longer works since software has been updated on GitHub. 

Here is how I set it up Python in Windows 10:

1. Download latest Python 3.7.4 (x86-64): https://www.python.org/ftp/python/3.7.4/python-3.7.4-amd64.exe
2. Run Python installer select custom install path C:/Python37
3. Open command prompt
4. Install NumPy from cmd: pip install -U numpy
5. Install Matplotlib from cmd: pip install matplotlib
6. Install PyQt5 from cmd: pip install PyQt5
7. Install openCV from cmd: pip install opencv-python
9. Run fcClient.py
Reply all
Reply to author
Forward
0 new messages