Announcement

Collapse
No announcement yet.

AUDIOPHONICS RASPDAC MINI Kit

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • gregex
    replied
    Originally posted by pmendiuk
    Hi,
    I am trying to get another OLED script running on PcP 7 with python3.8. I get an error running req.pip with setup.py install for RPI.GPIO:

    ERROR: Command errored out with exit status 1: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zzs1y9mi/rpi-gpio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zzs1y9mi/rpi-gpio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"' "','"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"' ))' install --record /tmp/pip-record-76gpux7w/install-record.txt --single-version-externally-managed --prefix /tmp/raspdacmini-deps/usr/local --compile --install-headers tmp/raspdacmini-/local/include/python3.8/RPI.GPIO Check the logs for full command output.

    Has anybody successfully installed rpi-gpio in PcP 7 with python3.8?
    Hi @pmendiuk,

    Sorry for the late reply. Looks like you might be hitting the issue described at https://www.raspberrypi.org/forums/v...44375#p1665230

    I was able to build it on pCP 7.0.0b6 using this workaround:
    Code:
    CFLAGS=-fcommon pip install rpi.gpio [--options]
    But a simpler solution is to install the pCP extension python3.8-rpi-gpio.tcz instead of rolling your own.
    Last edited by gregex; 2020-12-08, 21:32. Reason: Added solution

    Leave a comment:


  • pmendiuk
    replied
    Hi,
    I am trying to get another OLED script running on PcP 7 with python3.8. I get an error running req.pip with setup.py install for RPI.GPIO:

    ERROR: Command errored out with exit status 1: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zzs1y9mi/rpi-gpio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zzs1y9mi/rpi-gpio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"' "','"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"' ))' install --record /tmp/pip-record-76gpux7w/install-record.txt --single-version-externally-managed --prefix /tmp/raspdacmini-deps/usr/local --compile --install-headers tmp/raspdacmini-/local/include/python3.8/RPI.GPIO Check the logs for full command output.

    Has anybody successfully installed rpi-gpio in PcP 7 with python3.8?

    Leave a comment:


  • gregex
    replied
    Originally posted by kit1cat
    Partial Success Copied the font folder and the oled_1.54_spi_audiophonics_py3.py file to /home/tc, ran the command python3 lms_oled_1.54_spi_audiophonics_py3.py from puttty and I have a display reading "Trying to connect player to LMS". My LMS server is on another PI connected to a usb drive.
    Excellent. This should clear up if you do the edits to the script described here: https://forums.slimdevices.com/showt...l=1#post980143
    You can find that information in the Diagnostics->Raspberry Pi page of piCorePlayer.

    Leave a comment:


  • kit1cat
    replied
    Partial Success Copied the font folder and the oled_1.54_spi_audiophonics_py3.py file to /home/tc, ran the command python3 lms_oled_1.54_spi_audiophonics_py3.py from puttty and I have a display reading "Trying to connect player to LMS". My LMS server is on another PI connected to a usb drive.

    Leave a comment:


  • gregex
    replied
    Not sure why root access should be required to scp files to piCorePlayer. User should be tc and files should be written by default to /home/tc. Using "pi" or "dietpi" will give Permission Denied (I do this accidentally all the time when switching between boot images)

    Leave a comment:


  • Greg Erskine
    replied
    I use "sudo -s" in winSCP if I require root access.

    Leave a comment:


  • Man in a van
    replied
    Click image for larger version

Name:	scp.png
Views:	1
Size:	137.9 KB
ID:	1569270

    Leave a comment:


  • kit1cat
    replied
    Originally posted by Man in a van
    Select SCP
    Host name
    Port Number
    User Name
    Password
    Click on Advanced
    Click on SCP/Shell
    From the Default dropdown select sudo/su
    OK

    if you are going to open this a lot you can save the link

    piCoreplayer doesn't need this procedure (I think, from memory)


    ronnie
    Thanks ronnie, but not working for me, I wonder if I am using a different version?

    I only have shell and no sudo/su option only sudo su - ?

    Leave a comment:


  • Man in a van
    replied
    Select SCP
    Host name
    Port Number
    User Name
    Password
    Click on Advanced
    Click on SCP/Shell
    From the Default dropdown select sudo/su
    OK

    if you are going to open this a lot you can save the link

    piCoreplayer doesn't need this procedure (I think, from memory)


    ronnie

    Leave a comment:


  • kit1cat
    replied
    I have found WinSCP very useful for looking at the files on the SD card , but when I try to copy or edit a file I keep getting error 3 Permission denied, works without a problem on my dietpi image. Any way around this error?

    When I booted my dietpi image, I found the display was working ok, which I find a bit strange. It was not working last time I tried it?

    Leave a comment:


  • kit1cat
    replied
    @Paul-Webster - WinSCP looks like just what I needed.

    @shunte88 - WSL 2 looks a great way of learning a bit of Linux.

    Thanks guys

    Leave a comment:


  • kit1cat
    replied
    Thanks for further info guys, I will take a look.

    Sorry gregex, I did not realise I needed other files to get your solution up and running. I thought running your script would be enough, like the script I ran for moOde. Unfortunately I am not a Linux user, I can cut/paste commands and edit a simple file but that's about it. I still have the dietpi image but there was no info on how get up and running with picoreplayer. Any way, thanks again for your help. I will give it another go later.

    Leave a comment:


  • gregex
    replied
    Originally posted by gregex
    Sorry, I should have been clear -- run this to start the display:

    Code:
    python3 lms_oled_1.54_spi_audiophonics_py3.py
    From reading earlier in the thread, I thought you already had the OLED directory from the dietpi image, which contains the required fonts.
    I am having trouble attaching it in a zipfile here (no useful error message), but it is the same fonts subdirectory as in the 7z file in this post


    You'll also need to edit lms_oled_1.54_spi_audiophonics_py3.py line 75 and 79 to contain your server IP and player MAC address. (As mentioned here https://forums.slimdevices.com/showt...284#post976284)
    Last edited by gregex; 2020-06-28, 23:30.

    Leave a comment:


  • shunte88
    replied
    Microsoft got their act together and full embraced the Linux world with WSL 2

    Install Windows Subsystem for Linux with the command, wsl --install. Use a Bash terminal on your Windows machine run by your preferred Linux distribution - Ubuntu, Debian, SUSE, Kali, Fedora, Pengwin, Alpine, and more are available.


    No more dual booting, or Docker
    You can spin up a linux environment in seconds along with all the tools and productivity enhancements you'd ever need

    The Windows Subsystem for Linux 2 (WSL 2) is here. It's now easy to get started with Linux and integrate Ubuntu 20.04 LTS quickly from within Windows 10. WSL...


    Under windows 10 has full linux integration inclusive of ssh and scp so use of WinSCP, Filezilla or putty is pretty much moot

    I only use a Windows machine at home for my Photoshop setup but now I have no excuse not to spin up a Linux instance on the same machine and get the best of both worlds.

    Leave a comment:


  • Paul Webster
    replied
    WinSCP (works alongside Putty) is a good way to move files between pCP and Windows.

    Leave a comment:

Working...
X
😀
🥰
🤢
😎
😡
👍
👎