Config
Log for #openttdcoop.devzone on 4th December 2013:
Times are UTC Toggle Colours
04:40:09  <Brot6> Bug #6619 (New): Graphics off in diagonals on Gen 1 mail car - Also Loading States XDanMacKX @ http://dev.openttdcoop.org/issues/6619
08:06:40  <Brot6> Revision 202:b1d561d60dbe: Add: Default build script Jenkins (NewGRF) projects XplanetmakerX @ http://dev.openttdcoop.org/projects/home/repository/revisions/b1d561d60dbe
08:35:04  *** Supercheese has quit IRC
13:27:46  *** yorick has joined #openttdcoop.devzone
13:52:52  <yorick> what did the grfcodec -s flag ever do? it seems to not exist in my version. was it important?
14:15:22  <planetmaker>     -s        Suppress progress output
14:15:27  <planetmaker> grfcodec --help will tell you
14:50:12  *** oskari89 has joined #openttdcoop.devzone
17:18:36  <DevZone> Project NML - NewGRF Meta Language build #164-nightlies: SUCCESS in 1 min 11 sec: https://jenkins.openttdcoop.org/job/nml/164/
18:06:13  <DevZone> Project finnishtrams build #46-nightlies: SUCCESS in 49 sec: https://jenkins.openttdcoop.org/job/finnishtrams/46/
18:12:36  *** frosch123 has joined #openttdcoop.devzone
18:21:42  <DevZone> Project Japanese Buildings build #39-nightlies: SUCCESS in 17 sec: https://jenkins.openttdcoop.org/job/jpbuild/39/
18:26:31  <DevZone> Project git-test build #2: FAILURE in 1 min 47 sec: https://jenkins.openttdcoop.org/job/git-test/2/
18:28:09  *** Alberth has joined #openttdcoop.devzone
18:29:09  <DevZone> Project git-test build #3: STILL FAILING in 1 min 50 sec: https://jenkins.openttdcoop.org/job/git-test/3/
18:29:34  <DevZone> Project git-test build #4: STILL FAILING in 0.34 sec: https://jenkins.openttdcoop.org/job/git-test/4/
18:31:54  *** ODM has joined #openttdcoop.devzone
18:32:13  <DevZone> Project Finnish Rail Infrastructure - Rails build #152-nightlies: SUCCESS in 6 min 49 sec: https://jenkins.openttdcoop.org/job/frissrails/152/
18:36:26  <DevZone> Project git-test build #5: STILL FAILING in 2 min 37 sec: https://jenkins.openttdcoop.org/job/git-test/5/
18:38:34  <DevZone> Yippee, build fixed!
18:38:34  <DevZone> Project git-test build #6-nightlies: FIXED in 9 sec: https://jenkins.openttdcoop.org/job/git-test/6/
18:44:13  *** skyem123 has joined #openttdcoop.devzone
18:47:44  <DevZone> Project Iron Horse build #490-nightlies: SUCCESS in 1 min 18 sec: https://jenkins.openttdcoop.org/job/iron-horse/490/
19:49:33  *** andythenorth has joined #openttdcoop.devzone
19:52:33  *** oskari89 has quit IRC
20:57:07  *** ODM has quit IRC
20:58:00  <frosch123> oh my, will i ever understand how python's "import" works :(
20:58:29  <andythenorth> import this
20:58:47  <andythenorth> frosch123: what's the problem? :)
20:58:54  <andythenorth> I'm sure I can add to your confusion
20:59:27  <frosch123> when is the current directory or the directory of the file containing the "import" in the searchpath?
20:59:41  <frosch123> does __init__.py have any influence on that?
20:59:52  <frosch123> did something change from python2 to python3 there?
21:00:00  <frosch123> (because python2 just works)
21:00:18  <andythenorth> python3 I am not knowing :(
21:00:26  <andythenorth> poke albert*
21:02:09  <andythenorth> frosch123: is it a single import or a chain of modules importing each other?
21:02:30  <frosch123> the single import already fails
21:02:47  <andythenorth> what's the context of the module relative to the script you're executing?
21:03:02  <andythenorth> paste a tree structure or something?
21:03:06  <andythenorth> or is it in a repo?
21:03:19  <frosch123> https://github.com/ianepperson/pyredminews/tree/master/redmine <- that's all
21:03:20  <Webster> Title: pyredminews/redmine at master · ianepperson/pyredminews · GitHub (at github.com)
21:03:21  <andythenorth> I don't actually know how this works and should learn
21:03:27  <frosch123> works fine with python 2
21:03:57  * andythenorth tries
21:04:00  <frosch123> i am in the root directory (above "redmine"), and type "from redmine import Redmine" into the python console
21:04:16  <frosch123> python3 fails to locate the files in the library
21:04:32  <frosch123> "from redmine import Redmine" fails with not being able to locate "redmine.py"
21:04:57  <frosch123> "from redmine.redmine import Redmine" succeeds with finding redmine.py, but then fails to find redmine_rest.py
21:05:45  <frosch123> hmm, "from redmine import *"
21:05:48  <frosch123>  did something
21:05:58  <Alberth> ieks :)
21:06:18  <andythenorth> not that :)
21:06:28  <frosch123> no, it did nothing
21:06:37  <frosch123> it did not print an error, but it does not seem to have done anything :p
21:06:44  <Alberth> __init__.py presence means that the directory is a package which you can use in imports
21:06:55  <andythenorth> I get an exciting url lib error
21:07:16  <andythenorth> mind, I didn't run setup.py because I don't have a virtualenv yet :P
21:07:38  <frosch123> just "import redmine" fails as well, it gets to the __init__, but then fails in the init on "from redmine import Redmine"
21:07:51  <frosch123> andythenorth: i did not run setup.py either
21:07:57  <frosch123> i do not want to "install" it
21:08:04  <frosch123> it runs fine with python2
21:08:34  <andythenorth> fails for me in 2.7
21:08:41  <andythenorth> missing dateutil.parser
21:08:44  <andythenorth> probably unrelated
21:09:37  <frosch123> http://python3porting.com/problems.html#relative-import-problems <- that one maybe?
21:09:38  <Webster> Title: Common migration problems Porting to Python 3 - The Book Site (at python3porting.com)
21:10:31  <andythenorth> plausible
21:11:30  <Alberth> you have a directory "redmine" with "redmine.py"  ?     then you need to   from redmine.redmine import Redmine
21:12:29  <Alberth> I always stick to absolute imports, much more predictable what it does :)
21:13:24  <andythenorth> I set sys.path quite frequently :P
21:13:32  <andythenorth> which is frowned upon, I believe
21:13:56  <Alberth> yes, it's not a recommended practice :)
21:14:22  <andythenorth> seems robust if you don't expect much to change :P
21:15:23  <frosch123> ok, added some random "redmine."
21:15:35  <frosch123> now i get at least proper python2/3 syntax errors
21:17:00  <Alberth> first "redmine" is the directory (which is a package, due to the __init__.py file). The second "redmine" is the "redmine.py" file
21:17:09  <Alberth> the 3rd Redmine is the class
21:17:31  <frosch123> yeah, python seems to do the same shit has grfcodec
21:17:44  <frosch123> and resolve paths from some arbitrary random root, instead of relatively
21:18:41  <Alberth> I think it's the original way of doing it (probably the first Python file you run)
21:18:45  <frosch123> hmm, "urllib2"
21:18:58  <Alberth> later they added relative imports and what not
21:19:18  <Alberth> that sounds like python 2 :)
21:19:32  <Alberth> I used urllib in langsync iirc
21:19:57  <frosch123> hmm, that lib worked so nice yesterday. but i missed that i used python2 :p
21:20:39  <frosch123> oh, it imports both "urllib" and "urllib2" :p
21:21:37  <Alberth> python 3  did a cleanup of the entire std library, so python 3 urllib and python2 urllib are likely to be very different
21:27:25  <frosch123> hmm, do i have a chance of porting this?
21:27:39  <frosch123> or should i run python2 as subprocess to the python3 scripts? :p
21:27:50  <planetmaker> hey ho
21:28:10  <Taede> go for the latter until you have more time?
21:28:46  <frosch123> Taede: i am rather worried about the skill :p
21:29:50  <Alberth> you could try the 2to3 conversion script
21:30:01  <Alberth> although it may not handle everything
21:30:15  <andythenorth> night
21:30:18  *** andythenorth has quit IRC
21:30:30  <Alberth> grr, don't quit so fast :p
21:32:05  <frosch123> yeah, might try 2to3 tomorrow
21:32:15  <frosch123> i thought i would finish it today :/
21:32:30  <Alberth> well, you probably made more progress than me :)
21:32:49  <Alberth> I have been here several hours and managed to write two comment lines :)
22:07:02  *** frosch123 has quit IRC
22:11:14  *** Alberth has left #openttdcoop.devzone
22:14:16  *** skyem123 has quit IRC

Powered by YARRSTE version: svn-trunk