You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I first ran pip install -r requirements.txt in a new .venv
but when running python createMeasurements.py i get the following error:
Traceback (most recent call last):
File "D:\CodingProjecs\Python\1brc\createMeasurements.py", line 507, in
measurement.generate_measurement_file(
File "D:\CodingProjecs\Python\1brc\createMeasurements.py", line 463, in generate_measurement_file
data.write_csv(f, separator=sep, float_precision=1, include_header=False)
File "D:\CodingProjecs\Python\1brc.venv\Lib\site-packages\polars\dataframe\frame.py", line 2719, in write_csv
self._df.write_csv(
polars.exceptions.InvalidOperationError: file encoding is not UTF-8
The text was updated successfully, but these errors were encountered:
Hi @Holthuizen, thank you. Please pull the latest commit and try again. There were a PR open to fix that and I didn't merge it until now. The problem was when opening the measurement file to write to it the encoding was not set to UTF-8.
I first ran
pip install -r requirements.txt
in a new .venvbut when running
python createMeasurements.py
i get the following error:Traceback (most recent call last):
File "D:\CodingProjecs\Python\1brc\createMeasurements.py", line 507, in
measurement.generate_measurement_file(
File "D:\CodingProjecs\Python\1brc\createMeasurements.py", line 463, in generate_measurement_file
data.write_csv(f, separator=sep, float_precision=1, include_header=False)
File "D:\CodingProjecs\Python\1brc.venv\Lib\site-packages\polars\dataframe\frame.py", line 2719, in write_csv
self._df.write_csv(
polars.exceptions.InvalidOperationError: file encoding is not UTF-8
The text was updated successfully, but these errors were encountered: