-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[intersphinx] '<' not supported between instances of 'dict' and 'dict'
in incremental builds
#11466
Comments
It's a bit weird, but I don't have the issue on my side. Maybe you have an old inventory that was cached ? try to run the command with |
@pmatulis Is the issue still persisting? |
I assume that the issue was caused by a cached inventory. If two inventories are the same but one has a different name, maybe the issue will appear again. I think wiping out the build folder would solve the issue but it's possible that we do have an issue (I'll investigate more upon next month since it requires quite a setup to detect this). |
Hello,
I found this report by googling. Thus the cause could be outside. |
@papoteur-mga Thank you for the report. I think your issue is a bit different since the failure occurs in For the OP's issue, it was likely something that occurred due to some serialized information (at least according to what the function does). |
Just for your information. I had the same error message as OP:
The solution was to delete the file The issue arouse after I didn't touch a project for a while (in my case about a month). And as far as I can tell it is not related to decimal numbers in URL. |
@andrei-korshikov Thanks for this. I'll try it the next time the issue crops up again. Is there a way for the software to prevent this scenario from occurring? |
I don't know exactly where the issue is coming from actually, namely I don't know if the issue is because there are two versions of an inventory that are being compared (and merged/updated) or if it's something else. I don't have time to investigate until November but anyone who wants to help can first check where the error is coming from, e.g., by creating two inventories (just create a separate project and make its docs, you'll get an inventory for this). Also, it might be the case that one (remote) inventory was created using an older version of sphinx and when you update your project, a new (remote) inventory is there, possibly with a different structure, hence the exception. AFAIK, we don't have a way to prevent this error (but I may be wrong). @pmatulis Can you update the title of your issue since we could confirm that the issue is a serialization issue and impacts more than what was originally assumed? like " |
Getting the same on a project that I’m upgrading the Django version on: @@ -84,14 +84,14 @@
intersphinx_mapping = {
"python": (
"https://docs.python.org/3/",
"https://docs.python.org/3/objects.inv",
),
"django": (
- "https://docs.djangoproject.com/en/4.0/",
- "https://docs.djangoproject.com/en/4.0/_objects/",
+ "https://docs.djangoproject.com/en/5.0/",
+ "https://docs.djangoproject.com/en/5.0/_objects/",
),
}
# -- Options for HTML output -------------------------------------------------
# affects ePub which is based on HTML Same message:
Removing the cache with |
Ah thank you for reminding me that I should have said that I now know where exactly was the issue (see the related PR). I stumbled upon another interrogation on how to to fix the issue and so my PR is currently stalled. So for people who also have this issue, don't worry we technically have a fix and know what causes the issue. By the way, the issue occurs independently of whether there are numbers or not in the url. It only arises because the URL for the project is changed. I have a bit of time in a few hours so I'll try fixing the fix. |
Thanks, I fixed my build problem by using sphinx-autoapi in version 3.0.0 |
I see the same error as @pmatulis when using the following: CPython 3.12.0
Output:
|
Seems to be an issue with the content of |
Ok, I think I never explained it properly but here's a way to fix the issue for now:
As I said previously, I won't work on anything before February (I know that issues are stacking up but I have really no time at all). |
'<' not supported between instances of 'dict' and 'dict'
in incremental builds
seems we have the sam issue but somehow this appears with REadTheDocs only on the main branch not when we build as a PR preview... https://readthedocs.org/projects/lit-utilities/builds/23862270/ |
As I said, it's definitely a cache issue (the @humitos Do you know about this one? |
@picnixz Hi 👋🏼 . Read the Docs is not doing anything in between those commands. So, I'm not sure what could be happening here. @Borda are you experiencing this issue locally if you run the same set of commands than on Read the Docs? It would be good to have an isolated repository that reproduce this issue to be able to debug it further. |
No, canot reproduce it locally, and also downgrade from 6.2 to 5.3 resolved the issue |
Describe the bug
I've been using the intersphinx extension for a while with good results. However, the remote resource started using different release codenames such that what used to be words are now decimal numbers.
How to Reproduce
URL components:
before: zed
now: 2023.1
My
conf.py
now looks like this:When I build my doc set I now get this error:
I can download the
objects.inv
file and inspect it with no issues:Environment Information
Sphinx extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: