Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Instruction Guide AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M
@TookaFace

HI  Tried your suggested command option this is what I got:-

$ sudo -H pip --no-python-version-warning   install --upgrade luma.oled
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting luma.oled
 Downloading luma.oled-3.4.0-py2.py3-none-any.whl (18 kB)
Collecting luma.core>=1.12.0
 Downloading luma.core-1.14.0-py2.py3-none-any.whl (51 kB)
    |████████████████████████████████| 51 kB 152 kB/s
ERROR: Package 'luma.core' requires a different Python: 2.7.16 not in '>=3.5, <4'

if I use pip3 oled installs thus

pi@moode:~ $ sudo -H pip3 install --upgrade luma.oled
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting luma.oled
 Cache entry deserialization failed, entry ignored
 Cache entry deserialization failed, entry ignored
 Cache entry deserialization failed, entry ignored
 Downloading https://files.pythonhosted.org/packages/...ne-any.whl
Collecting luma.core>=1.12.0 (from luma.oled)
 Cache entry deserialization failed, entry ignored
 Cache entry deserialization failed, entry ignored
 Cache entry deserialization failed, entry ignored
 Downloading https://files.pythonhosted.org/packages/...ne-any.whl (51kB)
   100% |████████████████████████████████| 61kB 2.4MB/s
Collecting spidev; platform_system == "Linux" (from luma.core>=1.12.0->luma.oled)
 Downloading https://www.piwheels.org/simple/spidev/s...armv7l.whl
Collecting smbus2 (from luma.core>=1.12.0->luma.oled)
 Downloading https://www.piwheels.org/simple/smbus2/s...ne-any.whl
Requirement already satisfied, skipping upgrade: RPI.GPIO; platform_system == "Linux" in /usr/local/lib/python3.7/dist-packages (from luma.core>=1.12.0->luma.oled) (0.7.0)
Collecting pyftdi (from luma.core>=1.12.0->luma.oled)
 Downloading https://files.pythonhosted.org/packages/...ne-any.whl (148kB)
   100% |████████████████████████████████| 153kB 1.7MB/s
Collecting pillow>=4.0.0 (from luma.core>=1.12.0->luma.oled)
 Downloading https://www.piwheels.org/simple/pillow/P...armv7l.whl (1.3MB)
   100% |████████████████████████████████| 1.3MB 238kB/s
Collecting pyusb>=1.0.0 (from pyftdi->luma.core>=1.12.0->luma.oled)
 Downloading https://www.piwheels.org/simple/pyusb/py...ne-any.whl (57kB)
   100% |████████████████████████████████| 61kB 1.2MB/s
Collecting pyserial>=3.0 (from pyftdi->luma.core>=1.12.0->luma.oled)
 Downloading https://files.pythonhosted.org/packages/...ne-any.whl (193kB)
   100% |████████████████████████████████| 194kB 1.4MB/s
Installing collected packages: spidev, smbus2, pyusb, pyserial, pyftdi, pillow, luma.core, luma.oled
Successfully installed luma.core-1.14.0 luma.oled-3.4.0 pillow-7.1.1 pyftdi-0.50.0 pyserial-3.4 pyusb-1.0.2 smbus2-0.3.0 spidev-3.4

but my oled wont disply

cheers

Patrick
Reply
Try this:

Code:
sudo -H pip install 'luma.core==1.13.0'


Last version of luma drop support for python 2.7
Reply
hi,
had another try,
got this error in syslog:-

Apr 13 17:14:28 moode systemd[1]: Stopped OLED Display Service.
Apr 13 17:14:28 moode systemd[1]: Starting OLED Display Service...
Apr 13 17:14:38 moode systemd[1]: Started OLED Display Service.
Apr 13 17:14:38 moode systemd[1]: oled.service: Main process exited, code=exited, status=1/FAILURE
Apr 13 17:14:38 moode systemd[1]: oled.service: Failed with result 'exit-code'.
Apr 13 17:14:38 moode systemd[1]: oled.service: Service RestartSec=100ms expired, scheduling restart.

what can I look at to fault find this error?

cheers P
Reply
(04-13-2020, 04:18 PM)superpat Wrote: hi,
had another try,  
got this error in syslog:-

Apr 13 17:14:28 moode systemd[1]: Stopped OLED Display Service.
Apr 13 17:14:28 moode systemd[1]: Starting OLED Display Service...
Apr 13 17:14:38 moode systemd[1]: Started OLED Display Service.
Apr 13 17:14:38 moode systemd[1]: oled.service: Main process exited, code=exited, status=1/FAILURE
Apr 13 17:14:38 moode systemd[1]: oled.service: Failed with result 'exit-code'.
Apr 13 17:14:38 moode systemd[1]: oled.service: Service RestartSec=100ms expired, scheduling restart.

what can I look at to fault find this error?

cheers P

Try this:


Code:
sudo /usr/bin/python /home/pi/oled/raspdac_oled_main.py
Reply
(04-14-2020, 11:40 AM)TookaFace Wrote:
(04-13-2020, 04:18 PM)superpat Wrote: hi,
had another try,  
got this error in syslog:-

Apr 13 17:14:28 moode systemd[1]: Stopped OLED Display Service.
Apr 13 17:14:28 moode systemd[1]: Starting OLED Display Service...
Apr 13 17:14:38 moode systemd[1]: Started OLED Display Service.
Apr 13 17:14:38 moode systemd[1]: oled.service: Main process exited, code=exited, status=1/FAILURE
Apr 13 17:14:38 moode systemd[1]: oled.service: Failed with result 'exit-code'.
Apr 13 17:14:38 moode systemd[1]: oled.service: Service RestartSec=100ms expired, scheduling restart.

what can I look at to fault find this error?

cheers P

Try this:


Code:
sudo /usr/bin/python /home/pi/oled/raspdac_oled_main.py

Hi,

What is missing from your sugested command line?

cheers

P
Reply
I just try the procedure for 6.5, it's almost still valid, just one modification in this part:


Code:
sudo pip install -U pip
sudo -i pip install --upgrade pip setuptools
sudo -H pip install 'luma.core==1.13.0'
sudo -H pip install --upgrade luma.oled
Reply
Convert the whole procedure to Python 3?


moOde includes python (currently 2.7.26) and python3 (currently 3.7.3) and corresponding pip and pip3. No problem there---either state the version explicitly or fiddle with the system defaults (consult the InterWeb™ on "update-alternatives" command).

Obviously, a python3 flavor of luma is available.

I downloaded raspdacmini.7z and took a quick look at the .py modules. They look pretty close to Python 3 syntax. At most they might need a minor tweak to a couple lines (in Python 3 the "for...in..." loop construct works from a list but not an interator and I didn't look to see which the current code is using).

I don't have a RaspDAC Mini so am in no position to test.

Regards,
Kent
Reply
@TookaFace 

I am still struggling on

Using the test command you suggested, this is the current returned  output:-


 sudo /usr/bin/python /home/pi/oled/raspdac_oled_main.py
wlan0: error fetching interface information: Device not found
amixer: Unable to find simple control 'Digital',0

Exception - Main Module
(<type 'exceptions.IndexError'>, 'raspdac_oled_main.py', 178)
pi@moode:~/oled $ sudo /usr/bin/python /home/pi/oled/raspdac_oled_main.py
wlan0: error fetching interface information: Device not found
amixer: Unable to find simple control 'Digital',0

Exception - Main Module
(<type 'exceptions.IndexError'>, 'raspdac_oled_main.py', 178)


?????

cheers

P
Reply
@TheOldPresbyope

Yeah, it's surely the right thing to do, i will give it a shot at some point
Reply
(04-25-2020, 03:32 PM)superpat Wrote: @TookaFace 

I am still struggling on

Using the test command you suggested, this is the current returned  output:-


 sudo /usr/bin/python /home/pi/oled/raspdac_oled_main.py
wlan0: error fetching interface information: Device not found
amixer: Unable to find simple control 'Digital',0

Exception - Main Module
(<type 'exceptions.IndexError'>, 'raspdac_oled_main.py', 178)
pi@moode:~/oled $ sudo /usr/bin/python /home/pi/oled/raspdac_oled_main.py
wlan0: error fetching interface information: Device not found
amixer: Unable to find simple control 'Digital',0

Exception - Main Module
(<type 'exceptions.IndexError'>, 'raspdac_oled_main.py', 178)


?????

cheers

P

It's weird, do u have set your dac in moOde ui and restart ?

Try this command after u do that:

Code:
amixer sset -c 0 Digital unmute

Witch pi do you own ?

PS: Can you show the content of the /boot/config.txt file ?
Reply


Forum Jump: