Error running a Python script on the web via PHP

301 views Asked by At

I'm facing a not understandable error when I'm launching my Python script on my ftp server via PHP, which is the following:

Traceback (most recent call last): File "./data.py", line 9, in import urllib.request File "/home/www/urllib/request.py", line 88, in import http.client File "/home/www/http/client.py", line 1063 chunk = f'{len(chunk):X}\r\n'.encode('ascii') + chunk \ ^ SyntaxError: invalid syntax SyntaxError: invalid syntax

Would you have any idea? I have no clue about this. I've checked out the "http.client.py" but can't find any issue with this part of the code.

Many thanks

0

There are 0 answers