Page 11 of Lesson 17 "python setup.py install. Everything went like clockwork till this page. Perhaps my "DOS" is a mite RUSTY but I simply cannot get the last section on this page to work. I downloaded the zip file from http://adafru.it/aZi and unzipped it using winzip. That produced the folder "pyserial-2.6.tar" that contains what appears to be the correct content. When I get the DOS prompt using Windows 7 I am stuck. My processor is 64 bit and I'm using Windows 7 service pack 1 with all updates. Please direct me as to how I should proceed at the "DOS" prompt. What exactly am I trying to do at this point. The instructions on page 11 simply says, "Use you Comamnd Prompt / Terminal session and "cd" into the pyserial-2.6 folder, then run the command: $ python setup.py install.
My unzipped "pyserial-2.6.tar folder" is in a sub directory C:Phil\Development\Library Downloads\ and my "Python program is in the primary directory of "C drive" , C:Python.
All I get is "syntax" errors so I obviously don't know what I'm doing here.
Arduino Lesson 17 Help
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- BeerCannon
- Posts: 85
- Joined: Fri Nov 16, 2012 9:16 pm
Re: Arduino Lesson 17 Help
The link you pasted takes me to a page to download a program called 7-Zip?
If you're following page 11 of the lesson 17 PDF file, you won't type or see the dollar sign ("$").
I'm guessing you need to ensure that the current directory is the location of your .tar file:
Try using the quotes.. it used to be necessary but Win7 seems to work without them. Also, I put a backslash after the C: because I'm assuming the "Phil" directory is off the C drive's root directory. If this is not the case, you'll need to navigate to the folder on your own or try this other likely path:
Next, at the command prompt, type:
That's about all I can offer for now.. post the exact error message you're getting and the command you typed when you received it. Or wait for brighter minds to respond..
If you're following page 11 of the lesson 17 PDF file, you won't type or see the dollar sign ("$").
I'm guessing you need to ensure that the current directory is the location of your .tar file:
Code: Select all
cd "C:\Phil\Development\Library Downloads"
Code: Select all
cd "C:\Users\Phil\Development\Library Downloads"
Code: Select all
python setup.py install
- CaptOldDog
- Posts: 2
- Joined: Sun Jan 06, 2013 5:07 pm
Re: Arduino Lesson 17 Help
OK ... I have that problem solved by going to the DOS "CMD" prompt in stead of using the Python terminal session. I don't understand the difference but it works from the "CMD" prompt. Thanks for your help
- BeerCannon
- Posts: 85
- Joined: Fri Nov 16, 2012 9:16 pm
Re: Arduino Lesson 17 Help
You're welcome. Glad to hear you got it working!
The CMD (command) prompt, on a Windows 7 system, is a relic from the DOS days, when it was a file called COMMAND.COM
Historically, its main job was to load programs from disk into the computer's RAM and then point the CPU chip to the starting point of the program so it could run. When the program was finished, the operating system would re-load COMMAND.COM and you'd be back at the command prompt again.
A program-loader such as this is called an executive.. because it executes programs. The programs that it loads have previously been converted into binary (ones and zeros--which is what your computer really understands) and stored on the disk that way.
COMMAND.COM also had some built-in features that didn't require it to load another program into memory.. most of these had something to do with the file system (list files, rename files, delete files, etc.).
Just what you've always wanted to know, right?
The CMD (command) prompt, on a Windows 7 system, is a relic from the DOS days, when it was a file called COMMAND.COM
Historically, its main job was to load programs from disk into the computer's RAM and then point the CPU chip to the starting point of the program so it could run. When the program was finished, the operating system would re-load COMMAND.COM and you'd be back at the command prompt again.
A program-loader such as this is called an executive.. because it executes programs. The programs that it loads have previously been converted into binary (ones and zeros--which is what your computer really understands) and stored on the disk that way.
COMMAND.COM also had some built-in features that didn't require it to load another program into memory.. most of these had something to do with the file system (list files, rename files, delete files, etc.).
Just what you've always wanted to know, right?
-
- Posts: 1
- Joined: Thu May 30, 2013 10:46 am
Re: Arduino Lesson 17 Help
hey,
i have problem with Lesson #17, when i try run "movement.py" i have some errors:
Traceback (most recent call last):
File "C:\Python27\movement.py", line 12, in <module>
ser = serial.Serial('COM8', 9600)
File "C:\Python27\lib\site-packages\serial\serialwin32.py", line 31, in __init__
SerialBase.__init__(self, *args, **kwargs)
File "C:\Python27\lib\site-packages\serial\serialutil.py", line 261, in __init__
self.open()
File "C:\Python27\lib\site-packages\serial\serialwin32.py", line 59, in open
raise SerialException("could not open port %s: %s" % (self.portstr, ctypes.WinError()))
SerialException: could not open port COM8: [Error 2] Nie możn odnaleźć określonego pliku.
thanks,
i have problem with Lesson #17, when i try run "movement.py" i have some errors:
Traceback (most recent call last):
File "C:\Python27\movement.py", line 12, in <module>
ser = serial.Serial('COM8', 9600)
File "C:\Python27\lib\site-packages\serial\serialwin32.py", line 31, in __init__
SerialBase.__init__(self, *args, **kwargs)
File "C:\Python27\lib\site-packages\serial\serialutil.py", line 261, in __init__
self.open()
File "C:\Python27\lib\site-packages\serial\serialwin32.py", line 59, in open
raise SerialException("could not open port %s: %s" % (self.portstr, ctypes.WinError()))
SerialException: could not open port COM8: [Error 2] Nie możn odnaleźć określonego pliku.
thanks,
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Arduino Lesson 17 Help
The error is Polish for "Can't find that file", which means your computer has a problem finding I/O port COM8. Are you sure your Arduino is connected to the computer on COM8?
BTW - it's better to start a new topic than to add a comment to a thread that ended a couple months ago. Comments added to old threads are easier to lose in the shuffle.
BTW - it's better to start a new topic than to add a comment to a thread that ended a couple months ago. Comments added to old threads are easier to lose in the shuffle.
Please be positive and constructive with your questions and comments.