Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4912

General discussion • Re: Running python script from PHP - crashes at "import mysql.connector"

$
0
0


Would appreciate any guidance on how to address this problem please.

What Operating System is running on your RPi4b board?

How was the (working) mysql.connector Python library installed?

With apt? With pip? Something else?

With/for what user account was the mysql.connector library installed? System-wide, or just for your user account?

In what sort of OS environment does your php script run? Does it have root/admin/superuser attributes? (Because - apparently perversely - that can prevent access to user-installed libraries.)

Perhaps also post the php that invokes you python script.

Statistics: Posted by B.Goode — Mon Jul 01, 2024 10:51 am



Viewing all articles
Browse latest Browse all 4912

Trending Articles