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

Zero2W验证安装时报错 #26

Open
MoonLight423 opened this issue Jul 28, 2024 · 1 comment
Open

Zero2W验证安装时报错 #26

MoonLight423 opened this issue Jul 28, 2024 · 1 comment

Comments

@MoonLight423
Copy link

型号:Zero 2W 2GB
镜像:Orangepizero2w_1.0.0_ubuntu_jammy_desktop_xfce_linux6.1.31

根据教程进行安装
sudo python3 setup.py install
执行后的最终的输出信息
Installed /usr/local/lib/python3.10/dist-packages/wiringpi-2.60.1-py3.10-linux-aarch64.egg
Processing dependencies for wiringpi==2.60.1
Finished processing dependencies for wiringpi==2.60.1
验证安装时输出如下
root@orangepizero2w:/home/orangepi/Downloads/wiringOP-Python# python3 -c "import wiringpi; help(wiringpi)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/orangepi/Downloads/wiringOP-Python/wiringpi.py", line 15, in <module>
import _wiringpi
ImportError: /usr/local/lib/python3.10/dist-packages/wiringpi-2.60.1-py3.10-linux-aarch64.egg/_wiringpi.cpython-310-aarch64-linux-gnu.so: undefined symbol: sunxi_pwm_set_clk

@arkylin
Copy link

arkylin commented Aug 1, 2024

可以试试 ISSUE 25 的解决方案

我也是2w,仅仅修改了下面这个就可以成功运行了

modify the bindings.i and replace the line: extern void sunxi_pwm_set_clk(int pin,int clk); to extern void sunxi_pwm_set_clk_v2(int pin,int clk); (just add the "_v2").

build again:

sudo python3 setup.py clean --all
sudo python3 setup.py build
sudo python3 setup.py install

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

2 participants