*** benji has quit IRC | 00:06 | |
*** andreypo_ has quit IRC | 00:18 | |
*** J1m has quit IRC | 00:25 | |
*** RichyB has joined #zope | 00:27 | |
*** Deathspawn has quit IRC | 00:34 | |
*** menesis has joined #zope | 00:43 | |
*** supton has quit IRC | 00:44 | |
*** Deathspawn has joined #zope | 00:48 | |
*** m8 has quit IRC | 00:48 | |
*** TresEquis has quit IRC | 01:08 | |
*** bigkevmcd has quit IRC | 01:34 | |
*** bigkevmcd has joined #zope | 01:36 | |
*** _mup_ has quit IRC | 02:00 | |
*** _mup_ has joined #zope | 02:00 | |
*** daMaestro has quit IRC | 02:38 | |
*** tiwula has quit IRC | 02:40 | |
*** tiwula has joined #zope | 04:30 | |
*** Spanktar has quit IRC | 05:49 | |
*** cwarner has joined #zope | 06:16 | |
*** tzicatl has quit IRC | 06:27 | |
*** tiwula has quit IRC | 06:28 | |
*** samba has quit IRC | 08:17 | |
*** sweh has joined #zope | 08:25 | |
*** sweh1 has joined #zope | 08:39 | |
*** sweh has quit IRC | 08:39 | |
*** agroszer has joined #zope | 08:53 | |
*** __mac__ has joined #zope | 08:59 | |
*** eperez has quit IRC | 09:06 | |
*** River_Rat is now known as RiverRat | 09:11 | |
*** sunew has joined #zope | 09:24 | |
*** sunew has quit IRC | 09:35 | |
*** sunew has joined #zope | 09:39 | |
*** goschtl has joined #zope | 10:03 | |
*** giacomos has joined #zope | 10:11 | |
*** avoinea has joined #zope | 10:27 | |
*** mitchell`off is now known as mitchell` | 10:39 | |
*** tisto has joined #zope | 10:40 | |
*** yvl has quit IRC | 10:43 | |
*** yvl has joined #zope | 10:47 | |
*** ahinki has joined #zope | 10:51 | |
*** eperez has joined #zope | 10:58 | |
*** alexpilz has joined #zope | 11:02 | |
*** alga has joined #zope | 11:05 | |
*** MrTango has joined #zope | 11:22 | |
*** sweh1 has quit IRC | 11:30 | |
*** sweh has joined #zope | 11:31 | |
*** alga has quit IRC | 11:31 | |
*** TomBlockley has joined #zope | 11:33 | |
*** zagy has joined #zope | 11:50 | |
*** evilbungle has joined #zope | 12:01 | |
*** tisto has quit IRC | 12:13 | |
*** ccomb has joined #zope | 12:21 | |
*** thetet has joined #zope | 12:21 | |
*** sunew has quit IRC | 12:32 | |
*** teix has joined #zope | 12:33 | |
*** yvl has quit IRC | 12:37 | |
*** sweh has quit IRC | 12:48 | |
*** sweh has joined #zope | 12:49 | |
*** phrearch_ has joined #zope | 13:03 | |
phrearch_ | hello | 13:04 |
---|---|---|
phrearch_ | anyone tried to run zope in pypy? | 13:04 |
phrearch_ | i installed zope2.13.13 in a pypy virtualenv, which compiled after making a few changes to the c-extensions, but i still get this error | 13:05 |
phrearch_ | http://paste.pocoo.org/show/568410/ | 13:05 |
*** sunew has joined #zope | 13:07 | |
phrearch_ | ehm never mind. i installed manuel | 13:15 |
phrearch_ | starting from ./bin/zopectl fails to import zope namespace packages though | 13:15 |
phrearch_ | how can i test whether zope works? | 13:19 |
phrearch_ | zopectl seems to be broken | 13:19 |
phrearch_ | is it possible to start zope in another way? | 13:20 |
phrearch_ | like import zope; zope.start() | 13:20 |
phrearch_ | :) | 13:20 |
giacomos | phrearch_: you can run it in a buildout environment | 13:23 |
phrearch_ | giacomos: ive installed zope through pip | 13:24 |
phrearch_ | i experimented a bit with getting pypy to compile zope | 13:24 |
phrearch_ | that worked, but now it fails to execute the scripts | 13:25 |
giacomos | phrearch_: I think it's not officially supported | 13:25 |
phrearch_ | import errors where the python in virtualenv imports just fine | 13:25 |
phrearch_ | im pretty sure its not | 13:25 |
phrearch_ | just wondering if it could work like this | 13:25 |
phrearch_ | probably should use buildout | 13:26 |
phrearch_ | do you know of a zope only buildout? | 13:26 |
phrearch_ | weird thing is that the control scripts from buildout look very different than with pip | 13:33 |
goschtl | phrearch_: i fear zope does not run under pypi | 13:34 |
goschtl | not pypi i mean pypy | 13:34 |
phrearch_ | goschtl: worth a try | 13:35 |
giacomos | phrearch_: http://docs.zope.org/zope2/releases/2.12/INSTALL-buildout.html | 13:35 |
phrearch_ | giacomos: thanks! | 13:35 |
giacomos | yw | 13:35 |
goschtl | phrearch_: yes of course, i read somewhere that some packges (zope.interfce) does not work | 13:36 |
phrearch_ | goschtl: zope.interface worked | 13:36 |
goschtl | phrearch_: yes maybe i am wrong | 13:36 |
phrearch_ | there were some c-extensions that didnt work, but that only required small changes | 13:37 |
*** menesis has quit IRC | 13:37 | |
phrearch_ | Acquisition, and ExtensionClass | 13:37 |
phrearch_ | zodb also needed a small patch | 13:37 |
phrearch_ | and zope.proxy and another one | 13:37 |
phrearch_ | weird thing is if i try the control scripts from the buildout, then i get some cross cursor, and when i click it, it says "unexpected EOF": | 13:39 |
*** benji has joined #zope | 14:22 | |
*** [Arfrever] has quit IRC | 14:30 | |
*** [Arfreve1] has joined #zope | 14:30 | |
*** bigkevmcd has quit IRC | 14:31 | |
*** bigkevmcd has joined #zope | 14:32 | |
*** J1m has joined #zope | 14:51 | |
*** menesis has joined #zope | 15:02 | |
*** tzicatl has joined #zope | 15:04 | |
*** ericof has joined #zope | 15:22 | |
*** zagy has quit IRC | 15:52 | |
*** zagy has joined #zope | 15:57 | |
*** do3cc has joined #zope | 16:00 | |
*** sweh has quit IRC | 16:08 | |
*** TomBlockley has quit IRC | 16:08 | |
*** Arfrever has joined #zope | 16:15 | |
*** avoinea has quit IRC | 16:25 | |
*** [Arfreve1] has quit IRC | 16:29 | |
*** [Arfrever] has joined #zope | 16:31 | |
*** avoinea has joined #zope | 16:33 | |
*** goschtl has quit IRC | 16:33 | |
*** menesis has quit IRC | 17:09 | |
*** menesis has joined #zope | 17:17 | |
*** tiwula has joined #zope | 17:34 | |
*** f10w has quit IRC | 17:45 | |
*** f10w has joined #zope | 17:45 | |
*** ccomb has quit IRC | 17:52 | |
*** ahinki has quit IRC | 17:53 | |
*** supton has joined #zope | 18:05 | |
*** thetet has quit IRC | 18:10 | |
*** RichyB has joined #zope | 18:33 | |
*** phrearch_ has quit IRC | 18:34 | |
*** __mac__ has quit IRC | 18:52 | |
*** __mac__ has joined #zope | 18:55 | |
*** __mac__ has quit IRC | 19:00 | |
*** sunew has quit IRC | 19:02 | |
*** andreypopp has quit IRC | 19:04 | |
*** giacomos has quit IRC | 19:08 | |
*** alexpilz has quit IRC | 19:20 | |
*** agroszer has quit IRC | 19:21 | |
*** alga has joined #zope | 19:27 | |
*** betabug has quit IRC | 19:30 | |
*** zagy has quit IRC | 19:37 | |
*** m8 has joined #zope | 19:38 | |
*** betabug has joined #zope | 19:41 | |
*** eperez has quit IRC | 19:48 | |
*** cwarner has quit IRC | 19:49 | |
*** sunew has joined #zope | 19:55 | |
*** alga has quit IRC | 20:14 | |
*** avoinea has quit IRC | 20:14 | |
*** evilbungle has quit IRC | 20:35 | |
*** thetet has joined #zope | 20:36 | |
*** menesis has quit IRC | 20:37 | |
*** mitchell` is now known as mitchell`off | 20:45 | |
tzicatl | I'm testing my app with a zope.app.appsetup.testlayer.ZODBLayer. My code uses the catalog, and I'm having a ComponentLookupError: (<InterfaceClass zope.intid.interfaces.IIntIds>, '') | 21:24 |
tzicatl | Any idea on how to setup my test fixture so I can continue testing | 21:24 |
supton | tzicatl: setSite() ? | 21:25 |
tzicatl | supton: Let me try that | 21:25 |
tzicatl | supton: Noup, it still fails with the same stuff :( | 21:32 |
*** Spanktar has joined #zope | 21:32 | |
supton | well, figure out what registers the local intid utility? | 21:33 |
tzicatl | supton, do you know a project that does similar thing with tests? So I can take a look at how do the do it? | 21:34 |
*** MrTango has quit IRC | 21:34 | |
supton | tzicatl: no | 21:35 |
supton | tzicatl: not with intid utility | 21:35 |
supton | tzicatl: I have only done this in plone context | 21:35 |
tzicatl | supton: Ohh, plone differs.... | 21:35 |
supton | tzicatl: right | 21:35 |
supton | tzicatl: but the idea should be the same, you need to figure out what part of your layer is responsible for ensuring that the intid utility is registered, no? | 21:36 |
tzicatl | supton: Yeah. Right now it is a subclass of zope.app.wsgi.testlayer.BrowserLayer | 21:37 |
tzicatl | I'm looking at zope.intid test and it setups a bunch of stuff from zope.component :/ | 21:39 |
*** menesis has joined #zope | 21:40 | |
supton | tzicatl: you might have to construct the IntIds utility like https://github.com/plone/five.intid/blob/master/five/intid/site.py does | 21:41 |
supton | tzicatl: construct and register with local site manager via getSite().getSiteMaanager().registerUtility() | 21:42 |
tzicatl | supton: Can i do that in my layer? | 21:43 |
supton | tzicatl: I'm under the impression that you will need to | 21:44 |
tzicatl | Okay, let's try that | 21:44 |
supton | tzicatl: that is what five.intid tests do (using Zope2 ZopeTestCase, but still, same idea applies) | 21:44 |
supton | construct the IntIds utility component, register it with local site manager, and hopefully all is well | 21:45 |
*** ccomb has joined #zope | 21:47 | |
*** teix has quit IRC | 21:51 | |
*** iana has joined #zope | 21:58 | |
*** Spanktar is now known as spanky|lunch | 22:08 | |
*** alga has joined #zope | 22:25 | |
*** J1m has quit IRC | 22:31 | |
*** spanky|lunch is now known as Spanktar | 22:40 | |
*** alga has quit IRC | 22:51 | |
*** nfbv has joined #zope | 23:13 | |
nfbv | hi, i'm installing Python with zc.buildout and it tells me it can't find python.h. is this file necessary since it's installing an isolated Python instance? | 23:14 |
*** cparlette has joined #zope | 23:22 | |
tzicatl | nfbv: Yes | 23:24 |
tzicatl | nfbv: Install the python development headers | 23:24 |
*** ccomb has quit IRC | 23:24 | |
*** ccomb has joined #zope | 23:25 | |
tzicatl | nfbv: In debian/ubuntu the package name is python-dev | 23:25 |
tzicatl | nfbv: In fedora/RHEL/Centos/Amazon AMI the package is python-devel | 23:26 |
tzicatl | supton: All right, I registered my utility component, but if fails with "AttributeError: type object 'IntIds' has no attribute '__iro__'" | 23:28 |
tzicatl | I'm using zope.intid.IntIds as the implementer of IIntIds ... | 23:29 |
supton | tzicatl: are you registering an *instance* of IntIds or the class itself. | 23:30 |
supton | ? | 23:30 |
supton | tzicatl: sounds like the latter, do the former | 23:30 |
tzicatl | supton: fails in both ways | 23:31 |
tzicatl | I'm doing: | 23:31 |
tzicatl | root = self.getRootFolder() | 23:31 |
tzicatl | sm = getSiteManager(root) | 23:31 |
tzicatl | sm.registerUtility(IIntIds, IntIds(), 'intids') | 23:31 |
supton | tzicatl: you have the argument order wrong in registerUtility, I think | 23:32 |
supton | http://www.muthukadan.net/docs/zca.html#registerutility | 23:32 |
supton | tzicatl: should be sm.registerUtility(IntIds(), provided=IIIntIds, name=u'intids') # I think | 23:33 |
tzicatl | supton: Yeah, that was it. However,I returned to the same ComponentLookupError :( | 23:34 |
supton | tzicatl: try registering without the name | 23:35 |
tzicatl | supton: same | 23:35 |
supton | tzicatl: I suspect the lookup is just looking for IIntInds | 23:35 |
supton | well, pdb where the ComponentLookupError is getting raised, and try doing lookups yourself | 23:35 |
supton | and make sure that getSite() from pdb gives you what you expect | 23:36 |
supton | and make sure that you can get your site manager | 23:36 |
nfbv | tzicatl: i already have python-devel installed | 23:36 |
supton | something more fundamental than this one registration might be at issue, but I am not sure what | 23:36 |
tzicatl | supton: Would it be that I'm doing all this in my Layer? | 23:37 |
supton | tzicatl: dunno | 23:37 |
* tzicatl sighs | 23:37 | |
tzicatl | nfbv: Which os are you using? | 23:38 |
supton | tzicatl: I have not done testing in the ztk / bluebream / grok contexts | 23:38 |
supton | outside of using plone | 23:38 |
tzicatl | supton: So, I'm gonna do some more tries | 23:38 |
supton | tzicatl: I still suspect you need to get into pdb to figure this out from the inside out, not deductively from poking at your layer | 23:39 |
tzicatl | supton: yeah | 23:39 |
*** cparlette has quit IRC | 23:53 | |
*** sunew has quit IRC | 23:54 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!