
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Blog Plugin still errors with TypeError: can't compare offset-naive and offset-aware datetimes Β· Issue #7748 Β· squidfunk/mkdocs-material
Description:
Context Continuation of #7725 which seems to still be present. Bug description When executing a build does the build error with TypeError: can't compare offset-naive and offset-aware datetime F...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- Video & Online Content
- Personal Finance
Content Management System {π}
What CMS is github.com built with?
Github.com employs WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
Keywords {π}
file, line, squidfunk, issue, bug, build, perpil, mkdocs, return, commented, plugin, typeerror, compare, offsetnaive, offsetaware, dgithubreproductionvenvlibsitepackagesclickcorepy, open, sign, blog, datetimes, fix, added, draftiffuturedate, true, timezone, resolved, pull, projects, errors, closed, andre, info, kwargs, invoke, dgithubreproductionvenvlibsitepackagesmaterialpluginsblogpluginpy, reporting, owner, contributor, react, navigation, issues, requests, discussions, actions, security, description, error, datetime, directory, documentation,
Topics {βοΈ}
github\reproduction\venv\lib\site-packages\material\plugins\blog\plugin github\reproduction\venv\lib\site-packages\mkdocs\commands\build github\reproduction\venv\lib\site-packages\click\core github\reproduction\venv\lib\site-packages\mkdocs\plugins github\reproduction\venv\lib\site-packages\mkdocs\__main__ github\reproduction\venv\scripts\mkdocs github\reproduction\site traceback yyyy-mm-dd reproduce install material info plugin possibly related issues 46-blog-date-issue open projects mkdocs serve runs offset-aware datetimes bug resolved issue pull added timezone aware dates mkdocs build compare offset-naive minimal reproduction comment metadata assignees bug reporting guidelines squidfunk closed bug description related links reporting plugins github projects milestone exe\__main__ squidfunk reopened discussions pr appreciated blog build error mkdocs 9 bug report set timezone directory documentation issue recent call config=config posts = sorted zip steps attached links released quickly confirm error anymore milestone relationships
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:Blog Plugin still errors with TypeError: can't compare offset-naive and offset-aware datetimes
articleBody:### Context
Continuation of #7725 which seems to still be present.
### Bug description
When executing a build does the build error with `TypeError: can't compare offset-naive and offset-aware datetime`
Full Stacktrace from `mkdocs build`:
```
$ mkdocs build
INFO - Cleaning site directory
INFO - Building documentation to directory: D:\GitHub\reproduction\site
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "D:\GitHub\reproduction\venv\Scripts\mkdocs.exe\__main__.py", line 7, in <module>
File "D:\GitHub\reproduction\venv\Lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\mkdocs\__main__.py", line 288, in build_command
build.build(cfg, dirty=not clean)
File "D:\GitHub\reproduction\venv\Lib\site-packages\mkdocs\commands\build.py", line 292, in build
files = config.plugins.on_files(files, config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\mkdocs\plugins.py", line 593, in on_files
return self.run_event('files', files, config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\mkdocs\plugins.py", line 566, in run_event
result = method(item, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\material\plugins\blog\plugin.py", line 133, in on_files
self.blog.posts = sorted(
^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\material\plugins\blog\plugin.py", line 444, in _resolve_posts
if not self._is_excluded(post):
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\material\plugins\blog\plugin.py", line 373, in _is_excluded
return post.config.date.created > datetime.now()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: can't compare offset-naive and offset-aware datetimes
```
The issue is most likely the usage of `date: yyyy-mm-dd` without any timezones or time in general.
**Note:** Only `mkdocs build` is affected. `mkdocs serve` runs without any errors reported.
### Related links
- [Reporting a bug](https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/)
- #7725
### Reproduction
[9.5.46-blog-date-issue.zip](https://github.com/user-attachments/files/17904693/9.5.46-blog-date-issue.zip)
### Steps to reproduce
1. Install Material for MkDocs 9.5.46
2. Setup Blog plugin
3. Create a post with a `date` frontmatter in the format `yyyy-mm-dd`
4. Execute `mkdocs build`
### Browser
_No response_
### Before submitting
- [X] I have read and followed the [bug reporting guidelines](https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/).
- [X] I have attached links to [the documentation](https://squidfunk.github.io/mkdocs-material/), and possibly related [issues](https://github.com/squidfunk/mkdocs-material/issues) and [discussions](https://github.com/squidfunk/mkdocs-material/discussions).
- [X] I assure that I have [removed all customizations](https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/#remove-customizations) before submitting this bug report.
- [X] I have attached a __.zip file__ with a [minimal reproduction](https://squidfunk.github.io/mkdocs-material/guides/creating-a-reproduction/) using the [built-in info plugin](https://squidfunk.github.io/mkdocs-material/plugins/info/).
author:
url:https://github.com/Andre601
type:Person
name:Andre601
datePublished:2024-11-25T14:56:18.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:6
url:https://github.com/7748/mkdocs-material/issues/7748
context:https://schema.org
headline:Blog Plugin still errors with TypeError: can't compare offset-naive and offset-aware datetimes
articleBody:### Context
Continuation of #7725 which seems to still be present.
### Bug description
When executing a build does the build error with `TypeError: can't compare offset-naive and offset-aware datetime`
Full Stacktrace from `mkdocs build`:
```
$ mkdocs build
INFO - Cleaning site directory
INFO - Building documentation to directory: D:\GitHub\reproduction\site
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "D:\GitHub\reproduction\venv\Scripts\mkdocs.exe\__main__.py", line 7, in <module>
File "D:\GitHub\reproduction\venv\Lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\mkdocs\__main__.py", line 288, in build_command
build.build(cfg, dirty=not clean)
File "D:\GitHub\reproduction\venv\Lib\site-packages\mkdocs\commands\build.py", line 292, in build
files = config.plugins.on_files(files, config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\mkdocs\plugins.py", line 593, in on_files
return self.run_event('files', files, config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\mkdocs\plugins.py", line 566, in run_event
result = method(item, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\material\plugins\blog\plugin.py", line 133, in on_files
self.blog.posts = sorted(
^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\material\plugins\blog\plugin.py", line 444, in _resolve_posts
if not self._is_excluded(post):
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\reproduction\venv\Lib\site-packages\material\plugins\blog\plugin.py", line 373, in _is_excluded
return post.config.date.created > datetime.now()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: can't compare offset-naive and offset-aware datetimes
```
The issue is most likely the usage of `date: yyyy-mm-dd` without any timezones or time in general.
**Note:** Only `mkdocs build` is affected. `mkdocs serve` runs without any errors reported.
### Related links
- [Reporting a bug](https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/)
- #7725
### Reproduction
[9.5.46-blog-date-issue.zip](https://github.com/user-attachments/files/17904693/9.5.46-blog-date-issue.zip)
### Steps to reproduce
1. Install Material for MkDocs 9.5.46
2. Setup Blog plugin
3. Create a post with a `date` frontmatter in the format `yyyy-mm-dd`
4. Execute `mkdocs build`
### Browser
_No response_
### Before submitting
- [X] I have read and followed the [bug reporting guidelines](https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/).
- [X] I have attached links to [the documentation](https://squidfunk.github.io/mkdocs-material/), and possibly related [issues](https://github.com/squidfunk/mkdocs-material/issues) and [discussions](https://github.com/squidfunk/mkdocs-material/discussions).
- [X] I assure that I have [removed all customizations](https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/#remove-customizations) before submitting this bug report.
- [X] I have attached a __.zip file__ with a [minimal reproduction](https://squidfunk.github.io/mkdocs-material/guides/creating-a-reproduction/) using the [built-in info plugin](https://squidfunk.github.io/mkdocs-material/plugins/info/).
author:
url:https://github.com/Andre601
type:Person
name:Andre601
datePublished:2024-11-25T14:56:18.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:6
url:https://github.com/7748/mkdocs-material/issues/7748
Person:
url:https://github.com/Andre601
name:Andre601
url:https://github.com/Andre601
name:Andre601
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:6
interactionType:https://schema.org/CommentAction
userInteractionCount:6
External Links {π}(8)
- What's the income of https://github.blog?
- How much revenue does https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/ bring in?
- Learn how profitable https://squidfunk.github.io/mkdocs-material/ is on a monthly basis
- How much does https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/#remove-customizations earn?
- How much profit does https://squidfunk.github.io/mkdocs-material/guides/creating-a-reproduction/ generate?
- How much does https://squidfunk.github.io/mkdocs-material/plugins/info/ pull in?
- How much cash flow does https://squidfunk.github.io/mkdocs-material/changelog/#9.5.47 have monthly?
- How much profit does https://www.githubstatus.com/ make?
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net