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

Can not work in docker container #10

Open
Hongfei-Niu opened this issue Jul 22, 2022 · 0 comments
Open

Can not work in docker container #10

Hongfei-Niu opened this issue Jul 22, 2022 · 0 comments

Comments

@Hongfei-Niu
Copy link

Hongfei-Niu commented Jul 22, 2022

When I ran the scripts pixels in docker container, it just has error like the following.

 File "/usr/local/src/test/mics_hat/interfaces/pixels.py", line 74, in <module>
    pixels = Pixels()
  File "/usr/local/src/test/mics_hat/interfaces/pixels.py", line 21, in __init__
    self.dev = apa102.APA102(num_led=self.PIXELS_N)
  File "/usr/local/src/test/mics_hat/interfaces/apa102.py", line 90, in __init__
    self.spi.open(bus, device)  # Open SPI port 0, slave device (CS) 1
FileNotFoundError: [Errno 2] No such file or directory

I am not familiar with the spidev, and not sure if linking the relevant device, when I ran the container, could fixed this error, like (docker run --device $path1:$path2 -it $image_id /bin/bash)

If I am right, could you please help me find the path of the device.
if I am wrong, could you please help me out with it.

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

1 participant