I set up a xampp-server using the highest rated answer of this thread: Running Python scripts with Xampp It is supposed to run Python-scripts. Starting a simple python file in the browser:
#!C:/Users/gfranosc/Downloads/Python/python.exe
from LambWaveModes import *
print("Content-Type: text/html\n")
print("Hi")
print('Beliebig viele Sachen')
LWM(Steifmat=[[[3.5,1.5,0],[1.5,3.5,0],[0,0,1]],[[103.08e9,2.8189e9,0],[2.8189e9,5.6469e9,0],[0,0,3.2727e9]]],rho=[1,1490],layer_thickness=[1,1],name="dataset_med",folder='dataset_1',color=0)
print('Hier bin ich nun')
The code runs fine, if i comment out the "from LambWaveModes import *" line. If i dont comment it out i get:
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at postmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.4.29 (Win32) OpenSSL/1.1.0g PHP/7.2.1 Server at localhost Port 80
How can i solve this problem?
LambWaveModesis a custom python module not available on PyPI. The error somewhere occurs when importing that python module. Sadly the server error displayed is very cryptic and doesn't help us further. Is it not possible to get a Python error traceback? Also if possible provide the source code forLambWaveModes. Does importing other python modules work fine?LambWaveModes.py- ie.print( os.getcwd() )LambWaveModesis self written and runs fine while being called from a function, but not on the server. It is very long, how can I attach a file to this thread? Importing other modules works just fine.os.getcwd()and it showed the folder where all the documents are.errmsg.syscan gives500 Internal Server Erroron page - so it can be one and the same problem.