-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: '_io.TextIOWrapper' object has no attribute 'startswith' #529
Comments
@gawbul, it appears that your script is passing a stream wrapped in |
Hi, @andersy005 👋 Thanks for the swift reply 🙏 Yeah, I was just thinking the same myself. I'm doing a code review of the OpenOmics package and just trying to get to the bottom of things at present. I think this is likely an issue with the package or one of its dependencies? I'll let you know how I get on, but might be able to close this. Just trying to do some debugging to understand where it is setting it to a stream object? I think it is somewhere in here https://github.com/BioMeCIS-Lab/OpenOmics/blob/master/openomics/database/base.py. |
Yeah, it appears to be here https://github.com/BioMeCIS-Lab/OpenOmics/blob/master/openomics/database/base.py#L89-L90. As per https://docs.python.org/3/library/gzip.html:
I think it was expecting it to be returned as a standard file object, but the |
Happy to close. Thanks for your help 👍 |
Getting the following error when I'm trying to use a package that depends on
fsspec
:The text was updated successfully, but these errors were encountered: