René's URL Explorer Experiment


Title: Attribute error when testing on system without ghostscript · Issue #3259 · matplotlib/matplotlib · GitHub

Open Graph Title: Attribute error when testing on system without ghostscript · Issue #3259 · matplotlib/matplotlib

X Title: Attribute error when testing on system without ghostscript · Issue #3259 · matplotlib/matplotlib

Description: This was the meat of issue #3152, but there were other failures attached to that ticket, so it got confusing. Reopening with the main issue here: I'm getting a confusing test error when testing on OSX where ghostscript is not installed. ...

Open Graph Description: This was the meat of issue #3152, but there were other failures attached to that ticket, so it got confusing. Reopening with the main issue here: I'm getting a confusing test error when testing on ...

X Description: This was the meat of issue #3152, but there were other failures attached to that ticket, so it got confusing. Reopening with the main issue here: I'm getting a confusing test error when testing...

Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3259

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Attribute error when testing on system without ghostscript","articleBody":"This was the meat of issue #3152, but there were other failures attached to that ticket, so it got confusing.  Reopening with the main issue here:\n\nI'm getting a confusing test error when testing on OSX where ghostscript is not installed.\n\nI am not sure what the right approach is, to avoiding this test when there is no 'gs' binary or equivalent - any advice from the experts?\n\nhttps://api.travis-ci.org/jobs/28506496/log.txt?deansi=true\n\n```\n======================================================================\nERROR: matplotlib.tests.test_backend_ps.test_savefig_to_stringio_with_distiller\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/nose-1.3.3-py3.3.egg/nose/case.py\", line 198, in runTest\n    self.test(*self.arg)\n  File \"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib-1.4.x-py3.3-macosx-10.6-intel.egg/matplotlib/testing/decorators.py\", line 110, in wrapped_function\n    func(*args, **kwargs)\n  File \"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib-1.4.x-py3.3-macosx-10.6-intel.egg/matplotlib/tests/test_backend_ps.py\", line 53, in test_savefig_to_stringio_with_distiller\n    _test_savefig_to_stringio()\n  File \"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib-1.4.x-py3.3-macosx-10.6-intel.egg/matplotlib/tests/test_backend_ps.py\", line 27, in _test_savefig_to_stringio\n    plt.savefig(buffer, format=format)\n  File \"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib-1.4.x-py3.3-macosx-10.6-intel.egg/matplotlib/pyplot.py\", line 571, in savefig\n    res = fig.savefig(*args, **kwargs)\n  File \"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib-1.4.x-py3.3-macosx-10.6-intel.egg/matplotlib/figure.py\", line 1470, in savefig\n    self.canvas.print_figure(*args, **kwargs)\n  File \"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib-1.4.x-py3.3-macosx-10.6-intel.egg/matplotlib/backend_bases.py\", line 2192, in print_figure\n    **kwargs)\n  File \"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib-1.4.x-py3.3-macosx-10.6-intel.egg/matplotlib/backends/backend_ps.py\", line 985, in print_ps\n    return self._print_ps(outfile, 'ps', *args, **kwargs)\n  File \"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib-1.4.x-py3.3-macosx-10.6-intel.egg/matplotlib/backends/backend_ps.py\", line 1016, in _print_ps\n    **kwargs)\n  File \"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib-1.4.x-py3.3-macosx-10.6-intel.egg/matplotlib/backends/backend_ps.py\", line 1218, in _print_figure\n    gs_distill(tmpfile, isEPSF, ptype=papertype, bbox=bbox)\n  File \"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib-1.4.x-py3.3-macosx-10.6-intel.egg/matplotlib/backends/backend_ps.py\", line 1520, in gs_distill\n    if ps_backend_helper.supports_ps2write: # gs version >= 9\n  File \"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib-1.4.x-py3.3-macosx-10.6-intel.egg/matplotlib/backends/backend_ps.py\", line 109, in supports_ps2write\n    return self.gs_version[0] >= 9\n  File \"/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib-1.4.x-py3.3-macosx-10.6-intel.egg/matplotlib/backends/backend_ps.py\", line 99, in gs_version\n    gs_version = tuple(map(int, ver.strip().split(\".\")))\nValueError: invalid literal for int() with base 10: ''\n```\n\nThe error arises because `ver` in the code above is the empty string, and this is so because Popen execute of `gs --version` returns the empty string when there there is no `gs` binary (around line 93 of `lib/matplotlib/backends/backend_ps.py`).  I guess this Popen call should raise an error (check of returncode), but I guess we also need to make sure this version check doesn't get called when `gs` is not present, and I'm not sure of the cleanest way to achieve that.\n","author":{"url":"https://github.com/matthew-brett","@type":"Person","name":"matthew-brett"},"datePublished":"2014-07-14T20:55:03Z","url":"https://github.com/matplotlib/matplotlib/issues/3259"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4acdd1cc-6369-07d0-7dbb-f39baad3fb95
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9D98:DAF5F:1AEE05F:236B629:6B067C77
html-safe-nonce021fddaae4a62a7b7d0edd7a3d81756de658ac3d6ed19559821a5614cade3ed3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDk4OkRBRjVGOjFBRUUwNUY6MjM2QjYyOTo2QjA2N0M3NyIsInZpc2l0b3JfaWQiOiI1Mjg3MjYxMzcyMDM4OTM3NzIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5cb33433dbe85a44f5a2091725f6f3c47c07ee51c48008f6986d53098460571a
hovercard-subject-tagissue:37827193
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/3259/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9fb05b3954e101e57325e415b0f956c2354df4ddcd7534a7518750e80adf4ee5/matplotlib/matplotlib/issues/3259
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9fb05b3954e101e57325e415b0f956c2354df4ddcd7534a7518750e80adf4ee5/matplotlib/matplotlib/issues/3259
og:image:altThis was the meat of issue #3152, but there were other failures attached to that ticket, so it got confusing. Reopening with the main issue here: I'm getting a confusing test error when testing on ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamematthew-brett
hostnamegithub.com
expected-hostnamegithub.com
None4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a
turbo-cache-controlno-preview
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6d3909414814ff86ce7da4c51a0f4918a13fb41b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/3259#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F3259
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F3259
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/3259
Reloadhttps://github.com/matplotlib/matplotlib/issues/3259
Reloadhttps://github.com/matplotlib/matplotlib/issues/3259
matplotlibhttps://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Codehttps://github.com/matplotlib/matplotlib
Issues1k (1k)https://github.com/matplotlib/matplotlib/issues
Pull requests430 (430)https://github.com/matplotlib/matplotlib/pulls
Actionshttps://github.com/matplotlib/matplotlib/actions
Projectshttps://github.com/matplotlib/matplotlib/projects
Wikihttps://github.com/matplotlib/matplotlib/wiki
Security and qualityhttps://github.com/matplotlib/matplotlib/security
Insightshttps://github.com/matplotlib/matplotlib/insights
https://github.com/matplotlib/matplotlib
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/3259
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/3259
Attribute error when testing on system without ghostscripthttps://github.com/matplotlib/matplotlib/issues/3259#top
v1.4.0https://github.com/matplotlib/matplotlib/milestone/10
https://github.com/matthew-brett
matthew-bretthttps://github.com/matthew-brett
on Jul 14, 2014https://github.com/matplotlib/matplotlib/issues/3259#issue-37827193
#3152https://github.com/matplotlib/matplotlib/issues/3152
https://api.travis-ci.org/jobs/28506496/log.txt?deansi=truehttps://api.travis-ci.org/jobs/28506496/log.txt?deansi=true
tacaswellhttps://github.com/tacaswell
v1.4.0https://github.com/matplotlib/matplotlib/milestone/10
on Jul 14, 2014https://github.com/matplotlib/matplotlib/issues/3259#event-141438568
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Jul 14, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-48962056
@matthew-bretthttps://github.com/matthew-brett
https://github.com/matthew-brett
matthew-bretthttps://github.com/matthew-brett
on Jul 14, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-48964127
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Jul 18, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-49424646
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Jul 18, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-49425941
@matthew-bretthttps://github.com/matthew-brett
https://github.com/jenshnielsen
jenshnielsenhttps://github.com/jenshnielsen
on Jul 18, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-49436432
#3235https://github.com/matplotlib/matplotlib/pull/3235
https://github.com/matthew-brett
matthew-bretthttps://github.com/matthew-brett
on Jul 18, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-49481845
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Jul 18, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-49483850
@matthew-bretthttps://github.com/matthew-brett
https://github.com/matthew-brett
matthew-bretthttps://github.com/matthew-brett
on Jul 24, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-50087948
https://s3.amazonaws.com/archive.travis-ci.org/jobs/30794968/log.txthttps://s3.amazonaws.com/archive.travis-ci.org/jobs/30794968/log.txt
https://github.com/jenshnielsen
jenshnielsenhttps://github.com/jenshnielsen
on Jul 25, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-50117267
https://github.com/jenshnielsen
jenshnielsenhttps://github.com/jenshnielsen
on Jul 25, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-50117705
#3302https://github.com/matplotlib/matplotlib/pull/3302
https://github.com/jenshnielsen
jenshnielsenhttps://github.com/jenshnielsen
on Jul 25, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-50127436
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Jul 26, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-50233297
@matthew-bretthttps://github.com/matthew-brett
tacaswellhttps://github.com/tacaswell
completedhttps://github.com/matplotlib/matplotlib/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 26, 2014https://github.com/matplotlib/matplotlib/issues/3259#event-145912062
https://github.com/matthew-brett
matthew-bretthttps://github.com/matthew-brett
on Jul 26, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-50248330
https://s3.amazonaws.com/archive.travis-ci.org/jobs/30794968/log.txthttps://s3.amazonaws.com/archive.travis-ci.org/jobs/30794968/log.txt
#3312https://github.com/matplotlib/matplotlib/pull/3312
tacaswellhttps://github.com/tacaswell
on Jul 27, 2014https://github.com/matplotlib/matplotlib/issues/3259#event-145966270
https://github.com/matthew-brett
matthew-bretthttps://github.com/matthew-brett
on Jul 27, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-50258355
#3314https://github.com/matplotlib/matplotlib/issues/3314
#3315https://github.com/matplotlib/matplotlib/issues/3315
https://travis-ci.org/matthew-brett/mpl_mac_testing/builds/30950971https://travis-ci.org/matthew-brett/mpl_mac_testing/builds/30950971
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Jul 29, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-50431114
@matthew-bretthttps://github.com/matthew-brett
https://github.com/matthew-brett
matthew-bretthttps://github.com/matthew-brett
on Jul 29, 2014https://github.com/matplotlib/matplotlib/issues/3259#issuecomment-50431370
tacaswellhttps://github.com/tacaswell
completedhttps://github.com/matplotlib/matplotlib/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 29, 2014https://github.com/matplotlib/matplotlib/issues/3259#event-146652039
Sign up for freehttps://github.com/signup?return_to=https://github.com/matplotlib/matplotlib/issues/3259
Sign in to commenthttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/3259
v1.4.0https://github.com/matplotlib/matplotlib/milestone/10
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.