Title: Unable to explicitly close files opened with IfcOpenShell · Issue #650 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Unable to explicitly close files opened with IfcOpenShell · Issue #650 · IfcOpenShell/IfcOpenShell
X Title: Unable to explicitly close files opened with IfcOpenShell · Issue #650 · IfcOpenShell/IfcOpenShell
Description: The IfcOpenShell Python wrapper lacks an explicit close() method, and also an implementation of the exit() method used for with statements. This means that when creating a large number of IFC files from a script, eventually the script wi...
Open Graph Description: The IfcOpenShell Python wrapper lacks an explicit close() method, and also an implementation of the exit() method used for with statements. This means that when creating a large number of IFC files...
X Description: The IfcOpenShell Python wrapper lacks an explicit close() method, and also an implementation of the exit() method used for with statements. This means that when creating a large number of IFC files...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/650
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to explicitly close files opened with IfcOpenShell","articleBody":"The IfcOpenShell Python wrapper lacks an explicit close() method, and also an implementation of the __exit__() method used for with statements.\r\nThis means that when creating a large number of IFC files from a script, eventually the script will fail due to the number of open files. \r\nError message: \r\n```\r\nOSError: [Errno 24] Too many open files\r\n```\r\nAttached sample script that reproduces the error. \r\n[IfcSplit.py.txt](https://github.com/IfcOpenShell/IfcOpenShell/files/3455488/IfcSplit.py.txt)\r\n\r\nTested with the Office MEP coordination model from http://projects.buildingsmartalliance.org/files/?artifact_id=4284 but should be possible to reproduce with any sufficiently large file (containing more products than the OS file handle limit, on my machine this means >2000 products).","author":{"url":"https://github.com/polyramus","@type":"Person","name":"polyramus"},"datePublished":"2019-08-01T07:44:21Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/650"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:93149ece-3fe9-6bb2-e120-88d2545f337e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD88:34BF4C:3CF0:53AD:6B04AD29 |
| html-safe-nonce | 6695e57b48c7cc7ce211a28815149ee6eeb8e8b4d29ce0c4222568c10888db04 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDg4OjM0QkY0QzozQ0YwOjUzQUQ6NkIwNEFEMjkiLCJ2aXNpdG9yX2lkIjoiNDE1MTMwNTEzODU3NTAyNzQ5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0dbe2fd29108aa8285d1a861d253bafd750272b1385a79cc4f0e673bdf3ee50a |
| hovercard-subject-tag | issue:475526006 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/650/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9da6a67d15b53248321995a8d38946778bb187b6b54791f297e084d350bb5294/IfcOpenShell/IfcOpenShell/issues/650 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9da6a67d15b53248321995a8d38946778bb187b6b54791f297e084d350bb5294/IfcOpenShell/IfcOpenShell/issues/650 |
| og:image:alt | The IfcOpenShell Python wrapper lacks an explicit close() method, and also an implementation of the exit() method used for with statements. This means that when creating a large number of IFC files... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | polyramus |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width