saltyshiomix / nextron

⚡ Next.js + Electron ⚡
https://npm.im/nextron
MIT License
3.69k stars 215 forks source link

Unable to run python when building a Windows App.!? #421

Closed bryantz13 closed 6 months ago

bryantz13 commented 7 months ago

I have a question I'd like to ask. I created a python file in renderer -> pages -> script-python -> python.py and I used IPC to run the python file using the spawn of child_process to run the python file through IPC. I found The problem is that When I start the system through localhost, the system can work normally, but when I build a Windows App, the system cannot run the python file. What is the cause? And can you help me? Or is there any example? please help me

bm777 commented 7 months ago

@bryantz13 I've answered to this question here -> #21

bm777 commented 6 months ago

https://github.com/saltyshiomix/nextron/issues/427#issuecomment-1843946241

Here is the Python example.