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 would love to be able to pass a python File object (with read interfaces etc) rather than just a file on disk: I sometimes have these files in RAM and can't currently read them. It seems to me that this would be a pretty simple fix here but is there something I'm missing?
The text was updated successfully, but these errors were encountered:
Unfortunately it's not that easy: the underlying C library librdata takes only a file on disk. The line you suggest is only a check, because if something which is not a path is passed downstream an error arises, therefore removing it doesn't fix anything.
The only way is to change the C library first. You can submit an issue to librdata if you like, if they do the change, I adapt pyreadr to accommodate it.
Such a change however is not trivial as it may break applications depending on the C library. A similar thing has been proposed for a similar library Readstat and the pull request is stale since a more than one year (WizardMac/ReadStat#179).
For the time being please save those files to disk and then process them.
I would love to be able to pass a python File object (with
read
interfaces etc) rather than just a file on disk: I sometimes have these files in RAM and can't currently read them. It seems to me that this would be a pretty simple fix here but is there something I'm missing?The text was updated successfully, but these errors were encountered: