Comments (2)
I'm running into the same problem. I believe it's caused by these lines from try_open_gzip()
in celparser.pyx:
try:
fh = gzip.open(path)
fh.read(1)
except IOError:
pass
It's checking for IOError
. But the gzip reader throws an OSError
instead, which it doesn't catch.
from pyaffy.
Here is a working version of try_open_gzip()
:
def try_open_gzip(path):
fh = None
try:
fh = gzip.open(path)
fh.read(1)
except (IOError, OSError):
fh = None
else:
fh = gzip.open(path)
return fh
There are two changes. It catches OSError
, and the error handler needs to set fh
to None
.
from pyaffy.
Related Issues (16)
- Estimation of `mu` parameter sometimes fails HOT 1
- Implement a Cython-based parser for the Command Console CEL format HOT 1
- Expand README HOT 1
- CEL file parser fails to parse non-ASCII characters in Version 4 format CEL files HOT 1
- Tests? HOT 2
- Make alpha background parameter value configurable
- Include link to toy example in README HOT 1
- Dependency not declared in setup.py (configparser) HOT 1
- python3 compatible? requirements? HOT 3
- cdfparser is not found. HOT 1
- Error caused by inconsistent bytes/str
- File handle leak
- File "pyaffy/cdfparser.pyx", line 193, in pyaffy.cdfparser.parse_cdf AssertionError
- Issue with installation of pyaffy
- pip installation errors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyaffy.