hardbyte / hardbyte/python-can

Support using CAN Over Serial on Linux embeded board

未关闭
#1,879 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Python
星标
1.6k
派生
697
PR 合并指标
30 天内没有已合并 PR

描述

### Is your feature request related to a problem? Please describe.
No, I need your support to make this library could run on Linux Embedded device (raspberry pi, orange pi, luckfox-RV1106,...).
Background: I try to install python-can by using pip on Linux embedded device but it always has error:

### ***Console log ------------------------------------------------------------------------------------------

`[root@luckfox root]# pip install python-can[serial]
WARNING: The directory '/oem/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Collecting python-can[serial]
Downloading python_can-4.4.2-py3-none-any.whl (265 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 265.2/265.2 kB 501.0 kB/s eta 0:00:00
Collecting wrapt~=1.10
Downloading wrapt-1.16.0-py3-none-any.whl (23 kB)
Collecting packaging>=23.1
Downloading packaging-24.1-py3-none-any.whl (53 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.0/54.0 kB 6.5 MB/s eta 0:00:00
Requirement already satisfied: typing-extensions>=3.10.0.0 in /usr/lib/python3.11/site-packages (from python-can[serial]) (4.4.0)
Collecting msgpack~=1.0.0
Downloading msgpack-1.0.8.tar.gz (167 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 167.0/167.0 kB 2.4 MB/s eta 0:00:00
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 2
╰─> [1 lines of output]
/usr/bin/python: can't open file '/usr/lib/python3.11/site-packages/pip/__pip-runner__.py': [Errno 2] No such file or directory
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 2
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
### ***Console log ------------------------------------------------------------------------------------------

### Describe the solution you'd like
N/A

### Describe alternatives you've considered
I have no idea :)

### Additional context
Your support is very meaningful to us to make it possible to use CAN over serial on embedded device.

Thank you a lot in advance.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。