
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
BUG: read_parquet leaks file handles on error ยท Issue #46555 ยท pandas-dev/pandas
Description:
Pandas version checks I have checked that this issue has not already been reported. I have confirmed this bug exists on the latest version of pandas. I have confirmed this bug exists on the main branch of pandas. Reproducible Example Run...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {๐}
- Technology & Computing
- Video & Online Content
- DIY & Home Improvement
Content Management System {๐}
What CMS is github.com built with?
Github.com operates using WORDPRESS.
Traffic Estimate {๐}
What is the average monthly size of github.com audience?
๐๐ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,634,219 visitors per month in the current month.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {๐ธ}
Subscription Packages {๐ณ}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {๐ฐ}
Subscription Packages {๐ณ}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 5,306,347 paying customers.
The estimated monthly recurring revenue (MRR) is $22,286,656.
The estimated annual recurring revenues (ARR) are $267,439,867.
Wordpress Themes and Plugins {๐จ}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {๐}
pandas, issue, bug, closed, sign, file, handles, parquet, projects, readparquet, error, flyingsheep, development, import, path, added, navigation, pull, requests, actions, security, leaks, description, version, confirmed, exists, mode, triage, reviewed, team, member, feather, jreback, milestone, github, type, footer, skip, content, menu, product, solutions, resources, open, source, enterprise, pricing, search, jump, pandasdev,
Topics {โ๏ธ}
pass issue description parquet import to_parquet personal information bug close fastparquet file comment metadata assignees latest version bug exists projects milestone 1 file handles open triage issue type projects handles aren parquet' pandas io issue main branch '/tmp/test /finally block 100% complete relationships development mode b'bogus' github feather type read_parquet closed 5 closed path to_parquet development +b' feather sign skip jump checked reported confirmed reproducible run pd dataframe dict seek write exception works running ll
Payment Methods {๐}
- Braintree
Questions {โ}
- Already have an account?
Schema {๐บ๏ธ}
DiscussionForumPosting:
context:https://schema.org
headline:BUG: read_parquet leaks file handles on error
articleBody:### Pandas version checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.
- [X] I have confirmed this bug exists on the main branch of pandas.
### Reproducible Example
Run this in [development mode](https://docs.python.org/3/library/devmode.html):
```python
from pathlib import Path
import pandas as pd
from pandas.io.parquet import to_parquet, read_parquet
path = Path('/tmp/test.parquet')
to_parquet(pd.DataFrame(dict(a=[1])), path)
with path.open('r+b') as f:
f.seek(16)
f.write(b'bogus')
try:
read_parquet(path)
except Exception:
pass
```
### Issue Description
The handles arenโt closed in a `except`/`finally` block, so they only get closed when everything works.
When running the above in [development mode](https://docs.python.org/3/library/devmode.html), youโll see a [`ResourceWarning`](https://docs.python.org/3/library/exceptions.html#ResourceWarning)
### Expected Behavior
all file handles are closed no matter what
### Installed Versions
<details>
INSTALLED VERSIONS
------------------
commit : 06d230151e6f18fdb8139d09abf539867a8cd481
python : 3.9.12.final.0
python-bits : 64
OS : Linux
OS-release : 5.16.16-zen1-1-zen
Version : #1 ZEN SMP PREEMPT Mon, 21 Mar 2022 22:59:42 +0000
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : de_DE.UTF-8
LOCALE : de_DE.UTF-8
pandas : 1.4.1
numpy : 1.22.3
pytz : 2021.1
dateutil : 2.8.1
pip : 22.0.4
setuptools : 57.4.0
Cython : None
pytest : 7.1.1
hypothesis : None
sphinx : 4.3.2
blosc : None
feather : None
xlsxwriter : 1.4.0
lxml.etree : 4.6.3
html5lib : 1.1
pymysql : None
psycopg2 : 2.8.6
jinja2 : 3.0.3
IPython : 7.23.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fastparquet : 0.8.0
fsspec : 2022.02.0
gcsfs : None
matplotlib : 3.4.1
numba : 0.53.1
numexpr : 2.7.3
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : None
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : 1.8.0
sqlalchemy : 1.4.23
tables : 3.6.1
tabulate : 0.8.9
xarray : None
xlrd : 1.2.0
xlwt : None
zstandard : None
</details>
author:
url:https://github.com/flying-sheep
type:Person
name:flying-sheep
datePublished:2022-03-29T10:55:38.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:0
url:https://github.com/46555/pandas/issues/46555
context:https://schema.org
headline:BUG: read_parquet leaks file handles on error
articleBody:### Pandas version checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.
- [X] I have confirmed this bug exists on the main branch of pandas.
### Reproducible Example
Run this in [development mode](https://docs.python.org/3/library/devmode.html):
```python
from pathlib import Path
import pandas as pd
from pandas.io.parquet import to_parquet, read_parquet
path = Path('/tmp/test.parquet')
to_parquet(pd.DataFrame(dict(a=[1])), path)
with path.open('r+b') as f:
f.seek(16)
f.write(b'bogus')
try:
read_parquet(path)
except Exception:
pass
```
### Issue Description
The handles arenโt closed in a `except`/`finally` block, so they only get closed when everything works.
When running the above in [development mode](https://docs.python.org/3/library/devmode.html), youโll see a [`ResourceWarning`](https://docs.python.org/3/library/exceptions.html#ResourceWarning)
### Expected Behavior
all file handles are closed no matter what
### Installed Versions
<details>
INSTALLED VERSIONS
------------------
commit : 06d230151e6f18fdb8139d09abf539867a8cd481
python : 3.9.12.final.0
python-bits : 64
OS : Linux
OS-release : 5.16.16-zen1-1-zen
Version : #1 ZEN SMP PREEMPT Mon, 21 Mar 2022 22:59:42 +0000
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : de_DE.UTF-8
LOCALE : de_DE.UTF-8
pandas : 1.4.1
numpy : 1.22.3
pytz : 2021.1
dateutil : 2.8.1
pip : 22.0.4
setuptools : 57.4.0
Cython : None
pytest : 7.1.1
hypothesis : None
sphinx : 4.3.2
blosc : None
feather : None
xlsxwriter : 1.4.0
lxml.etree : 4.6.3
html5lib : 1.1
pymysql : None
psycopg2 : 2.8.6
jinja2 : 3.0.3
IPython : 7.23.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fastparquet : 0.8.0
fsspec : 2022.02.0
gcsfs : None
matplotlib : 3.4.1
numba : 0.53.1
numexpr : 2.7.3
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : None
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : 1.8.0
sqlalchemy : 1.4.23
tables : 3.6.1
tabulate : 0.8.9
xarray : None
xlrd : 1.2.0
xlwt : None
zstandard : None
</details>
author:
url:https://github.com/flying-sheep
type:Person
name:flying-sheep
datePublished:2022-03-29T10:55:38.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:0
url:https://github.com/46555/pandas/issues/46555
Person:
url:https://github.com/flying-sheep
name:flying-sheep
url:https://github.com/flying-sheep
name:flying-sheep
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:0
interactionType:https://schema.org/CommentAction
userInteractionCount:0
External Links {๐}(5)
- How much profit is https://github.blog making per month?
- Learn how profitable https://pandas.pydata.org/docs/whatsnew/index.html is on a monthly basis
- How much does https://docs.python.org/3/library/devmode.html generate monthly?
- What's the financial outcome of https://docs.python.org/3/library/exceptions.html#ResourceWarning?
- How much does https://www.githubstatus.com/ generate monthly?
Analytics and Tracking {๐}
- Site Verification - Google
Libraries {๐}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {โ๏ธ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net