Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

No module named utils #38

Open
VoicelessProximity1701 opened this issue Jan 1, 2021 · 10 comments
Open

No module named utils #38

VoicelessProximity1701 opened this issue Jan 1, 2021 · 10 comments

Comments

@VoicelessProximity1701
Copy link

I get this error when i try to run the program:

Traceback (most recent call last):
File "lcars.py", line 2, in
from ui.ui import UserInterface
File "/home/praveetminash/rpi_lcars-master/app/ui/ui.py", line 4, in
from ui.utils import sound
ImportError: No module named utils

@GozuMezu
Copy link

GozuMezu commented Jan 8, 2021

I have the exact same issue

@garrettrathbone
Copy link

garrettrathbone commented Jan 24, 2021

I ran into the same issue until I updated to the newest version of python 3. Before that, I just removed the 'ui.' portion and it allowed it run, although I still can't get audio to work.

Update: figured out root user doesn't have audio access. ran sudo pulseaudio -D and solved the issue.

@VoicelessProximity1701
Copy link
Author

Thanks a lot!

@JDat
Copy link
Contributor

JDat commented Jan 28, 2021

Why you run this as root. Running it as root is total nonsence. Run as user. Also remember that pulseaudio service is running as user not as root.

@JDat
Copy link
Contributor

JDat commented Jan 28, 2021

This is not tested with rpi_lcars on RPi, but for other poruses I am using user lingering for autorun apps in linux with specific nonroot user. See second answer:
https://askubuntu.com/questions/676007/how-do-i-make-my-systemd-service-run-via-specific-user-and-start-on-boot

After testing with rpi_lcars on my RPI, I will write and contribute additional info here.

@tobykurien tobykurien mentioned this issue Aug 10, 2021
@JDat JDat mentioned this issue Aug 14, 2021
@MCDevel
Copy link

MCDevel commented Aug 14, 2021

i still have the problem. does anyone has other waysto fx it

@JDat
Copy link
Contributor

JDat commented Aug 14, 2021

Please provide detailed information how you launch lcars. Maye there are wrong path in .sh script.
Maybe you are launching it with python2.
Maybe pygame sound not installed.

While code is not production ready (it is ready for hobby), we can't not guess what are your problems. even worse, we don't know your linux and raspberry pi experience.

Need more info! Please!

@MCDevel
Copy link

MCDevel commented Aug 14, 2021

i installt 3 versions of pygame i enabled the sound on multiple ways and still not working

@JDat
Copy link
Contributor

JDat commented Aug 14, 2021

Is is not important what you done. It is important how you done that.
Please post full console text.

Also please post alsa/pulse sound test results to confirm that audio is working (arecord/audacity).
Also test any pygame audio example code to make shure pygame sound working.
How you be shure that you are launching lcars with python3 and not python2 (consale dump as proof).

@MCDevel
Copy link

MCDevel commented Aug 14, 2021

ok i will do later when i start my pi again

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants