Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Installation #7

Open
KrypticCoconut opened this issue Feb 20, 2020 · 18 comments
Open

Installation #7

KrypticCoconut opened this issue Feb 20, 2020 · 18 comments

Comments

@KrypticCoconut
Copy link

KrypticCoconut commented Feb 20, 2020

in the install.sh there are messed up paths

@KrypticCoconut
Copy link
Author

KrypticCoconut commented Feb 20, 2020

i keep getting this error
Traceback (most recent call last):
File "/root/BeBoXGui/gui.py", line 3, in
from luma.core.interface.serial import i2c, spi
ImportError: No module named luma.core.interface.serial

@beboxos can you help?

@beboxos
Copy link
Owner

beboxos commented Feb 20, 2020

connect you pi to internet (wifi ...) , connect to you pi and install modules

pip install luma.core
pip install luma.oled

don't forget to set on /boot/config.txt

spi and or i2c (depends on your oled) on to activate it on pi

@KrypticCoconut
Copy link
Author

KrypticCoconut commented Feb 20, 2020

Now it error
Traceback (most recent call last):
File "/root/BeBoXGui/gui.py", line 19, in
import smbus
ImportError: No module named smbus

I then pip install smbus and then it gave this error
Traceback (most recent call last):
File "/root/BeBoXGui/gui.py", line 42, in
bus = smbus.SMBus(1) # 0 = /dev/i2c-0 (port I2C0), 1 = /dev/i2c-1 (port I2C1)
IOError: [Errno 2] No such file or directory

Im not able to get this working @beboxos :[

@KrypticCoconut
Copy link
Author

and it keeps giving me errors python 2.7 has reached the end of its life

@beboxos
Copy link
Owner

beboxos commented Feb 20, 2020 via email

@beboxos
Copy link
Owner

beboxos commented Feb 20, 2020

i've tried pip3 install luma.core and same error

what funcking idea have they had to stop python 2 support , when all drivers don't work with pyhon3 :'(

i have no idea how to get it work on last version of P4wnP1

(i have sme type of problem trying to make it works with an LCD, driver is python2 only)

@KrypticCoconut
Copy link
Author

Definitely do feel you man, will it work on p4wnp1 alpha2?

@beboxos
Copy link
Owner

beboxos commented Feb 20, 2020

https://twitter.com/BeBoXoS/status/1230635682986700800

see my last tweet , yes i'm working on it , somes things to fix but it's working

installing luma.core etc was a real pain fixing dependencies etc .. but after 2 hours it's working

@KrypticCoconut
Copy link
Author

KrypticCoconut commented Feb 20, 2020

wait so it works on p4wn alpha but ur working to get it it work on the beta ?
im going to get a copy of alpha and try it on that, in which folder can i clone the git repo?
Edit: doesnt seem to work on prev p4wnp1 ver too :[

@KrypticCoconut
Copy link
Author

I downloaded ur pre installed img and shoudl i say that im so impressed, tho i should say that the as i click on system info the oled shuts down

@beboxos
Copy link
Owner

beboxos commented Feb 21, 2020

https://mega.nz/#!YYtS2S6A!Q5OgMvLUtAM_x7jt7vBTY8Zu8lHdyyPoaLdsipVufWg

last P4wnP1 v0.1.1 with oled menu , drivers ... on it

enjoy

@beboxos
Copy link
Owner

beboxos commented Feb 21, 2020

for you system info on "old" img , edit gui.py to put UPS=0 (as i explain on the readme.txt with the image)

@MiguelBits
Copy link

MiguelBits commented Apr 7, 2020

hey , downloaded both versions, the one on mega and the one in alpha version, both always come down to this error
File "/root/BeBoXGui/gui.py", line 42, in
bus = smbus.SMBus(1) # 0 = /dev/i2c-0 (port I2C0), 1 = /dev/i2c-1 (port I2C1)
IOError: [Errno 2] No such file or directory
I read all this post btw...
any sugestions ?

@MiguelBits
Copy link

MiguelBits commented Apr 8, 2020

so I fixed all the above problems, "import smbus" needed to be "import smbus2 as smbus"
made UPS = 0
I have the same OLED display as you but it only blinks white light
PS: i commented out bus = smbus.SMBus(1) # 0 = /dev/i2c-0 (port I2C0), 1 = /dev/i2c-1 (port I2C1) as it still gives error, I am using SPI not I2C so why use it ?

@MasterInNursery
Copy link

very nice project but I get a little bit problems, i changed ups = 0 and also commented out bus = smbus.SMBus(1). when i click on systrm info, it will get me the following error.

Traceback (most recent call last):
File "gui.py", line 1105, in
sysinfos()
File "gui.py", line 210, in sysinfos
IP2 = subprocess.check_output(cmd, shell = True ).split(" ")[1]
TypeError: a bytes-like object is required, not 'str'

by the way, i am use python3 to run this gui.py since use python 2 returns me an error of No module named luma.core.interface.serial

could you help me with this problem? thanks so much @beboxos

@FuocomanSap
Copy link

Same as @MasterInNursery

@FuocomanSap
Copy link

FuocomanSap commented Jul 5, 2020

Same as @MasterInNursery

OK, solved.
I've posted a pull request, now the fork supports python3.7.

@joshdyod
Copy link

joshdyod commented Jun 13, 2022

Sounds like same problem as MiguelBits White screen just blinking, set UPS = 0 using the latest .img file with recommended waveshare hat.
When I run python runmenu.py I do get a message saying
no pid

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

No branches or pull requests

6 participants