Re: [Tutor] Pyserial and invalid handle

2010-12-22 Thread Cheeng Shu Chin
Hi all, Last few days ago, I facing the same issue with my windows 7 64bit... it work well with windows XP 32-bit... FYI, I’m using python 2.6 amd64 bit as my core programming tools currently, I’m start study/learn some arduino robotic and rewrite Python-Arduino API I just do a quick anatomy t

Re: [Tutor] Pyserial and invalid handle

2010-12-02 Thread Terry Carroll
On Wed, 1 Dec 2010, Walter Prins wrote: But whatever the case may be, suffice it to say I've reproduced your issue on my Win7 64bit box, and then resolved it by installing the PyWin32 modules. I'd like to put in a plug for Activestate Python here. Activestate has a free distribution of Pytho

Re: [Tutor] Pyserial and invalid handle

2010-11-30 Thread John Smith
On 11/30/2010 7:27 PM, Adam Bark wrote: On 01/12/10 01:00, John Smith wrote: Hi, Walter - I got pywin32-214.win32-py2.7.exe because I have the Intel i7 (I'm guessing that the AMD versions are for the AMD processor). However, all of the exe offerings have the same "Python not found in registry"

Re: [Tutor] Pyserial and invalid handle

2010-11-30 Thread Adam Bark
On 01/12/10 01:00, John Smith wrote: Hi, Walter - I got pywin32-214.win32-py2.7.exe because I have the Intel i7 (I'm guessing that the AMD versions are for the AMD processor). However, all of the exe offerings have the same "Python not found in registry" problem that started this whole thing

Re: [Tutor] Pyserial and invalid handle

2010-11-30 Thread John Smith
On 11/30/2010 6:23 PM, Walter Prins wrote: Hello John, (snip) Apparently so. Well, win32file is part of the PyWin32 package, which are a set of modules that wrap many Windows API's. I'm not sure why it was't/isn't required for PySerial 2.5 or whether as you say perhaps this module is include

Re: [Tutor] Pyserial and invalid handle

2010-11-30 Thread Walter Prins
Hello John, On 30 November 2010 16:57, John Smith wrote: > Hi, Walter - > > I did the above and then got this: > > >>> import serial > > > Traceback (most recent call last): > File "", line 1, in >import serial > File "E:\Python27\lib\site-packages\serial\__init__.py", line 18, in > >

Re: [Tutor] Pyserial and invalid handle

2010-11-30 Thread John Smith
On 11/30/2010 10:37 AM, Walter Prins wrote: Hello John (snip) In any case, to fix it let's delete all instances of pySerial and then install it again, as follows: 1.) Open up your Python "site-packages" folder in Windows Explorer, e.g. open up: E:\Python27\lib\site-packages 2.) Delete any fol

Re: [Tutor] Pyserial and invalid handle

2010-11-30 Thread Walter Prins
Hello John On 29 November 2010 21:44, John Smith wrote: > Hi, Walter - > > Thanks for all the research. This was my second attempt at installing the > 2.4 version. I did it thus: > > E:\Python27\pyserial-2.4>..\python setup.py install > standart distutils > running install > running build > ru

Re: [Tutor] Pyserial and invalid handle

2010-11-29 Thread John Smith
On 11/29/2010 9:41 PM, Rance Hall wrote: On Mon, Nov 29, 2010 at 8:21 PM, John Smith wrote: On 11/29/2010 5:56 PM, Emile van Sebille wrote: (snip) Hmmm... any chance you don't have administrative rights on the account performing this? I never got to Win7 (having stopped at XP) but I know it'

Re: [Tutor] Pyserial and invalid handle

2010-11-29 Thread Rance Hall
On Mon, Nov 29, 2010 at 8:21 PM, John Smith wrote: > > On 11/29/2010 5:56 PM, Emile van Sebille wrote: > (snip) >> >> Hmmm... any chance you don't have administrative rights on the account >> performing this? I never got to Win7 (having stopped at XP) but I know >> it's got a reputation for excess

Re: [Tutor] Pyserial and invalid handle

2010-11-29 Thread John Smith
On 11/29/2010 5:56 PM, Emile van Sebille wrote: (snip) Hmmm... any chance you don't have administrative rights on the account performing this? I never got to Win7 (having stopped at XP) but I know it's got a reputation for excessive permission asking. You're right about that. It's like Win7 is

Re: [Tutor] Pyserial and invalid handle

2010-11-29 Thread Emile van Sebille
On 11/29/2010 3:25 PM John Smith said... On 11/29/2010 4:20 PM, Emile van Sebille wrote: On 11/29/2010 1:44 PM John Smith said... But, when I tried it in Python, I got the same as before: >>> import serial >>> ser = serial.Serial(0, timeout = 1) out of curiosity, if you change the timeout

Re: [Tutor] Pyserial and invalid handle

2010-11-29 Thread John Smith
On 11/29/2010 4:20 PM, Emile van Sebille wrote: On 11/29/2010 1:44 PM John Smith said... But, when I tried it in Python, I got the same as before: >>> import serial >>> ser = serial.Serial(0, timeout = 1) out of curiosity, if you change the timeout above to 5 >>> ser Serial(port='COM1

Re: [Tutor] Pyserial and invalid handle

2010-11-29 Thread Emile van Sebille
On 11/29/2010 1:44 PM John Smith said... But, when I tried it in Python, I got the same as before: >>> import serial >>> ser = serial.Serial(0, timeout = 1) out of curiosity, if you change the timeout above to 5 >>> ser Serial(port='COM1', baudrate=9600, bytesize=8, parity='N', stopb

Re: [Tutor] Pyserial and invalid handle

2010-11-29 Thread John Smith
On 11/28/2010 8:06 PM, Walter Prins wrote: John, (snip stuff) Ugh, you're probably not going to like this. I've done some googling and it appears this may be a 64-bit issue with the "ctypes" module... apparently "64-bit ctypes can only import 64-bit libraries". See here: http://ur.ly/vSMQ Th

Re: [Tutor] Pyserial and invalid handle

2010-11-28 Thread Walter Prins
Also note this link: http://ur.ly/vVU9 It confirms that PySerial 2.4 works fine on Windows 7 64 bit. (I've also just downloaded and checked that installing pyserial 2.4 replaces the existing pyserial and it does on my Python installation.) Walter ___ T

Re: [Tutor] Pyserial and invalid handle

2010-11-28 Thread Walter Prins
John, On 28 November 2010 15:55, John Smith wrote: > Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] > on win32 > Type "copyright", "credits" or "license()" for more information. > > >>> import serial > >>> ser = serial.Serial('com1', timeout = 5) > >>> x = ser.read() >

Re: [Tutor] Pyserial and invalid handle

2010-11-28 Thread John Smith
On 11/28/2010 10:57 AM, Emile van Sebille wrote: On 11/28/2010 7:55 AM John Smith said... Can anybody tell me why the handle below is invalid? I'm running Win7. TIA, John Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32 Type "copyright", "credits" or "licens

Re: [Tutor] Pyserial and invalid handle

2010-11-28 Thread Emile van Sebille
On 11/28/2010 7:55 AM John Smith said... Can anybody tell me why the handle below is invalid? I'm running Win7. TIA, John Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> import serial >>>