-
Notifications
You must be signed in to change notification settings - Fork 137
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
Can't build site #99
Comments
Have you solved it yet? I have the same problem |
Leave time zone blank |
With |
I'm using python 3.8.6 (Windows 10) and got this issue too tg-archive --build
2023-10-05 07:02:59,918: building site
Traceback (most recent call last):
File "C:\Python38\Scripts\tg-archive-script.py", line 33, in <module>
sys.exit(load_entry_point('tg-archive==1.1.3', 'console_scripts', 'tg-archive')())
File "c:\python38\lib\site-packages\tgarchive\__init__.py", line 161, in main
b.build()
File "c:\python38\lib\site-packages\tgarchive\build.py", line 87, in build
self._render_page(messages, month, dayline,
File "c:\python38\lib\site-packages\tgarchive\build.py", line 116, in _render_page
html = self.template.render(config=self.config,
File "c:\python38\lib\site-packages\jinja2\environment.py", line 1301, in render
self.environment.handle_exception()
File "c:\python38\lib\site-packages\jinja2\environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 90, in top-level template code
File "c:\python38\lib\site-packages\jinja2\environment.py", line 485, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'collections.OrderedDict object' has no attribute '2020-03-08' |
The problem seems to be the By changing line 90 to get rid of the counting,
Maybe by adding |
I found another workaround using JavaScript. This will adjust the time/date stamps of the site to the timezone corresponding to the viewer's locale setting. It has some of the same issues from my previous findings, but not as bad. E.g. the messages at the beginning/ending of each day/month remain under their original date, but all messages from the database up to the present are shown now, at least. Starting on line 2 of main.js, I inserted this code (had some fun with the box drawing chars with my comments, sorry in advance!): JavaScript Time/Date Stamp Adjustment
|
is it issue is still not solved anyway? |
Looks like this hasn't been resolved yet. If somebody can debug this and send a PR, will be happy to merge. |
Can someone provide some replication for this issue? I am not able to replicate this issue, I think for some specific dates it is acting weird. A dump of sqllite db with anonymised values should help. |
Have issue when run
tg-archive --build
Error:
Config:
The text was updated successfully, but these errors were encountered: