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

OpenWRT上无法运行,提示【unexpected ")"】 #14088

Open
hugohehuan opened this issue Dec 21, 2024 · 2 comments
Open

OpenWRT上无法运行,提示【unexpected ")"】 #14088

hugohehuan opened this issue Dec 21, 2024 · 2 comments

Comments

@hugohehuan
Copy link

关键字【unexpected ")"】搜过了,没人提过问题……

  • 操作系统: openwrt-21.02.7-ipq806x-generic-linksys_ea8500
  • 客户端版本号: 5.10.7
  • 问题现象:

使用putty ssh登陆
直接执行报错“python3/bin/python3: line 6: syntax error: unexpected ")"”
图片
执行
python3 ./code/default/launcher/start.py -allow_remote

是正常的
图片

网上找了个办法,看了下脚本的执行过程

export PS4='+{$LINENO:'
sh -x ./start -allow_remote

输出如下:
图片
start.py的第6行只有一句
import sys
十分懵逼……
不知如何解决

@xxnet
Copy link
Contributor

xxnet commented Jan 4, 2025

应该是 xxnet 内置的python解析器 无法在这个openwrt下运行.
你用系统自带的python3就可以了.

@hugohehuan
Copy link
Author

应该是 xxnet 内置的python解析器 无法在这个openwrt下运行. 你用系统自带的python3就可以了.

明白了,那我自己改一下start文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants