[How to do instruction] AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9) +--- Thread: [How to do instruction] AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M (/showthread.php?tid=664) |
RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - superpat - 04-12-2020 @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/b0/fa/ef1065ad3644608d6127ce05da43b2b6ab1857b5b26983439f696bab6f4a/luma.oled-3.4.0-py2.py3-none-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/90/51/ae30ce7c3ef0698547b77cb3263f17f49345f33e360af8032f86c0f6dcf6/luma.core-1.14.0-py2.py3-none-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/spidev-3.4-cp37-cp37m-linux_armv7l.whl Collecting smbus2 (from luma.core>=1.12.0->luma.oled) Downloading https://www.piwheels.org/simple/smbus2/smbus2-0.3.0-py2.py3-none-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/ee/7c/7b6c705b60159806c073e5539a233813f10b1c0c9a11a824b1a27ddddaad/pyftdi-0.50.0-py36-none-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/Pillow-7.1.1-cp37-cp37m-linux_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/pyusb-1.0.2-py3-none-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/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-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 RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - TookaFace - 04-12-2020 Try this: Code: sudo -H pip install 'luma.core==1.13.0' Last version of luma drop support for python 2.7 RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - superpat - 04-13-2020 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 RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - TookaFace - 04-14-2020 (04-13-2020, 04:18 PM)superpat Wrote: hi, Try this: Code: sudo /usr/bin/python /home/pi/oled/raspdac_oled_main.py RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - superpat - 04-15-2020 (04-14-2020, 11:40 AM)TookaFace Wrote:(04-13-2020, 04:18 PM)superpat Wrote: hi, Hi, What is missing from your sugested command line? cheers P RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - TookaFace - 04-25-2020 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 RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - TheOldPresbyope - 04-25-2020 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 RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - superpat - 04-25-2020 @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 RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - TookaFace - 04-25-2020 @TheOldPresbyope Yeah, it's surely the right thing to do, i will give it a shot at some point RE: AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M - TookaFace - 04-25-2020 (04-25-2020, 03:32 PM)superpat Wrote: @TookaFace 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 ? |