Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 28-12-2023, 07:24   #196
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,739
Images: 2
Re: Dashboard-Tactics (Dash T)

When I pushed the change to sphinx 4.3.0 and tried to build readthedocs it failed again. Don't understand this error. Should I try python 3.9?

Build #22969265
latest (6d34ba04512067f40dcce3862cdd52c112e10c68)
Build failed
Error

We encountered a problem with a command while building your project. To resolve this error, double check your project configuration and installed dependencies are correct and have not changed recently.

Quote:
File "/home/docs/checkouts/readthedocs.org/user_builds/dashboard-tactics-pi/envs/latest/lib/python3.11/site-packages/jinja2/__init__.py", line 12, in <module>
from .environment import Environment
File "/home/docs/checkouts/readthedocs.org/user_builds/dashboard-tactics-pi/envs/latest/lib/python3.11/site-packages/jinja2/environment.py", line 25, in <module>
from .defaults import BLOCK_END_STRING
File "/home/docs/checkouts/readthedocs.org/user_builds/dashboard-tactics-pi/envs/latest/lib/python3.11/site-packages/jinja2/defaults.py", line 3, in <module>
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/docs/checkouts/readthedocs.org/user_builds/dashboard-tactics-pi/envs/latest/lib/python3.11/site-packages/jinja2/filters.py", line 13, in <module>
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/docs/checkouts/readthedocs.org/user_builds/dashboard-tactics-pi/envs/latest/lib/python3.11/site-packages/markupsafe/__init__.py)
rgleason is offline   Reply With Quote
Old 28-12-2023, 07:35   #197
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Dashboard-Tactics (Dash T)

Even newer Sphinx, maybe.
nohal is offline   Reply With Quote
Old 28-12-2023, 08:03   #198
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,739
Images: 2
Re: Dashboard-Tactics (Dash T)

Sphinx Release 4.3.0 (released Nov 11, 2021)
Dependencies
Support Python 3.10
There are "incompatible changes" and "depricated" items....?


I could dial back python to 3.10?
also perhaps move Sphinx Release 4.4.0 (released Jan 17, 2022) which fixes a lot with no downside.
rgleason is offline   Reply With Quote
Old 28-12-2023, 08:13   #199
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Dashboard-Tactics (Dash T)

Rick, I really don't know. You don't need to ask me about every random thing you are going to try.
nohal is offline   Reply With Quote
Old 28-12-2023, 08:25   #200
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,739
Images: 2
Re: Dashboard-Tactics (Dash T)

Tried that. Same error
Build #22969597
latest (7ea79c0ba99d035f389ee0c754ca6a0b184676bd)
Build failed
Error

We encountered a problem with a command while building your project. To resolve this error, double check your project configuration and installed dependencies are correct and have not changed recently.



Quote:
File "/home/docs/checkouts/readthedocs.org/user_builds/dashboard-tactics-pi/envs/latest/lib/python3.10/site-packages/jinja2/filters.py", line 13, in <module> from markupsafe import soft_unicode ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/docs/checkouts/readthedocs.org/user_builds/dashboard-tactics-pi/envs/latest/lib/python3.10/site-packages/markupsafe/__init__.py)
rgleason is offline   Reply With Quote
Old 28-12-2023, 08:33   #201
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,739
Images: 2
Re: Dashboard-Tactics (Dash T)

From sphinx changelog
Release 3.3.1 (released Nov 12, 2020)
Bugs fixed
  • #8372: autodoc: autoclass directive became slower than Sphinx 3.2
  • #7727: autosummary: raise PycodeError when documenting python package without __init__.py


https://github.com/pallets/markupsafe/issues/284
https://duckduckgo.com/?q=cannot+imp...=v362-1&ia=web
https://bobbyhadz.com/blog/python-im...rom-markupsafe
https://sebhastian.com/importerror-c...om-markupsafe/
rgleason is offline   Reply With Quote
Old 28-12-2023, 08:37   #202
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Dashboard-Tactics (Dash T)

Your problem is the mismatch between Jinja and markupsafe. None of these are explicitly pulled in so they are dependencies of something you are using.
I don't know what, so you simply either have to investigate yourself (and actually understand the thing) or keep trying changing the versions until you find a working combination.
This is absolutely normal when you update the environment under something that has been abandoned for several years and I simply don't have any better advice for you.

You don't need to post random irrelevant snippets from Sphinx changelog, I have of course already seen it all and there is no mention of the particular problem you are seeing being explicitly addressed in some release.
nohal is offline   Reply With Quote
Old 28-12-2023, 10:06   #203
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Dashboard-Tactics (Dash T)

If I use this in requirements.txt, the documentation is buildable on my machine. If it is usable on the ReadTheDocs image I do not know, but you may try

Code:
ipykernel==6.28.0
nbsphinx==0.9.3
Sphinx==7.2.6
nohal is offline   Reply With Quote
Old 28-12-2023, 10:11   #204
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Dashboard-Tactics (Dash T)

you may also need to replace this line: https://github.com/rgleason/dashboar...ce/conf.py#L47

with

Code:
source_suffix = ['.rst']
nohal is offline   Reply With Quote
Old 28-12-2023, 12:11   #205
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,739
Images: 2
Re: Dashboard-Tactics (Dash T)

Thanks Pavel, I of course haven't a clue about what I am doing. I am just trying to recreate something that was working, with a lot of help from you! I will give those things a try.
rgleason is offline   Reply With Quote
Old 28-12-2023, 12:25   #206
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,739
Images: 2
Re: Dashboard-Tactics (Dash T)

In requirements.txt should I remove
Pygments==2.9.0 ?
rgleason is offline   Reply With Quote
Old 28-12-2023, 12:30   #207
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,739
Images: 2
Re: Dashboard-Tactics (Dash T)

Pavel see this

https://github.com/rgleason/dashboar...ns/20013650527
https://app.circleci.com/pipelines/g...?branch=master

What is publishfocal? Is this coming from readthedocs? Why would I want to publish? Why there?
It is trying to publish to cloudsmith? If so, I think I might have to enable it, although the plugin CI is all in place.
rgleason is offline   Reply With Quote
Old 28-12-2023, 12:38   #208
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,739
Images: 2
Re: Dashboard-Tactics (Dash T)

https://readthedocs.org/projects/das...ilds/22970951/



Quote:
Requirement already satisfied: sphinxcontrib-qthelp in /home/docs/checkouts/readthedocs.org/user_builds/dashboard-tactics-pi/envs/latest/lib/python3.10/site-packages (from Sphinx==7.2.6->-r docs/readthedocs/requirements.txt (line 3)) (1.0.6)
INFO: pip is looking at multiple versions of sphinx to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install Pygments==2.9.0 and sphinx==7.2.6 because these package versions have conflicting dependencies.

The conflict is caused by:
The user requested Pygments==2.9.0
sphinx 7.2.6 depends on Pygments>=2.14

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
Should I remove Pygments==2.9.0
or change to Pygments>=2.14 ?
rgleason is offline   Reply With Quote
Old 28-12-2023, 12:40   #209
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Dashboard-Tactics (Dash T)

Quote:
Originally Posted by rgleason View Post
Should I remove Pygments==2.9.0
or change to Pygments>=2.14 ?
Remove, it was not in what I told you to use.
nohal is offline   Reply With Quote
Old 28-12-2023, 12:47   #210
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,739
Images: 2
Re: Dashboard-Tactics (Dash T)

I changed to Pygments>=2.14 and built it.

https://readthedocs.org/projects/das...ilds/22970992/

It built. Now what should I do?

Check links?
The index does not seem to be working.
https://dashboard-tactics-pi.readthe...genindex.html#

Should I not use [skip ci]?

Should I do https://www.cruisersforum.com/forums...ml#post3855001
Quote:
you may also need to replace this line: https://github.com/rgleason/dashboar...ce/conf.py#L47

with

Code:
source_suffix = ['.rst']
rgleason is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yanmar Dash panel BobFord General Sailing Forum 4 28-05-2019 17:31
VMG Dash board dial Lasaros OpenCPN 2 08-07-2016 00:58
NEMA black dog dash Vineyard Haven July 23. Boatguy30 Multihull Sailboats 1 16-06-2016 07:54
Dash Cam Footage. 1926. Coops Flotsam & Sailing Miscellany 0 05-01-2013 13:13
Pioneer In-Dash Receiver -DVD cat man do Marine Electronics 0 16-07-2007 05:16

Advertise Here


All times are GMT -7. The time now is 15:27.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.