Config
Log for #openttdcoop.devzone on 20th May 2014:
Times are UTC Toggle Colours
00:07:15  *** yorick has quit IRC
05:08:58  *** LSky` has joined #openttdcoop.devzone
07:10:47  <DevZone> Project xussrset - Trains from Russia build #293-push: SUCCESS in 3 min 33 sec: https://jenkins.openttdcoop.org/job/xussrset/293/
08:53:47  *** Supercheese has quit IRC
10:01:21  *** KenjiE20 has quit IRC
10:02:39  *** KenjiE20 has joined #openttdcoop.devzone
11:43:53  *** yorick has joined #openttdcoop.devzone
15:28:01  *** Alberth has joined #openttdcoop.devzone
16:10:53  *** ODM has joined #openttdcoop.devzone
16:22:04  <DevZone> Project Japanese Buildings build #206-nightlies: SUCCESS in 20 sec: https://jenkins.openttdcoop.org/job/jpbuild/206/
16:34:15  <DevZone> Project Finnish Rail Infrastructure - Rails build #320-nightlies: SUCCESS in 8 min 30 sec: https://jenkins.openttdcoop.org/job/frissrails/320/
16:41:27  <DevZone> Project road-hog build #206-nightlies: SUCCESS in 41 sec: https://jenkins.openttdcoop.org/job/road-hog/206/
16:48:36  <DevZone> Project Iron Horse build #885-nightlies: SUCCESS in 1 min 40 sec: https://jenkins.openttdcoop.org/job/iron-horse/885/
16:49:22  <DevZone> Project Dutch Trainset build #168-push: SUCCESS in 1 min 33 sec: https://jenkins.openttdcoop.org/job/dutchtrains/168/
16:49:59  <DevZone> Project ecs build #28-push: SUCCESS in 37 sec: https://jenkins.openttdcoop.org/job/ecs/28/
16:50:09  <DevZone> Project 2ccts build #119-push: SUCCESS in 1 min 32 sec: https://jenkins.openttdcoop.org/job/2ccts/119/
17:11:04  <planetmaker> is subprocess a standard module installed with python?
17:11:36  <Alberth> yes, since 2.5 or 2.6 or so
17:12:30  *** frosch123 has joined #openttdcoop.devzone
17:13:19  <Alberth> https://docs.python.org/2.7/library/subprocess.html#module-subprocess  <-- it mentions such things in the docs, first line in this case
17:13:20  <Webster> Title: 17.1. subprocess — Subprocess management Python v2.7.7rc1 documentation (at docs.python.org)
17:13:41  <Alberth> in python 3, lots of methods change between versions
17:13:52  <planetmaker> Ok, so that means it's part of core since 2.4
17:14:04  <planetmaker> not just a module available since 2.4
17:14:20  <planetmaker> wasn't entirely sure about that :)
17:14:23  <Alberth> it's part of the standard library since 2.4
17:14:32  <Alberth> ie distributed along with python
17:14:42  <planetmaker> s/core/standard library/ ok, thanks :)
17:15:51  <Alberth> there are older versions too, probably in pypi. It often starts with such a package, which is then picked up by the regular python devs
17:16:37  <planetmaker> when I try to run nml.main on my windows python... https://paste.openttdcoop.org/show/3346/
17:16:52  <planetmaker> made me wonder. I honestly don't yet understand why it fails
17:17:11  <planetmaker> I understand the lower part, with version determination. But not the first part
17:17:34  <Alberth> try the full path to the hg binary?
17:17:46  <planetmaker> my windows has no hg binary
17:18:23  <Alberth> right, that's what "file not found means" :)
17:18:31  <planetmaker> oh... you think it's about hg not being found, also the first occurance. That... might be true.
17:18:38  <planetmaker> I only always attributed the 2nd one to that
17:20:10  <Alberth> importing main means you're executing main, which apparently does more than just loading the file
17:20:28  <Alberth> the execution failed, so the import failed
17:21:01  <Alberth> it says the latter first, since that's what you are executing, with the precise dump of what went wrong, the second part
17:22:59  <planetmaker> hm, I see. Then our version determination is not exactly good, if there's no hg around :)
17:23:29  <Alberth> why would you even want to use such a system!!  :p
17:23:38  <planetmaker> dunno :P
17:28:12  <Alberth> http://paste.openttdcoop.org/show/3347/   ?
17:28:16  <planetmaker> https://paste.openttdcoop.org/show/3348/ <-- so that's what will save me :)
17:29:48  *** gelignite has joined #openttdcoop.devzone
17:30:19  <Alberth> why add another call to hg?
17:30:44  <Alberth> my solution is also not optimal, it should be closer to the hg call
17:31:08  <Alberth> ie you can also have problems with not having a .hg directory, or not being readable or ...
17:31:24  <planetmaker> which your solution?
17:31:39  <Alberth> 3347
17:31:40  <planetmaker> oh, a paste :)
17:32:02  <planetmaker> sorry, didn't see that
17:32:18  <Alberth> apparently, blind for things in plain sight :)
17:32:25  <planetmaker> yep, I confess
17:32:34  <planetmaker> only small pebbles, please ;)
17:32:41  <Alberth> seems to work quite well, hiding things in plain sight :)
17:34:45  <planetmaker> ok, let's use your version. Much nicer due to one call only :)
17:37:05  <planetmaker> so... can I tease nml to start processing a file when I start nml.main from python command line? :)
17:39:40  <Alberth> do you want me to fix that?
17:40:12  <planetmaker> the paste you just showed? Yes, please. My workingdir is dirty. And it's a valid fix, I think
17:41:07  <planetmaker> not that probably many people will run into that issue, I think :)
17:41:23  <Alberth> I was talking about starting nml by importing :p
17:42:34  <planetmaker> you mean that I can use it from python cmd?
17:42:58  <planetmaker> I'd not call that fix, but feature. But has a chance of helping me along right now :)
17:45:25  <Alberth> oh, you just added a check already
17:45:40  <planetmaker> a check for a .hg dir
17:46:23  <Alberth> but with a try/except OSError, which triggers for not having hg as well
17:46:53  <planetmaker> uh, what do you talk about?
17:47:55  <planetmaker> except the paste you showed there's no check for hg, is there?
17:50:48  <Alberth> that was an old version, apparently. I was not aware you added a commit
17:51:43  <planetmaker> I'm sure I talked to you about the .hg directory check :)
17:52:07  <Alberth> oh, very possible
17:52:27  <planetmaker> though we more talked about whether we return version or '' ;)
17:56:00  <planetmaker> anyhow. I've somewhat the feeling we talk past eachother slightly. Your paste is helpful, additional to the current state of code
17:57:21  <planetmaker> additionally, do you know a quick manner to reasonably have nml work from python cmd instead of going via nmlc shell script, which won't work on windows
17:57:54  <planetmaker> i.e. can you advise me how to call nml on windows? :)
17:58:07  <Alberth> python nmlc  ?
17:58:26  <planetmaker> nmlc is a shell script :)
17:59:01  <planetmaker> https://paste.openttdcoop.org/show/3349/
17:59:48  <planetmaker> hm, but you're right :D
18:00:24  <planetmaker> I never expected that to work...
18:02:41  <Alberth> python - < nmlc
18:03:51  <Alberth> but my previous suggestion is better :)
18:03:59  <planetmaker> yes
18:04:03  <planetmaker> <3 :)
18:04:23  <planetmaker> hm
18:05:14  <Alberth> it's not a shell script, actually. "#!" tells the kernel to load whatever is in the remainder of the first line, and feed the text to that program
18:05:48  <planetmaker> my nmlpy3 internal errors on ogfx-industries
18:05:56  <planetmaker> also the linux one
18:06:00  <Alberth>   #!/bin/sh   is a just a favorite program to use  :)
18:06:29  <Alberth> windows version works thus :)
18:06:29  <planetmaker> indeed. I keep forgetting that :)
18:06:50  <planetmaker> nmlc ERROR: nmlc: An internal error has occurred:
18:06:50  <planetmaker> nmlc-version: 0.3.1.r5250M:76ec66b7c9c8 from 2014-05-17
18:06:50  <planetmaker> Error:    (TypeError) "expected bytes, bytearray or buffer compatible object".
18:06:50  <planetmaker> Command:  ['../nml/nmlc', 'ogfx-industries.nml']
18:06:50  <planetmaker> Location: File "Z:\home\planetmaker\ottd\grfdev\nml\nml\output_grf.py", line 764, in palconvert
18:07:09  <planetmaker> http://devs.openttd.org/~planetmaker/patches/nmlpy3.diff is my working diff
18:07:15  <Alberth> oke, looks like a bytes vs text thing I missed
18:08:16  <planetmaker> which is mostly yours, with 2to3 thrown on all .py files again to catch the gen_editor and 3 others which I forgot
18:17:34  *** Supercheese has joined #openttdcoop.devzone
18:34:07  *** oskari89 has joined #openttdcoop.devzone
19:13:35  <Alberth> right, one crisis solved, let's see about the next one :)
19:16:28  <planetmaker> :D
19:16:46  * planetmaker awards Alberth the title "crisis manager of the day" ;)
19:17:38  * Alberth puts the trophy on the desk
19:17:42  <Alberth> thanks :)
20:02:05  *** gelignite has quit IRC
20:02:18  <Alberth> planetmaker:  http://paste.openttdcoop.org/show/3351/
20:02:25  <Alberth> fixes it for me
20:02:34  <planetmaker> Alberth, will you commit the check for the hg binary, too?
20:03:41  <Alberth> but you already did?
20:04:20  <Alberth> or am I missing something? (probably I am)
20:04:30  <planetmaker> the paste of yours?
20:04:35  <planetmaker> earlier?
20:04:59  <planetmaker> I did not commit anything today
20:06:33  *** ODM has quit IRC
20:07:26  <planetmaker> oh. hm. Actually. Yes... bah
20:07:36  <planetmaker> my py3 branch is based on one commit prior to that :D
20:08:15  <planetmaker> today this is getting embarrassing
20:10:37  * Alberth gives planetmaker the not-having-his-day award
20:11:03  <planetmaker> :P thank you
20:12:11  <planetmaker> and thanks, your patch fixes it, yes
20:12:50  <Alberth> regression tests clearly fails in palette conversions :p
20:14:37  <planetmaker> we still have an 'examples' dir with nml...
20:15:49  *** LSky` has quit IRC
20:19:05  <DevZone> Project opengfx-mars build #119-push: SUCCESS in 2 min 27 sec: https://jenkins.openttdcoop.org/job/opengfx-mars/119/
20:19:13  <DevZone> Project Townnames - German build #78-push: SUCCESS in 8.5 sec: https://jenkins.openttdcoop.org/job/german-townnames/78/
20:19:14  <DevZone> Project NML - NewGRF Meta Language build #334-push: SUCCESS in 3 min 27 sec: https://jenkins.openttdcoop.org/job/nml/334/
21:12:55  *** Alberth has left #openttdcoop.devzone
21:31:42  *** oskari89 has quit IRC
21:55:33  *** frosch123 has quit IRC

Powered by YARRSTE version: svn-trunk