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

pyinstaller打包后运行,调用solox中的initPerformanceService.start()会因为config.json不存在而导致程序无法继续运行。 #283

Open
asas7744asas opened this issue Jun 4, 2024 · 4 comments

Comments

@asas7744asas
Copy link

solox报错
@rafa0128
Copy link
Member

rafa0128 commented Jun 4, 2024

你是打包什么时候的代码,我看代码是自动创建这个文件的

@asas7744asas
Copy link
Author

我用的是2.9.0新版本的 看代码并没有主动创建这个config.json。又因为每次调用都是在临时文件temp中,没办法手动复制一份,所以报错。建议还是添加个主动创建该文件的方法。
solox_start

@rafa0128
Copy link
Member

rafa0128 commented Jun 4, 2024

w模式就是自动创建的,除非你的路径没有权限创建失败,看看有没有其他报错

@asas7744asas
Copy link
Author

w模式就是自动创建的,除非你的路径没有权限创建失败,看看有没有其他报错

我也很奇怪,可以看到打包后运行是在临时文件内运行和生成的config.json。手动找了下并没有这个文件。感觉好像是上层文件夹未生成导致的。
这个文件有什么重要目的吗?没有的话看是否可以添加个try-except,防止报错。

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