Page 1 of 1

XAMPP cannot run .py scripts

PostPosted: 08. November 2023 00:57
by xampplinuxpythonuser
Hello.
I have been trying to run .py scripts but to no awail
I have successfully ran .sh scripts so I know it is possible
I even put the code
Code: Select all
#!/bin/sh
printf "Content-Type: text/html\n\n"
printf "Hello Wolrd!\n"

in my test.py file and it worked fine.
I just cannot run python files.
this is the error I get, any help is appreciated
Code: Select all
[Tue Nov 07 19:46:58.172091 2023] [cgi:error] [pid 25378] [client 127.0.0.1:38348] AH01215: /bin/python3: symbol lookup error: /bin/python3: undefined symbol: XML_SetHashSalt: /opt/lampp/cgi-bin/test.py
[Tue Nov 07 19:46:58.172180 2023] [cgi:error] [pid 25378] [client 127.0.0.1:38348] End of script output before headers: test.py

and this is my python script code
Code: Select all
#!/bin/python3
print("Content-Type: text/html\n\n")

Re: XAMPP cannot run .py scripts

PostPosted: 08. November 2023 23:55
by xampplinuxpythonuser
an update, I seem to be able to run bash and python2.7 scripts but cannot still run python 3.10 scripts. any help is appreciated.