abdullahzahid Posted December 3, 2023 Share Posted December 3, 2023 Hello I am willing to host a Python bot for my personal use. I have added both start and stop Python scripts. When I run the start script, it shows a 500 internal server error. Going through the forum posts, I found that I need to request to install the libraries. please install this library for me. The details are: domain: abdullahzahid.helioho.st server: tommy2 python ver: 3.7.6(even 3.10 won't be a problem) library required: python-telegram-bot (link: https://pypi.org/project/python-telegram-bot/) Regards and Thanks Link to comment Share on other sites More sharing options...
Talk Sick Posted December 3, 2023 Share Posted December 3, 2023 This support request is being escalated to our root admins. Link to comment Share on other sites More sharing options...
Krydos Posted December 4, 2023 Share Posted December 4, 2023 The module python-telegram-bot has been installed on Tommy's Python 3.10. You can see the current list of installed modules at https://krydos.heliohost.org/pyinfo/info3.10.py Link to comment Share on other sites More sharing options...
abdullahzahid Posted December 4, 2023 Author Share Posted December 4, 2023 52 minutes ago, Krydos said: The module python-telegram-bot has been installed on Tommy's Python 3.10. You can see the current list of installed modules at https://krydos.heliohost.org/pyinfo/info3.10.py Thank you. I am still getting the same error. Is there any way to see what is causing the issue? I can run this script on my PC without any errors. I am following this example (https://wiki.helionet.org/tutorials/discord-bot) to start the bot in my home directory. I believe there is some problem with this "start.py" script. Any help will be appreciated. Regards Link to comment Share on other sites More sharing options...
Krydos Posted December 4, 2023 Share Posted December 4, 2023 29 minutes ago, abdullahzahid said: I believe there is some problem with this "start.py" script. The start.py file in your cgi-bin directory is not 755 permissions. It should be rwxr-xr-x. Link to comment Share on other sites More sharing options...
abdullahzahid Posted December 4, 2023 Author Share Posted December 4, 2023 I am sorry, I mentioned the wrong file. I am using the "start_bot.py" file. and I believe the error is in the following line. I am able to get output until this line: subprocess.Popen("/home/abdullahzahid/azbot.py") i can see all print command being executed but nothing after this line of code. Link to comment Share on other sites More sharing options...
abdullahzahid Posted December 4, 2023 Author Share Posted December 4, 2023 1 hour ago, abdullahzahid said: I am sorry, I mentioned the wrong file. I am using the "start_bot.py" file. and I believe the error is in the following line. I am able to get output until this line: subprocess.Popen("/home/abdullahzahid/azbot.py") i can see all print command being executed but nothing after this line of code. I figured out that my username was not just abdullahzahid. Thank you for your support. Link to comment Share on other sites More sharing options...
Krydos Posted December 4, 2023 Share Posted December 4, 2023 27 minutes ago, abdullahzahid said: I figured out that my username was not just abdullahzahid. You were probably following a guide for cPanel where your home directory is your username. On Plesk the home directory is your main domain. Link to comment Share on other sites More sharing options...
Recommended Posts