lachie07 Posted February 1, 2018 Posted February 1, 2018 (edited) Is threading allowed using .py scripts? Whenever I try to run a simple threading script (with no more than 15 threads) it just gives me a 500 Internal Error. Edit: I rolled back a few versions of my python script (not version of python) and it's still giving me the 500 Internal Server Error? Edit2: Finally found out that the cause was because the permissions were not set properly (644 instead of 755), but using the same version of the python script as before (which worked fine) I am now getting an import error? Is it possible that an admin changed something in the python dir? Here is a screenshot: https://imgur.com/a/5lxTP UPDATE:I have solved the problem. The issue was that I had another file named threading.py and my script was trying to use that script instead of the module threading. Edited February 1, 2018 by lachie07
Krydos Posted February 1, 2018 Posted February 1, 2018 http://clan-detachments.heliohost.org/scrape.py isn't giving a 500 error. I assume you got it figured out?
lachie07 Posted February 1, 2018 Author Posted February 1, 2018 http://clan-detachments.heliohost.org/scrape.py isn't giving a 500 error. I assume you got it figured out?No, my script works fine when working on my local Wamp Server, but when I upload it to the heliohost file manager (and set permissions, etc) the bs4 (BeautifulSoup4) module gives an error when working with Python 2.7 https://imgur.com/a/5lxTP
lachie07 Posted February 1, 2018 Author Posted February 1, 2018 http://clan-detachments.heliohost.org/scrape.py?tank1=Maus&tank2=Maus&tank3=Maus&tank4=Maus&tank5=Maus&tank6=Maus&tank7=Maus&names=Strikker23%2C+Howitzer_666%2C+CHAZ746%2C+Water_Is_Wet%2C+Fratch73%2C+twofourcharlie%2C+XiangPotato If you go to that link it will show you the error I am getting... this error does not occur on my local server which leads me to believe that the version of the module bs4 that is installed on the Johnny server is not up to date.
lachie07 Posted February 1, 2018 Author Posted February 1, 2018 Problem has been solved. Read update in OP.
wolstech Posted February 2, 2018 Posted February 2, 2018 Glad to see you figured it out. Let us know if you need anything else.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now