Logs for #nikola for 2015-10-07

10:44:08 <dennis__> test
10:44:12 <dennis__> hello
10:47:33 <dennis__> I got ‘nikola build’ error and need somebody’s help. Thanks a lot!
10:47:34 <dennis__> Error log:
10:47:34 <dennis__> File "/home/deployr/virtenvs/nikola/lib/python3.4/site-packages/nikola/image_processing.py", line 107, in image_date
10:47:35 <dennis__>     value, r'%Y:%m:%d %H:%M:%S')
10:47:37 <dennis__> TypeError: must be str, not tuple
11:50:24 -GitHub[nikola]:#nikola- [nikola] schettino72 opened pull request #2135: Improve searchability (SEO) of Nikola on PyPI. (master...pypi-seo) http://git.io/vcpQE
13:04:54 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 2 new commits to master: http://git.io/vchGq
13:04:54 -GitHub[nikola]:#nikola- nikola/master b079287 Eduardo Schettino: Improve searchability (SEO) of Nikola on PyPI.
13:04:54 -GitHub[nikola]:#nikola- nikola/master f5e24ae Roberto Alsina: Merge pull request #2135 from schettino72/pypi-seo...
13:06:25 <ralsina> KwBot: tell dennis_ that he needs git master or downgrade to Pillow < 3.0
13:06:25 <KwBot> ralsina: acknowledged.
13:10:05 -travis-ci:#nikola- getnikola/nikola#6530 (master - f5e24ae : Roberto Alsina): The build passed.
13:10:06 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/197944b0dcd8...f5e24aee8e4f
13:10:06 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/84089716
14:16:01 <Koni> Hi there, just a small ReST question
14:16:22 <Koni> is there a way to force a title section to end ?
14:33:15 <ralsina> Koni: what do you mean, to end?
14:34:59 <Koni> ralsina: I want to put a title section inside a bootstrap container, so I did the following : Title section -> Raw HTML "<div class="...">" -> Title section -> Raw HTML "</div>"
14:35:32 <Koni> Issue is that my first title section ends "after" my 1st Raw html block
14:35:48 <Koni> I need it to end before my 1st HTML block
14:49:50 <ralsina> Koni: maybe what you want is a topic instead of a section?
14:50:32 <ralsina> Koni: http://docutils.sourceforge.net/docs/ref/rst/directives.html#topic
14:50:50 <ralsina> And you can use .. class:: to give the topic the classes you want
14:54:17 <Koni> ralsina: I am checking it, looks like a good tips
14:54:19 <ralsina> Koni: but in any case, sections start right before a section title, and end right before the next section starts, you can't make sections start or end in random places. So, try topic :-)
14:55:57 <Koni> looks like you need to be ReST Guru to know that :)
14:57:06 <Koni> ralsina: is there a way to nest containers in ResT ?
14:57:35 <ralsina> Koni: the container directive, maybe
15:00:42 <ChrisWarrick> DrDoofenshmirtz: either way, you can access posts only in *index.tmpl and only when used via a render_indexes thing
15:34:50 <dennis___> Hi ralsina and KwBot, I tried to downgrade to Pillow 2.3 and the problem solved. Thank you!
15:37:45 <ChrisWarrick> dennis___: you’re talking to a robot, and try pillow==2.9.0
15:39:07 <dennis___> Hi ChrisWarrick, oops... :p OK I will try 2.9.0 Thanks for helping
15:59:45 <KwBot> [nikola] Aeyoun opened issue #2136: Support “Accelerated Mobile Pages” (AMP HTML) https://github.com/getnikola/nikola/issues/2136
16:56:51 -GitHub[nikola]:#nikola- [nikola] Kwpolska pushed 1 new commit to master: http://git.io/vcjDk
16:56:51 -GitHub[nikola]:#nikola- nikola/master 0b4d705 Chris Warrick: pytest==2.8.2
17:01:32 -travis-ci:#nikola- getnikola/nikola#6531 (master - 0b4d705 : Chris Warrick): The build passed.
17:01:33 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/f5e24aee8e4f...0b4d705fbf99
17:01:33 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/84137485
17:22:51 <Wayneoween> Can I somehow say that nikola should use a certain locale? I have en_US.UTF-8 in my locales but the language for nikola is german.
17:23:45 <Wayneoween> Maybe this is linked with the errors I get from plugins which contain unicode characters. (UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 37) Which happens to be the (c) in every plugin.
17:24:28 <ralsina> Wayneoween: that is ... unusual
17:24:49 <ralsina> you really can't load any plugin that has a © in it????
17:24:57 <Wayneoween> Well, its a FreeBSD.
17:25:51 <Wayneoween> And even if I remove the (c) in a naive attempt
17:26:29 <Wayneoween> It fails with some other unicode char
17:26:44 <ralsina> Wayneoween: are you on python 3?
17:26:54 <Wayneoween> Yes
17:27:00 <Wayneoween> 3.5 even
17:28:42 <ralsina> would appear to be a yapsy bug since it's the thing that loads plugins
17:31:38 <Wayneoween> ralsina: this is the output I get http://pastebin.com/CstHjfHn
17:36:51 <ralsina> yep, yapsy bug
17:38:43 <ChrisWarrick> let me guess, plugin_file is a binary file?
17:39:28 <ralsina> let's deprecate py3 and go back to py2!!!! ;-)
17:39:51 <ChrisWarrick> let’s have yapsy follow suit!
17:40:21 <ChrisWarrick> (even though I can’t reproduce on py3.5 with up-to-date yapsy)
17:41:15 <ralsina> ChrisWarrick: it's probably something more subtle, like the fsencoding being wrong
17:42:28 <ChrisWarrick> still can’t reproduce with that being ascii
17:44:08 <Wayneoween> On my osx this same setup works (iirc) and I think it may be the other warning a build gives: WARNING: Nikola: Could not guess locale for language de, using locale C
17:45:03 <Wayneoween> So, a locale de_DE.UTF-8 does exist, but I don't use it, since all my environments are  en_US.UTF-8 so far.
17:45:21 <ralsina> ohhhh C is ascii
17:46:00 <Wayneoween> Yes, thats why my initial question was so unusual I guess :x
17:48:25 <ralsina> Wayneoween: in general this is not a problem but it looks like it is in reebsd
17:48:32 <ralsina> Wayneoween: can you add the de locale?
17:48:43 <ralsina> Wayneoween: as a bonus, you will get german names for months ;-)
17:55:04 <Wayneoween> ralsina: yes I do, since its running in a jail anyway... I just need an environment where I can create posts even when not on my hardware :)
17:59:03 <Wayneoween> whats interesting though, I now have LC_ALL to de_DE.UTF-8 and still locale C is being used. I guess I need to look where the warning is coming from.
17:59:31 <ralsina> Wayneoween: it's probably the python locale module somehow
18:21:25 <Wayneoween> Hmm. Well the only thing I suspect may be this: https://github.com/python-git/python/blob/master/Lib/locale.py#L19
18:24:50 <ChrisWarrick> Wayneoween: try `import _locale` in a python shell
18:25:08 <Wayneoween> This does not fail, already tried it :|
18:25:12 <ChrisWarrick> Wayneoween: though note that the “could not guess” warning is Nikola’s own, and it can be overridden in the config
18:25:28 <ralsina> yes, maybe setting the locale specifically will fix it
18:27:10 <ChrisWarrick> Wayneoween: try checking the output of nikola.nikola.guess_locale_from_lang_posix('de') and locale.normalize('de')
18:30:49 <Wayneoween> ChrisWarrick: hmmm: http://pastebin.com/s17FpR1V
18:32:34 <ChrisWarrick> Wayneoween: And here’s our problem.
18:32:52 <ChrisWarrick> Wayneoween: On a Linux system, guessing 'en' results in 'en_US.utf8', which is valid.
18:33:16 <ChrisWarrick> Wayneoween: override the locale in conf.py, and create a github issue
18:33:35 <Wayneoween> Ah, ok, thank you :)
18:35:23 <Wayneoween> +LOCALE_DEFAULT = "de_DE.UTF-8"
18:35:26 <Wayneoween> fixed it
18:35:29 <Wayneoween> Nice.
18:35:40 <ChrisWarrick> Wayneoween: that’s not a fix, that’s a workaround
18:36:14 <Wayneoween> Well yes
18:36:40 <ralsina> sadly a real fix for this looks ... complicated?
18:36:53 <ChrisWarrick> ralsina: or maybe not
18:37:23 <ralsina> ChrisWarrick: it's like disarming a bomb. It may look like a simple bomb, but it's still a bomb. I hate the locale handling :-P
18:37:39 <ChrisWarrick> Wayneoween: Include the value of `locale.locale_alias` with your issue
18:37:45 <Wayneoween> Will do
18:37:54 <ralsina> ChrisWarrick: if you can fix this, we are overdue for a release anyway
18:38:09 <ChrisWarrick> ralsina: shit, I forgot
18:38:22 <ralsina> ChrisWarrick: no problem, we didn't get as much done this cycle :-)
18:38:31 <ralsina> but the Pillow thing is getting annoying
18:38:39 <ChrisWarrick> ralsina: other than fixing pillow and adding py3 deprecation warnings?
18:39:00 <ralsina> there's a decent list of things in the changelog
18:39:11 <ralsina> 4 features, 6 or 7 bugs
18:39:14 <ChrisWarrick> ralsina: I’ll try to do a release tomorrow
18:39:21 <ralsina> ChrisWarrick: awesome!
18:39:29 <ralsina> if you can't, I surely can on friday
18:47:02 <KwBot> [nikola] Wayneoween opened issue #2137: FreeBSD locale handling differs from linux locale handling https://github.com/getnikola/nikola/issues/2137
18:47:20 <Wayneoween> Hope this is ok :|
18:48:00 <ralsina> Wayneoween: good-looking bug report :-)
18:48:02 <ChrisWarrick> Wayneoween: we could still use the contents of locale.locale_alias
18:48:12 <Wayneoween> Oh sorry
18:48:25 <ChrisWarrick> Wayneoween: but does the locale override actually fix that unicodedecodeerror from yapsy?
18:53:06 <Wayneoween> ChrisWarrick: yes it does
18:53:37 <Wayneoween> ChrisWarrick: I updated the issue with the missing output
18:53:49 <ChrisWarrick> Wayneoween: looks like an easy-ish fix
18:55:25 <ChrisWarrick> Wayneoween: or maybe not, guess I’ll need a freebsd vm
18:55:37 <ralsina> BTW, do we have encoding declarations in the falling plugins?
18:55:39 <ChrisWarrick> Wayneoween: are there any good vagrant images you’re aware of?
18:56:09 <ChrisWarrick> ralsina: we do
18:56:16 <ralsina> in any case in py3 utf8 is assumed
18:56:19 <Wayneoween> No, I have yet to try vagrant myself :/
18:58:05 <ChrisWarrick> there are, and they look official: https://atlas.hashicorp.com/freebsd/boxes/FreeBSD-11.0-CURRENT
18:58:10 <KwBot> [nikola] Kwpolska assigned issue #2137 to Kwpolska: FreeBSD locale handling differs from linux locale handling https://github.com/getnikola/nikola/issues/2137
18:58:45 <Wayneoween> ChrisWarrick: https://forums.freebsd.org/threads/official-vagrant-freebsd-images.52717/ this doesn't sound too bad 
18:59:03 <ChrisWarrick> Wayneoween: is it freebsd/FreeBSD-*-*?
18:59:12 <Wayneoween> 10.2
18:59:44 <ChrisWarrick> Wayneoween: yeah, those images.  What version are you using so I can have the same environment?
19:00:08 <Wayneoween> 10.2-RELEASE-p4
19:00:34 <ChrisWarrick> Wayneoween: will try it tomorrow/on friday
19:02:05 <Wayneoween> ChrisWarrick: ok, cool :) Let me know if I can be of any help
21:27:56 <Bluerise> Wayneoween: \o/
22:47:32 <DrDoofenshmirtz> ChrisWarrick: So pretty much SOL if I want to access it anywhere other than index.tmpl ?