Go to advanced search

by Loonhaunt
Tue Nov 17, 2020 2:23 pm
Forum: Python
Topic: How to assure that Python Modules are installed in the correct directory?
Replies: 5
Views: 361

Re: How to assure that Python Modules are installed in the correct directory?

Your answers got me started poking over Stackoverflow to see is there were similar issues. What I did on my windows 10 machine was to pip3 uninstall serial pip3 install pyserial then with powershell I got the message that I should upgrade pip. Installing collected packages: pyserial Successfully ins...
by Loonhaunt
Mon Nov 16, 2020 10:57 pm
Forum: Python
Topic: How to assure that Python Modules are installed in the correct directory?
Replies: 5
Views: 361

Re: How to assure that Python Modules are installed in the correct directory?

Hi Dougie how have you been? Yes I am using pip3. I got stuck on this issue a couple of years ago but haven't written much python code since then. I do remember that switching over to pyserial made a difference with the particular code that I was working on at the time but it doesn't seem to matter ...
by Loonhaunt
Mon Nov 16, 2020 9:26 pm
Forum: Python
Topic: How to assure that Python Modules are installed in the correct directory?
Replies: 5
Views: 361

How to assure that Python Modules are installed in the correct directory?

Hello, I seem to be having trouble with my Python3 via Thonny finding my serial module, or pyserial for that matter. I am getting an ATTRIBUTEError for 'Serial' has no module? Traceback (most recent call last): File "/home/pi/Documents/PyDev/Ser_Tesst_shrt.py", line 4, in <module> ser = se...
by Loonhaunt
Mon Nov 16, 2020 9:13 pm
Forum: Python
Topic: except syntax error??
Replies: 3
Views: 295

Re: except syntax error??

Thanks I will report back I have also seen this used which seems to work well.
input("\n\nPress the Enter Key to exit")
I just couldn't find an example from my old code, your contributions are appreciated and probably better practice.

Dave
by Loonhaunt
Thu Nov 05, 2020 4:09 am
Forum: Python
Topic: except syntax error??
Replies: 3
Views: 295

Re: except syntax error??

very cool I will give it a shot.

Thanks very much.

Dave
by Loonhaunt
Thu Nov 05, 2020 2:33 am
Forum: Python
Topic: except syntax error??
Replies: 3
Views: 295

except syntax error??

I admit that i haven't worked with python for a year or two. But I have been getting this syntax error when trying to put a KeyboardInterrupt shut down my running code except KeyboardInterrupt as e: print("\nProgram closed") I have used this in the past to shut down code, I may not be maki...
by Loonhaunt
Sat Oct 31, 2020 10:21 pm
Forum: Python
Topic: STICKY: Python Usage Guide
Replies: 34
Views: 97976

Re: STICKY: Python Usage Guide

Where is the best place to get syntax help with Python 3. I have not written code for about 6 years. Memory has failed me!
by Loonhaunt
Wed Oct 28, 2020 12:16 am
Forum: Beginners
Topic: What is Best Arduino IDE Build for RPI OS (32)
Replies: 2
Views: 218

What is Best Arduino IDE Build for RPI OS (32)

I am just getting back into physical programming with Arduino Uno, no project yet just getting back to it, after 5 year layoff.
I was at the Arduino download site and got confused :oops: with which build to select with OS 32 on my 3B/

Any help would be great1

Thanks

db
by Loonhaunt
Fri Sep 14, 2018 4:36 pm
Forum: Python
Topic: importing modules from other directory paths
Replies: 9
Views: 2075

Re: importing modules from other directory paths

Of course. Duh! thanks. :D
by Loonhaunt
Fri Sep 14, 2018 3:56 pm
Forum: Python
Topic: importing modules from other directory paths
Replies: 9
Views: 2075

Re: importing modules from other directory paths

That was soooo much better thanks, It seems that the import module Adafruit_DHT imports. When the readTemp Command is invoked the DHT read code runs but I am still erroring out with this: Traceback (most recent call last): File "/home/pi/py3prog/TkinterTutor11DHTRead.py", line 5, in <modul...
by Loonhaunt
Thu Sep 13, 2018 5:01 pm
Forum: Python
Topic: importing modules from other directory paths
Replies: 9
Views: 2075

Re: importing modules from other directory paths

What is in your variable PYTHONPATH? Have you made PYTHONPATH available to the python interpreter through an export statement? sys.path won't be able to access it otherwise. I do not know exactly how to use a PYTHONPATH variable. I have been unable to find a clear example of it in use. I had been b...
by Loonhaunt
Tue Sep 11, 2018 9:24 am
Forum: Python
Topic: importing modules from other directory paths
Replies: 9
Views: 2075

importing modules from other directory paths

I am working with a bit of code from a tutorial and I do not know the proper means to import modules from other directories that the one that Iam running the code from i.e. This bit errors out with " No Adafruit_DHT module" when I run straight from IDLE.. If I move the code to /Adafruit_DH...
by Loonhaunt
Sun Aug 14, 2016 3:11 am
Forum: Troubleshooting
Topic: Raspberry pi 3 OS and user account got lost
Replies: 2
Views: 998

Re: Raspberry pi 3 OS and user account got lost

Hey thanks for the reply. I burned a new image on another card, and bought a 2.5 amp power supply. I am logged in with the rpi while I write this. I am happy with the performance. I will look into the boot from a USB device. There seems to be a lot of people putting tutorials together for this. I wa...
by Loonhaunt
Wed Aug 10, 2016 5:13 am
Forum: Troubleshooting
Topic: Raspberry pi 3 OS and user account got lost
Replies: 2
Views: 998

Raspberry pi 3 OS and user account got lost

I purchased a preloaded Noobs/ SD card with Jessie when I bought my Pi 3. The first boot up the Drop down menu looked normal. There were preferences and all of the Libre programs were also available. In preferences there was no WiFi setup to select and that is where the trouble started. I was clicki...
by Loonhaunt
Wed Jul 13, 2016 2:21 am
Forum: Beginners
Topic: Update to RPi 2 B Wheezy??
Replies: 0
Views: 497

Update to RPi 2 B Wheezy??

Sorry for the idiocy here. I have been out of circulation for awhile and my pi's have been dormant. I am now getting back into things and was going to attempt to set up a static IP address. So to do this I first did an apt-get update. I was amazed that the command line was telling me that my update ...
by Loonhaunt
Mon Dec 29, 2014 8:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problem with Firmata and Arduino
Replies: 11
Views: 4511

Re: Problem with Firmata and Arduino

Dougie, I was completely off the map with my connection last night. I had two issues, one was a crap USB cable, and the other was my port. I was one click away from ttyACMD0 where I belonged. Too late at night for my old eyes. Sorry for the false alarm. I must mention that I usually read your posts ...
by Loonhaunt
Mon Dec 29, 2014 4:26 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problem with Firmata and Arduino
Replies: 11
Views: 4511

Re: Problem with Firmata and Arduino

I am unable to load the standardfirmata sketch, I get a ioctl (TIOCMSET"): Broken Pipe message at upload. I am following a tutorial from the Raspberry Pi Cookbook. Has anyone seen this before?

DB
by Loonhaunt
Mon Dec 22, 2014 12:33 pm
Forum: Troubleshooting
Topic: Edimax Wifi adapter seems to go to sleep if not used (solved
Replies: 37
Views: 107501

Re: Edimax Wifi adapter seems to go to sleep if not used (so

Ditto,

This was more of a problem with the B+ than previous versions.

DB
by Loonhaunt
Sat Dec 20, 2014 7:07 pm
Forum: Troubleshooting
Topic: Upgrade
Replies: 0
Views: 493

Upgrade

I was setting out to install Node.js on my pi. This is a Rev B with 9 2014 version of Wheezy purchased at Adafruit. The Pi has been working wonderfully receiving data from an Xbee . I think I checked for updates and upgrade yesterday , and there was nothing new to add. However following procedure fo...
by Loonhaunt
Tue Nov 25, 2014 2:41 am
Forum: General discussion
Topic: How to access the sd card folder from raspbian?
Replies: 5
Views: 10947

Re: How to access the sd card folder from raspbian?

I have an SD card that will no longer boot and would like to recover some files. Could you elaborate on how you mount the recovery partition to extract files?? Or recommend another thread?

Thanks,

Dave
by Loonhaunt
Tue Nov 25, 2014 2:40 am
Forum: General discussion
Topic: How to access the sd card folder from raspbian?
Replies: 5
Views: 10947

Re: How to access the sd card folder from raspbian?

I have an SD card that will no longer boot and would like to recover some files. Could you elaborate on how you mount the recovery partition to extract files?? Or recommend another thread?

Thanks,

Dave
by Loonhaunt
Wed Apr 16, 2014 11:15 am
Forum: Scratch
Topic: Scratch Piface 8 channel Relay
Replies: 13
Views: 7525

Re: Scratch Piface 8 channel Relay

Nice, I will have to check that out.
by Loonhaunt
Sun Mar 02, 2014 3:25 pm
Forum: Beginners
Topic: How to install pyserial?
Replies: 11
Views: 54350

Re: How to install pyserial?

Hi, Using this method, pyserial was installed but I was unable to launch the provided tools with the pyserial distribution (list_port, miniterm etc). First I installed pip then installed pyserial module from pip: sudo apt-get install python-pip sudo pip install pyserial (add --upgrade if you instal...
by Loonhaunt
Sun Mar 02, 2014 1:01 am
Forum: Troubleshooting
Topic: ssh RSA Id changed
Replies: 7
Views: 1945

Re: ssh RSA Id changed

It's a pretty dumb message due to sshd being restarted on your RPi. It is not a dumb message, it is essential to the security of the protocol. If ssh did not check host keys you would have no idea whether your communications were being intercepted. And it cannot happen because sshd has restarted. I...
by Loonhaunt
Sun Mar 02, 2014 12:37 am
Forum: Troubleshooting
Topic: ssh RSA Id changed
Replies: 7
Views: 1945

Re: ssh RSA Id changed

I did some searching for "/Users/davebrown/.ssh/known_hosts:1" and have not found such a place. I am reluctant to wack anything to useful at the moment because the Pi that I am attempting to connect to at the moment is not my primary unit. This has to be some Mac quirk that I have not been...

Go to advanced search