Jump to content

Error logs when executing python


rossocor

Recommended Posts

To my knowledge, our instances of Python don't generate any error logs accessible by users.

 

Usually though, it's not a Python issue anyway. Most issues are caused by incorrect shebang line, failure to use the cgi-bin folder (obviously not the issue here), permissions, or line endings (make sure your file has unix line endings)

Link to comment
Share on other sites

You can debug your own cgi scripts using the method I posted here https://www.helionet.org/index/topic/29544-python-27-module-request500-error-troulbeshooting/?p=133824 Using a cron job the error message will get emailed to you.

 

Here's your particular error:

Traceback (most recent call last):
  File "nbatg.py", line 179, in <module>
    from telegram.ext import Updater
ModuleNotFoundError: No module named 'telegram'
Calling random modules that aren't already installed will result in a 500 error. You can check the modules that are installed on Johnny's python 3.6 by going to https://krydos2.heliohost.org/cgi-bin/modules36.py If you don't see a module listed there you won't be able to include it without causing a 500 error. We can install modules for you though. Just post and state username, server, python version, and module requested. Let me know if you'd like telegram or anything else installed.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...