joenano / rpscrape

Scrape horse racing results data and racecards.
140 stars 57 forks source link

source code string cannot contain null bytes #119

Closed minGRID992020 closed 2 years ago

minGRID992020 commented 2 years ago

Hi,

I had the following error when trying to get results from yesterday.

Any ideas? Is this a problem with the scraper or something to do with my pc?

Thanks again for your hard work on this. It is very much appreciated.

Traceback (most recent call last): File "C:\Users\Owner\rpscrape\scripts\rpscrape.py", line 18, in from utils.update import Update File "C:\Users\Owner\rpscrape\scripts\utils\update.py", line 1, in import subprocess File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1776.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 48, in import signal ValueError: source code string cannot contain null bytes

joenano commented 2 years ago

Subprocess is a built in python module, look in line 48 of the subprocess.py file and remove null bytes. Maybe try converting the file encoding to utf-8

minGRID992020 commented 2 years ago

Thank you for the quick response. That has worked fine! Awesome job again!