Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download PDF - nbconvert failed: Unsupported platform: freebsd12 #572

Open
ManPython opened this issue Oct 22, 2021 · 9 comments
Open

Download PDF - nbconvert failed: Unsupported platform: freebsd12 #572

ManPython opened this issue Oct 22, 2021 · 9 comments

Comments

@ManPython
Copy link

What is reason that jupyter is Unsupported platform: freebsd12 when want download PDF? ;/

@ivanov
Copy link
Member

ivanov commented Dec 12, 2023

@ManPython sorry this never got answered: how did you get that message? I suspect this had to do with just not having pandoc installed, but I'm not certain. I'm going through old issues and it seems to me that it makes sense to close this one, let's open a new issue if this is still a problem, and include information about how you installed jupyter (ports? pip? conda?) as well as what versions are being used.

Thanks and happy hacking! :bowtie:

@ivanov ivanov closed this as completed Dec 12, 2023
@ManPython
Copy link
Author

ManPython commented Dec 12, 2023

@ivanov Imagine that after this issue I never meet option to export pdf..
betatim/notebook-as-pdf#43

@ManPython
Copy link
Author

ManPython commented Jan 13, 2024

/nbconvert/webpdf/test/Untitled.ipynb?download=true


500 : Internal Server Error

The error was:

nbconvert failed: Unsupported platform: freebsd13

https://mljar.com/blog/jupyter-notebook-pdf/
+

@ManPython
Copy link
Author

https://mljar.com/blog/jupyter-notebook-pdf/
pdf print

Bad view to print also by ctr+p (FF 121, W11)

@ivanov ivanov reopened this Jan 14, 2024
@ivanov
Copy link
Member

ivanov commented Jan 14, 2024

@ManPython thanks for the update - can you post the results of running jupyter troubleshoot in your shell?

Also, how did you install Jupyter tools. I tried to quickly scan https://github.com/jupyter/nbconvert/ but didn't see any similar messages.

@ManPython
Copy link
Author

webpdf is installed to try generate pdf in this way.. but also failed

$PATH:
        /usr/home/ManPython/.virtualenvs/venvp311/bin
        /usr/local/devil/bin
        /sbin
        /bin
        /usr/sbin
        /usr/bin
        /usr/games
        /usr/local/sbin
        /usr/local/bin
        /usr/X11R6/bin
        /home/ManPython/bin

sys.path:
        /usr/home/ManPython/.virtualenvs/venvp311/bin
        /usr/local/lib/python311.zip
        /usr/local/lib/python3.11
        /usr/local/lib/python3.11/lib-dynload
        /usr/home/ManPython/.virtualenvs/venvp311/lib/python3.11/site-packages

sys.executable:
        /usr/home/ManPython/.virtualenvs/venvp311/bin/python

sys.version:
        3.11.3 (main, May 20 2023, 04:58:46) [Clang 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386

platform.platform():
        FreeBSD-13.2-RELEASE-amd64-64bit-ELF

which -a jupyter:
        /usr/home/ManPython/.virtualenvs/venvp311/bin/jupyter

pip list:
        Package                        Version
        ------------------------------ ---------------
        anyio                          4.2.0
        appdirs                        1.4.4
        argon2-cffi                    23.1.0
        argon2-cffi-bindings           21.2.0
        arrow                          1.3.0
        asttokens                      2.4.1
        async-lru                      2.0.4
        attrs                          23.2.0
        Babel                          2.14.0
        beautifulsoup4                 4.12.2
        bleach                         6.1.0
        certifi                        2023.11.17
        cffi                           1.16.0
        charset-normalizer             3.3.2
        comm                           0.2.1
        contourpy                      1.2.0
        cycler                         0.12.1
        debugpy                        1.8.0
        decorator                      5.1.1
        defusedxml                     0.7.1
        executing                      2.0.1
        fastjsonschema                 2.19.1
        fonttools                      4.47.2
        fqdn                           1.5.1
        idna                           3.6
        importlib-metadata             7.0.1
        ipykernel                      6.28.0
        ipython                        8.20.0
        ipywidgets                     8.1.1
        isoduration                    20.11.0
        jedi                           0.19.1
        Jinja2                         3.1.3
        json5                          0.9.14
        jsonpointer                    2.4
        jsonschema                     4.20.0
        jsonschema-specifications      2023.12.1
        jupyter                        1.0.0
        jupyter_client                 8.6.0
        jupyter-console                6.6.3
        jupyter_core                   5.7.1
        jupyter-events                 0.9.0
        jupyter-lsp                    2.2.1
        jupyter_server                 2.12.4
        jupyter_server_terminals       0.5.1
        jupyterlab                     4.0.10
        jupyterlab-language-pack-pl-PL 4.0.post6
        jupyterlab_pygments            0.3.0
        jupyterlab_server              2.25.2
        jupyterlab-widgets             3.0.9
        kiwisolver                     1.4.5
        MarkupSafe                     2.1.3
        matplotlib                     3.8.2
        matplotlib-inline              0.1.6
        mistune                        3.0.2
        nbclient                       0.9.0
        nbconvert                      7.6.0
        nbextensions                   66.0.2
        nbformat                       5.9.2
        nest-asyncio                   1.5.8
        notebook                       7.0.6
        notebook_shim                  0.2.3
        numpy                          1.26.3
        overrides                      7.4.0
        packaging                      23.2
        pandas                         2.1.4
        pandocfilters                  1.5.0
        parso                          0.8.3
        pexpect                        4.9.0
        pillow                         10.2.0
        pip                            23.3.2
        platformdirs                   4.1.0
        prometheus-client              0.19.0
        prompt-toolkit                 3.0.43
        psutil                         5.9.7
        ptyprocess                     0.7.0
        pure-eval                      0.2.2
        pycparser                      2.21
        pyee                           8.2.2
        Pygments                       2.17.2
        pyparsing                      3.1.1
        pyppeteer                      1.0.2
        python-dateutil                2.8.2
        python-json-logger             2.0.7
        pytz                           2023.3.post1
        PyYAML                         6.0.1
        pyzmq                          25.1.2
        qtconsole                      5.5.1
        QtPy                           2.4.1
        referencing                    0.32.1
        requests                       2.31.0
        rfc3339-validator              0.1.4
        rfc3986-validator              0.1.1
        rpds-py                        0.17.1
        Send2Trash                     1.8.2
        setuptools                     67.7.2
        six                            1.16.0
        sniffio                        1.3.0
        soupsieve                      2.5
        sqlite3                        0.0.0
        stack-data                     0.6.3
        terminado                      0.18.0
        tinycss2                       1.2.1
        Tkinter                        0.0.0
        tornado                        6.4
        tqdm                           4.66.1
        traitlets                      5.14.1
        types-python-dateutil          2.8.19.20240106
        tzdata                         2023.4
        uri-template                   1.3.0
        urllib3                        1.26.18
        wcwidth                        0.2.13
        webcolors                      1.13
        webencodings                   0.5.1
        websocket-client               1.7.0
        websockets                     10.4
        wheel                          0.40.0
        widgetsnbextension             4.0.9
        zipp                           3.17.0

@ManPython
Copy link
Author

When exporting with PDFviaHTML this same error as:


500 : Internal Server Error

The error was:

nbconvert failed: Unsupported platform: freebsd13

@ivanov
Copy link
Member

ivanov commented Mar 27, 2024

@ManPython I think I tracked this down the webpdf failure to playwright not supporting FreeBSD - see microsoft/playwright#5084 which includes a workaround by adding:

two lines to a global .npmrc to skip browsers install:

playwright_skip_browser_download=1
playwright_browsers_path=/nonexistent

and another possibility here is to export PLAYWRIGHT_BROWSERS_PATH=/nonexistent (which I found via discussion in louislam/uptime-kuma#3642 )

@ManPython
Copy link
Author

I see.. many feedback about low support around FreeBSD and Python. Thats poor case, coz this type servers with this OS is very popular coz comfy to prepare for Python and many other tools.
apache/arrow#40776 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants