Open gridhead opened 4 years ago
Hello, can i take on this issue?
What should be packaged in a single executable? The Chatroom server (servchat.py) script only or also the WebSockets Server (chatroom.py)?
Cool. I will assign you this issue. Be sure to get yourself registered at https://organize.mlh.io/participants/events/4659-hack-astrosonic, our official Hacktoberfest event to stay in touch with the fellow contributors of this project.
The problem statement was a bit vague so I made it precise. You need to package the chatroom server here in an executable binary.
Also, feel free to leave a star on the project - should you find it worth your time. Happy hacking! :smile:
Hello, I am a good programmer and can package your project into executables for 2 platforms
It will take 30 minutes for me to make them shall I initiate a pull request regarding that
I have added a bunch of files and features for your project
4 issues will be solved
@t0xic0der I've generated a couple of binaries (windows and ubuntu) , but i can not get the server working from the executables. I always get the following error:
jinja2.exceptions.TemplateNotFound: chatroom.html
It seems that when building the binary there is something missing along the way.
Hello, I am a good programmer and can package your project into executables for 2 platforms
* Linux * Windows
It will take 30 minutes for me to make them shall I initiate a pull request regarding that
Hi @xcodz-dot, this issue has already been assigned to @CptOrange16. You are requested to look for other issues in the organization repository.
@t0xic0der thanks for the tip, I was missing the configurations on the servchat.py script. I generated 2 binaries: one for windows and one for linux (i used Ubuntu 18.04). They are both running and working as expected. To run use (for example):
I also left the .spec files because even though they have my system path they may be useful to see the configurations needed to generate a binary in the future.
Let me know if there is anything wrong or if you want to add anything else. Also thanks for not closing the issue, it allowed me to learn how to use pyinstaller 👍 .
Use PyInstaller. Make sure that the binary is compliant to Python 3.8.