News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python If you are about to ask a 'how do I do this in python' question, please try. Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost. So I built this arduino based box that communicates over USB with my computer using python. I move jobs and am trying to set it up again at my new workstation. I'm on windows 7.
Blackberry Security Camera View for iDVR-PRO CCTV DVRs. Follow these instructions remotely view your security cameras using iDVR-PRO 960H / AHD / H.264 CCTV DVRs from CCTV Camera Pros. Blackberry users can use the built-in web browser on their device to log in and view all of the cameras connected to their DVR. Mar 19, 2010 - CCTV Camera Pros iDVR and iDVR-PRO surveillance DVRs supports blackberry remote viewing as well as iPhone, iPad, and Android. Here is a link to the iDVR series: Here is a link to the iDVR-PRO DVRs: And here is a link to the iDVR-PRO blackberry camera viewer setup instructions.
I'm using a 3d program called maya. It has a python window where I can type python commands to do things.
I'm trying to get it to interface with my box. The first line in the code is: import serial When I type that though, I get the error 'no module named serial' What's going on? I have pyserial installed. It used to work on my last computer but I don't remember how I set it up. Any thoughts? That's insane.
You use the fucking interpreter or path to the one you want so you avoid name clashes in the fucking path. This is a constant issue on Linux and BSD and why we have a FUCKING MAKE ALTINSTALL target to avoid overwriting /usr/local/bin/pip. But does everyone use that? Specifying the interpreter, either by full path to it or referring to it like 'python3.3', works in ALL deployments. 'Not good advice' - Fuck you!
Antipattern asshole. Gods I am so fucking pissed off by that shit. 'Not good advice'. 'Not good advice'. 'Not good advice'.
Ah, so python isn't in your PATH (This won't help with your modules question but its useful). I'm remembering this from Windows Vista/XP so this might not be totally accurate but Right-click on 'My Computer', 'Properties', Rightmost-tab I think, find 'Environment Variables', should be a 'PATH' one, and add wherever the python executable is in your C: Python27 folder. For more on that. Now as for your original problem you said you tried dropping the pyserial.py files into a maya folder and it didn't work. Were you trying the locations listed under PYTHONPATH?
Reading Arduino serial ports in Windows 7 with Python + Pyserial admin, Copy-pasted from here: Here i am going to show you 3 working examples on how to read Arduino serial ports with windows. You are going to need following programs / tools:. Arduino UNO. Windows 7.
+ Installing Python + Pyserial to Windows First you have ton install Python on your computer. This is just typical install with no big deal. When you have installed Python you may want to restart your computer.
If you are not sure if your install was succesfull you can open your command prompt and type python or go to location where you installed python and run Python.exe. If everything works correctly your command prompt should look something like this: After installing Python you can download Pyserial.
Unzip pyserial to folder where you installed python and says lib. For me example to location was: c: Python27 Lib pyserial-2.6 After you have unzipped pyserial, you should start command prompt and go to location above. In there you can find setup.py named file, which you cn run by typing: python setup.py install Now you have installed Python + Pyserial Reading Arduino serial ports with Pyserial First code is basic ”Hello world” with arduino and python Code for Arduino: Hello world with serial ports Arduino code.
I really have tried searching through all the forums. The makers of Roboclaw wrote their test pythons scripts (and Roboclaw class) with Python 2.7.
Python Serial Vs Pyserial
As of now, will NOT work with python v3. So I'm stuck with that restriction.
When I run the basic script, it complains that 'AttributeError: Roboclaw instance has no attribute 'port'. Tech support just keeps telling people they need python 2.7. What I did was 'sudo apt-get install python-serial'. Still same problem. Divine mercy prayer in tamil pdf. What I wanted to do was blow away ALL python and re-install just what I need.
Pyserial Python 2.7
But I read (?) that raspbian/debian uses python for things? Anyway, here's what 'dpkg -get-selections grep python' says: dh-python install libpython-stdlib:armhf install libpython2.7-minimal:armhf install libpython2.7-stdlib:armhf install libpython3-stdlib:armhf install libpython3.5:armhf install libpython3.5-minimal:armhf install libpython3.5-stdlib:armhf install python install python-apt-common install python-minimal install python-serial install python2.7 install python2.7-minimal install python3 install python3-apt install python3-minimal install python3.5 install python3.5-minimal install Any ideas? Update ( @ 22:32 EDT): I tried 'sudo apt-get install python3-serial'.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |