XAMPP cannot run .py scripts

Problems with the Linux version of XAMPP, questions, comments, and anything related.

XAMPP cannot run .py scripts

Postby xampplinuxpythonuser » 08. November 2023 00:57

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")
xampplinuxpythonuser
 
Posts: 2
Joined: 08. November 2023 00:51
XAMPP version: 8.0.28
Operating System: Kubuntu 22.04

Re: XAMPP cannot run .py scripts

Postby xampplinuxpythonuser » 08. November 2023 23:55

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.
xampplinuxpythonuser
 
Posts: 2
Joined: 08. November 2023 00:51
XAMPP version: 8.0.28
Operating System: Kubuntu 22.04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 48 guests