| *** srichter has quit IRC | 00:12 | |
| *** povbot has joined #schooltool | 04:37 | |
| *** wrobel has quit IRC | 04:50 | |
| *** wrobel has joined #schooltool | 09:11 | |
| *** vidasp has joined #schooltool | 12:29 | |
| *** vidasp has quit IRC | 12:36 | |
| *** vidasp has joined #schooltool | 12:36 | |
| *** mgedmin has joined #schooltool | 12:45 | |
| *** thisfred has joined #schooltool | 13:45 | |
| *** srichter has joined #schooltool | 14:26 | |
| *** ignas has joined #schooltool | 14:31 | |
| *** vidasp has quit IRC | 15:27 | |
| *** mgedmin has quit IRC | 15:51 | |
| *** tiredbones has left #schooltool | 16:30 | |
| *** sbj1 has joined #schooltool | 17:13 | |
| *** sbj1 has quit IRC | 18:06 | |
| *** sbj3 has joined #schooltool | 18:18 | |
| *** tiredbones has joined #schooltool | 18:38 | |
| tiredbones | srichter, I'm read ch13 of the online Zope3 book, what's the name of the module from running pyskel.py? | 18:58 |
|---|---|---|
| srichter | I think pyskel is in utilities | 18:59 |
| srichter | so you have the paper copy; the path in there should be correct | 18:59 |
| tiredbones | srichter, I can run pyskel, but what is the name of the output module? | 19:00 |
| srichter | yes, pyskel.py is in ZOPE3/utilities | 19:00 |
| srichter | the output is printed on the screen | 19:00 |
| tiredbones | srichter, oh! So what the purpose of sending it to the screen? | 19:01 |
| tiredbones | srichter, don't I need it. | 19:01 |
| srichter | it is much easier to send it to the stdout than putting it into a module | 19:02 |
| srichter | you can use: pyskel.py ... > modulename.py | 19:02 |
| *** thisfred has left #schooltool | 19:02 | |
| tiredbones | srichter, all right, thanks | 19:03 |
| tiredbones | srichter, when I run pyskel it prepends zopeproducts to the path name, thus I get a not found on the module name. The instruction do not say anything about this. Where am I messing up? | 19:20 |
| srichter | zopeproducts? | 19:21 |
| *** faassen has quit IRC | 19:21 | |
| tiredbones | srichter, Yes, here the line - ImportError: No module named zopeproducts.usr.local.Zope-3.2.zope3.local.book.messageboard.interfaces | 19:22 |
| srichter | python utilities/pyskel.py zope.viewlet.interfaces.IViewlet | 19:24 |
| srichter | works for me after setting the Python path | 19:24 |
| *** jinty has joined #schooltool | 19:24 | |
| srichter | in bash: export PYTHONPATH=/opt/zope/Zope3/Zope3-ZSCP/src/ | 19:24 |
| tiredbones | srichter, I do not have this path: /opt/zope/Zope3/Zope3-ZSCP/src/, I'm using Zope 3.2. | 19:27 |
| srichter | just replace it with the one you have | 19:28 |
| srichter | its of course specific to my system | 19:28 |
| tiredbones | srichter, sorry fo being a bother. ok I did this, export PYTHONPATH=/usr/local/Zope-3.2/zope3/local/book/, this is at the top of thr tree where I'm doing book's examples. I then cd'ed into the utilities directory and ran the command, 'pyskel'. I'm still getting the error. | 19:38 |
| tiredbones | srichter, here the command, python ./pyskel.py /usr/local/Zope-3.2/zope3/local/book/messageboard.interfzces.IMessageBoard | 19:42 |
| srichter | note that the argument to pyskel.py *must* be a Python path | 19:51 |
| srichter | i.e. a dotted name | 19:51 |
| srichter | also, the PYTHONPATH you declared above is not correct | 19:52 |
| srichter | it needs to be ZOPE3ROOT/src | 19:52 |
| tiredbones | sricther, ZOPE3ROOT/src has some system stuff, BTree, ZODB, I thought I could keep my stuff separate the the system. So I can't do ZOPE3ROOT/local? | 19:59 |
| srichter | nope, unless you add both directories to the Python path | 20:01 |
| srichter | it is usually a bad idea to place your package in an arbitrary directory | 20:01 |
| srichter | because you always need to specify the python path | 20:02 |
| tiredbones | sricther, yes, but wouldn't is keep thing cleaner/ | 20:03 |
| tiredbones | sricther, yes, but wouldn't it keep thing cleaner? | 20:04 |
| srichter | well, if you want to constantly specify the python path, feel free to do so | 20:05 |
| srichter | in the distribution you have the choice of placing the package in ZOPE3INSTANCE/lib/python or ZOPE3INSTALL/lib/python | 20:06 |
| srichter | for the checkout, it is ZOPE3/src | 20:06 |
| srichter | if I want to reuse a Python package reularly (alomost never happens), then I use a symbolic link | 20:06 |
| tiredbones | sricther, ok I'll conform. | 20:07 |
| tiredbones | sricther, I have a friend coming down to Tufts to check out the school. His daughter is in the looking stage. | 20:13 |
| srichter | cool :- | 20:14 |
| srichter | cool :-) | 20:14 |
| *** alga has joined #SchoolTool | 20:21 | |
| tiredbones | sricther, pyskel ran ok. | 20:37 |
| *** sbj3 has quit IRC | 20:41 | |
| *** mgedmin has joined #schooltool | 21:28 | |
| *** flint has quit IRC | 22:26 | |
| *** ignas has quit IRC | 22:30 | |
| *** didymo has quit IRC | 23:05 | |
| *** didymo has joined #schooltool | 23:08 | |
| *** ignas has joined #schooltool | 23:25 | |
| *** alga has quit IRC | 23:37 | |
| *** mgedmin has quit IRC | 23:43 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!