Title: Documentation issues · Issue #6527 · matplotlib/matplotlib · GitHub
Open Graph Title: Documentation issues · Issue #6527 · matplotlib/matplotlib
X Title: Documentation issues · Issue #6527 · matplotlib/matplotlib
Description: I'm building mpl documentation and wanted to notice these issues: On Windows os.symlink() requires administrative privileges: Traceback (most recent call last): File "make.py", line 172, in
Open Graph Description: I'm building mpl documentation and wanted to notice these issues: On Windows os.symlink() requires administrative privileges: Traceback (most recent call last): File "make.py", line 172, in X Description: I'm building mpl documentation and wanted to notice these issues: On Windows os.symlink() requires administrative privileges: Traceback (most recent call last): File "make.py", line 1...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6527
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Documentation issues","articleBody":"I'm building mpl documentation and wanted to notice these issues:\n\n1) On Windows `os.symlink()` requires administrative privileges:\n\n``` pytb\nTraceback (most recent call last):\n File \"make.py\", line 172, in \u003cmodule\u003e\n os.symlink(target, link)\nOSError: symbolic link privilege not held\n```\n\nI'll propose this workaround:\n\n``` diff\n--- a/doc/make.py\n+++ b/doc/make.py\n\n@@ -168,9 +178,9 @@ for link, target in required_symlinks:\n raise RuntimeError(\"doc/{0} should be a directory or symlink -- it\"\n \" isn't\".format(link))\n if not os.path.exists(link):\n- if hasattr(os, 'symlink'):\n+ try:\n os.symlink(target, link)\n- else:\n+ except OSError:\n symlink_warnings.append('files copied to {0}'.format(link))\n shutil.copytree(os.path.join(link, '..', target), link)\n```\n\n---\n\n2) Documentation's readme says that besides installed matplotlib it is also required matplotlib to be build from source. This seemed unfortunate and I made this workaround to avoid building:\n\n``` diff\n--- a/doc/make.py\n+++ b/doc/make.py\n\n@@ -7,6 +7,7 @@ import shutil\n import sys\n import re\n import argparse\n+import matplotlib\n\n def copy_if_out_of_date(original, derived):\n if (not os.path.exists(derived) or\n@@ -38,7 +39,11 @@ def linkcheck():\n\n def html(buildername='html'):\n check_build()\n- copy_if_out_of_date('../lib/matplotlib/mpl-data/matplotlibrc', '_static/matplotlibrc')\n+ rc = '../lib/matplotlib/mpl-data/matplotlibrc'\n+ active_rc = matplotlib.matplotlib_fname()\n+ if not os.path.exists(rc) and os.path.exists(active_rc):\n+ rc = active_rc\n+ copy_if_out_of_date(rc, '_static/matplotlibrc')\n if small_docs:\n options = \"-D plot_formats=png:80\"\n```\n\n---\n\n3) On finishing, I got this error:\n\n```\n...\ngenerating indices... genindex py-modindex\nwriting additional pages... index citing gallery\nWarning, treated as error:\nWARNING: a Unicode error occurred when rendering the page gallery. Please make sure all config values that contain non-ASCII content are Unicode strings.\n```\n\nAfter quite digging around, I figured that `gen_gallery.py` is responsible for this error - generated `gallery.html` ended encoded in my local code page instead UTF-8. I converted gallery file to UTF-8 and disabled writing to this file in `gen_gallery.py` to be able to make the docs.\n\nI'm not comfortable with trying to fix this, considering both Python versions and OSs, so just to report.\n\n---\n\n_matplotlib-2.0.0b1 on 64-bit Python 3.5.1 on Windows 10_\n","author":{"url":"https://github.com/klonuo","@type":"Person","name":"klonuo"},"datePublished":"2016-06-02T02:46:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/6527/matplotlib/issues/6527"}
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:26e213b6-e1c7-0601-ea6c-3846ffad2bd7 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 845C:3A401E:BD3C25:FE8896:6A52BD2B html-safe-nonce ae6fed2573acce746f3f188dd676651c838e352902f75388396e3b5dfee76176 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDVDOjNBNDAxRTpCRDNDMjU6RkU4ODk2OjZBNTJCRDJCIiwidmlzaXRvcl9pZCI6IjIzMDU1NTczODcwODIzODI2MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac 232f177c8ae32cc4afb47d112a60b3dd088acd09d9b918a4e90fd7ef4b661704 hovercard-subject-tag issue:158048496 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/matplotlib/matplotlib/6527/issue_layout twitter:image https://opengraph.githubassets.com/519e6d0529753824f03eeaf726fd258713af7d562b605feaa0eecf8305ad637b/matplotlib/matplotlib/issues/6527 twitter:card summary_large_image og:image https://opengraph.githubassets.com/519e6d0529753824f03eeaf726fd258713af7d562b605feaa0eecf8305ad637b/matplotlib/matplotlib/issues/6527 og:image:alt I'm building mpl documentation and wanted to notice these issues: On Windows os.symlink() requires administrative privileges: Traceback (most recent call last): File "make.py", line 172, in og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username klonuo hostname github.com expected-hostname github.com None b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb turbo-cache-control no-preview go-import github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git octolytics-dimension-user_id 215947 octolytics-dimension-user_login matplotlib octolytics-dimension-repository_id 1385122 octolytics-dimension-repository_nwo matplotlib/matplotlib octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 1385122 octolytics-dimension-repository_network_root_nwo matplotlib/matplotlib 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 07a982c1d40157c619b364352b704c3ce66bb332 ui-target canary-1 theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.