Lego Robot

I have purchased the hat for my raspberrypi and decided to build the robot. I have managed to get through stages 1 and 2 but i have not managed to get going in stage 3. I have been trying to install the bluedot library but using pip3 i have failed to install. I am fairly inexperenced so can you give me simple instructions on how to install the bluedot library and move forward

Thanks

Build Hat?
If yes, what tutorial are you trying to do?
Are you running Pi OS Bookworm?
What error message are you seeing, if any?

Yes, i am running bookworm

Error is:

externally managed environment
This enviroment is externally managed
To install Python pacages systemwise try apt apt onstall python3-xyz, where xyz is the package you are trying to install

This does not work. Says unable to locate package python3-bluedot

Thanks

Jerry

I had a feeling it was the new python virtual environment that was messing you up.
Virtual Environments, Libgpiod, gpiodevice and the current mess I’m making of our Python libraries - Support - Pimoroni Buccaneers

If it’s not a Pi 5, you could run Pi OS Legacy. No virtual environment to have to contend with.

Thank you for your help. I think that is what i will do, i had to do that with another project i was doing but i feel that it is a bit defeatist but mor pragmatic.

1 Like

I’ve gone legacy a couple of times just to get it done and working. I did give setting up a virtual environment a go. It was a very frustrating experience to say the least. I guess I just don’t have the patience I used to have when I was younger. =(

Ok. So i set up a virtual environent in Thonny and great, i got the wheels to turn as they should. I am winning. Now on to the next section setting up connection between my phone and raspberrypi. Small program to run while looking for mt bluetooth. Does not work. No dbus. Tried to pair my phone and raspberry pi. Can pair but a error message comes up. Your phone has no services that will connect to raspberrypi. I do feel that i have been supplied something that will never work. The multipage instructions are just not correct. I am a 74 year old kid but i am just losing faith in the rasoberrypi. I can never complete a project!. I bought a robot a year or two ago and i could bever get that to eork with my wiimote. Not very good.

I have yet to do anything Bluetooth related on a Pi or Pico. Not with the onboard anyway. Years back I controlled a 2 wheel Pi Zero rover with a wireless mini keyboard. It was all USB HID stuff.

To be honest thatvdoes not help me at all. Where do i get the dbus from?

I do believe you run sudo apt-get install dbus from the terminal window.

Thank you. I did exactly what you said and the message came up "dbus is already the newest version (1.14.10-1~deb12u1) so the question is how do i get this to be found when operating in a virtual enviroment within thonny?

1 Like

That I don’t know? Wish I could be of more help but I haven’t used the virtual environment enough to know the ins and outs of it.