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

建议提供docker部署能力 #5

Open
steelli opened this issue May 26, 2023 · 7 comments
Open

建议提供docker部署能力 #5

steelli opened this issue May 26, 2023 · 7 comments

Comments

@steelli
Copy link

steelli commented May 26, 2023

我macOS,项目克隆下来之后,执行pdm install命令报错:

Unable to find a resolution for pyinstaller
Please make sure the package name is correct.
Traceback (most recent call last):
File "/opt/homebrew/bin/pdm", line 8, in
sys.exit(main())
File "/opt/homebrew/Cellar/pdm/1.15.3/libexec/lib/python3.10/site-packages/pdm/core.py", line 232, in main
return Core().main(args)
File "/opt/homebrew/Cellar/pdm/1.15.3/libexec/lib/python3.10/site-packages/pdm/core.py", line 167, in main
raise cast(Exception, err).with_traceback(traceback)
File "/opt/homebrew/Cellar/pdm/1.15.3/libexec/lib/python3.10/site-packages/pdm/core.py", line 162, in main
f(options.project, options)
File "/opt/homebrew/Cellar/pdm/1.15.3/libexec/lib/python3.10/site-packages/pdm/cli/commands/install.py", line 48, in handle
actions.do_lock(project, strategy=strategy, dry_run=options.dry_run)
File "/opt/homebrew/Cellar/pdm/1.15.3/libexec/lib/python3.10/site-packages/pdm/cli/actions.py", line 114, in do_lock
raise ResolutionImpossible("Unable to find a resolution") from None
resolvelib.resolvers.ResolutionImpossible: Unable to find a resolution

已经折腾了半天了,目前问题仍然无法解决,第一步的环境问题就卡主了,建议提供docker部署能力,避免让大家折腾环境问题。

@AndersonBY
Copy link
Owner

image 我这里用python3.8是OK的,你换到3.8试试吧。由于pywebview的原因,目前还是以3.8为主

@steelli
Copy link
Author

steelli commented May 29, 2023

macOS下切到python3.8 能跑起来,前端页面可以打开,不过Tab切换到"官方工作流模板"的时候,后端服务直接挂掉,报如下错误:
Terminating app due to uncaught exception 'OC_PythonException', reason: '<class 'ModuleNotFoundError'>: No module named 'Security''

看项目源码,貌似是依赖的webview有问题,
image
这个应该不是一个第三方模块(执行pdm add Securite 提示Unable to find candidates for Security),不知道这个问题应该怎么解决。

@AndersonBY
Copy link
Owner

更新了一下pyproject.toml,你拉取最新的版本然后运行pdm install -G mac试试,按照pywebview里的提示需要单独给Mac装pyobjc模块

@steelli
Copy link
Author

steelli commented May 30, 2023

最新版本上的lock文件貌似没有更新,执行pdm install -G mac命令提示如下:
Requested groups not in lockfile: mac

@AndersonBY
Copy link
Owner

我把pdm.lock去掉不跟踪了 怕跨平台依赖不同的问题。你删掉你的pdm.lock重新安装一次试试

@skywolf123
Copy link

赞同,应该提供docker部署

@AndersonBY
Copy link
Owner

赞同,应该提供docker部署

这是单机程序,用的pywebview,虽然本质上前后端有分离但是pywebview在中间做了很多处理不是简单就能拆成纯浏览器/服务器架构的,所以除非有更更简便的方法,否则暂时不会往这块去做。

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

3 participants