Jump to content

Recommended Posts

Posted

Good afternoon.

After the recent account server move my python modules stopped working. Although I see that the files were imported into the file system I get an error when running them: 

Thus, I'm reaching to seek for support on sort this issue. 

The error is the following: Status: 500 Output: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>500 Internal Server Error</title> </head><body> <h1>Internal Server Error</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p> <p>Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.</p> <p>More information about this error may be available in the server error log.</p> </body></html>

Thank you.

 

Posted

The python modules would need to be reinstalled again, what modules do you need and what python version are you using 3.9 or 3.14?

Posted

Thank you for the reply. I'm using python 3.12, Johnny Server.
The modules being used are:  datetime, json, sqlite3, requests, os, BeautifulSoup

Posted

Johnny no longer has Python 3.12, which is part of the issue. It has 3.14 now. You'll need to update relevant shebang lines. https://johnny-info.heliohost.org/pyinfo/info3.14.py I'll assume you want these installed for 3.14.

Datetime, json, and OS are built-in I believe.

Requests is already present.

Escalating to have the others installed: sqlite3, Beautifulsoup

  • Thanks 1
Posted
6 hours ago, wolstech said:

Datetime, json, and OS are built-in I believe.

Correct.

6 hours ago, wolstech said:

Escalating to have the others installed: sqlite3

SQLite3 is actually built into every Python 3.14 by default too, but we recommend using MariaDB or PostgreSQL because they're easier to get working, and better performance.

6 hours ago, wolstech said:

Beautifulsoup

This module is really ancient and doesn't even work with Python 3.0. For Python 3.14 I installed Beautifulsoup4 instead.

You can see the current list of installed modules for Johnny's Python 3.14 at https://johnny-info.heliohost.org/pyinfo/info3.14.py

  • Thanks 1
  • Krydos changed the title to [Solved] Python modules not working after server move
  • Krydos locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...