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
Issue:
When installing pyreadr==0.3.6 from pip , pyreadr.read_r crashes the python process with a 'Segmentation fault' error.
This does not happen when installing from conda-forge
importosimporttempfileimportrequestsimportpyreadrtest_file_url="https://github.com/hadley/nycflights13/blob/master/data/airlines.rda?raw=true"# save to diskff=requests.get(test_file_url)
tempdir=tempfile.TemporaryDirectory()
tmp_f_path=os.path.join(tempdir.name, 'tmpfile')
withopen(tmp_f_path, 'wb') astmp:
tmp.write(ff.content)
result=pyreadr.read_r(tmp_f_path)
print(result['airlines'])
# carrier name# 0 9E Endeavor Air Inc.# 1 AA American Airlines Inc.# 2 AS Alaska Airlines Inc.# 3 B6 JetBlue Airways# 4 DL Delta Air Lines Inc.# 5 EV ExpressJet Airlines Inc.# 6 F9 Frontier Airlines Inc.# 7 FL AirTran Airways Corporation# 8 HA Hawaiian Airlines Inc.# 9 MQ Envoy Air# 10 OO SkyWest Airlines Inc.# 11 UA United Air Lines Inc.# 12 US US Airways Inc.# 13 VX Virgin America# 14 WN Southwest Airlines Co.# 15 YV Mesa Airlines Inc.
exit
Setup Information:
Platform: docker image (jupyter/pyspark-notebook:42f4c82a07ff), running on Docker for Windows. The pip issue also happens with the image python:3-slim.
Python Version: 3.8.6
The text was updated successfully, but these errors were encountered:
Thanks for the report, I can confirm I see the issue on ubuntu running on docker (but not on mac) also with other files. Probably it is something in the environment where the wheels were created (using multibuild on travis), because if I compile from source on ubuntu it is fine.
I'll investigate. For the time being you can either use the conda package or compile from source.
apparently it is caused by a change in the C code in librdata which in turn makes the wheels behave in a strange way. The issue is reported upstream, hopefully can be solved soon.
At the moment the last version that was working without issues on pip is 0.3.3 in case that information helps.
Issue:
When installing pyreadr==0.3.6 from pip , pyreadr.read_r crashes the python process with a 'Segmentation fault' error.
This does not happen when installing from conda-forge
To Reproduce:
Scenario 1 - error
docker run -it --rm --name test_pyreadr --user root jupyter/pyspark-notebook:42f4c82a07ff bash pip install pyreadr==0.3.6 python
exit
Scenario 2 - working
docker run -it --rm --name test_pyreadr --user root jupyter/pyspark-notebook:42f4c82a07ff bash conda install -c conda-forge pyreadr==0.3.6 -y python
exit
Setup Information:
Platform: docker image (jupyter/pyspark-notebook:42f4c82a07ff), running on Docker for Windows. The pip issue also happens with the image python:3-slim.
Python Version: 3.8.6
The text was updated successfully, but these errors were encountered: