IRC log of #zope for Tuesday, 2012-03-20

*** benji has quit IRC00:06
*** andreypo_ has quit IRC00:18
*** J1m has quit IRC00:25
*** RichyB has joined #zope00:27
*** Deathspawn has quit IRC00:34
*** menesis has joined #zope00:43
*** supton has quit IRC00:44
*** Deathspawn has joined #zope00:48
*** m8 has quit IRC00:48
*** TresEquis has quit IRC01:08
*** bigkevmcd has quit IRC01:34
*** bigkevmcd has joined #zope01:36
*** _mup_ has quit IRC02:00
*** _mup_ has joined #zope02:00
*** daMaestro has quit IRC02:38
*** tiwula has quit IRC02:40
*** tiwula has joined #zope04:30
*** Spanktar has quit IRC05:49
*** cwarner has joined #zope06:16
*** tzicatl has quit IRC06:27
*** tiwula has quit IRC06:28
*** samba has quit IRC08:17
*** sweh has joined #zope08:25
*** sweh1 has joined #zope08:39
*** sweh has quit IRC08:39
*** agroszer has joined #zope08:53
*** __mac__ has joined #zope08:59
*** eperez has quit IRC09:06
*** River_Rat is now known as RiverRat09:11
*** sunew has joined #zope09:24
*** sunew has quit IRC09:35
*** sunew has joined #zope09:39
*** goschtl has joined #zope10:03
*** giacomos has joined #zope10:11
*** avoinea has joined #zope10:27
*** mitchell`off is now known as mitchell`10:39
*** tisto has joined #zope10:40
*** yvl has quit IRC10:43
*** yvl has joined #zope10:47
*** ahinki has joined #zope10:51
*** eperez has joined #zope10:58
*** alexpilz has joined #zope11:02
*** alga has joined #zope11:05
*** MrTango has joined #zope11:22
*** sweh1 has quit IRC11:30
*** sweh has joined #zope11:31
*** alga has quit IRC11:31
*** TomBlockley has joined #zope11:33
*** zagy has joined #zope11:50
*** evilbungle has joined #zope12:01
*** tisto has quit IRC12:13
*** ccomb has joined #zope12:21
*** thetet has joined #zope12:21
*** sunew has quit IRC12:32
*** teix has joined #zope12:33
*** yvl has quit IRC12:37
*** sweh has quit IRC12:48
*** sweh has joined #zope12:49
*** phrearch_ has joined #zope13:03
phrearch_hello13: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 error13:05
phrearch_http://paste.pocoo.org/show/568410/13:05
*** sunew has joined #zope13:07
phrearch_ehm never mind. i installed manuel13:15
phrearch_starting from ./bin/zopectl fails to import zope namespace packages though13:15
phrearch_how can i test whether zope works?13:19
phrearch_zopectl seems to be broken13:19
phrearch_is it possible to start zope in another way?13:20
phrearch_like import zope; zope.start()13:20
phrearch_:)13:20
giacomosphrearch_: you can run it in a buildout environment13:23
phrearch_giacomos: ive installed zope through pip13:24
phrearch_i experimented a bit with getting pypy to compile zope13:24
phrearch_that worked, but now it fails to execute the scripts13:25
giacomosphrearch_: I think it's not officially supported13:25
phrearch_import errors where the python in virtualenv imports just fine13:25
phrearch_im pretty sure its not13:25
phrearch_just wondering if it could work like this13:25
phrearch_probably should use buildout13: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 pip13:33
goschtlphrearch_: i fear zope does not run under pypi13:34
goschtlnot pypi i mean pypy13:34
phrearch_goschtl: worth a try13:35
giacomosphrearch_: http://docs.zope.org/zope2/releases/2.12/INSTALL-buildout.html13:35
phrearch_giacomos: thanks!13:35
giacomosyw13:35
goschtlphrearch_: yes of course, i read somewhere that some packges (zope.interfce) does not work13:36
phrearch_goschtl: zope.interface worked13:36
goschtlphrearch_: yes maybe i am wrong13:36
phrearch_there were some c-extensions that didnt work, but that only required small changes13:37
*** menesis has quit IRC13:37
phrearch_Acquisition, and ExtensionClass13:37
phrearch_zodb also needed a small patch13:37
phrearch_and zope.proxy and another one13: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 #zope14:22
*** [Arfrever] has quit IRC14:30
*** [Arfreve1] has joined #zope14:30
*** bigkevmcd has quit IRC14:31
*** bigkevmcd has joined #zope14:32
*** J1m has joined #zope14:51
*** menesis has joined #zope15:02
*** tzicatl has joined #zope15:04
*** ericof has joined #zope15:22
*** zagy has quit IRC15:52
*** zagy has joined #zope15:57
*** do3cc has joined #zope16:00
*** sweh has quit IRC16:08
*** TomBlockley has quit IRC16:08
*** Arfrever has joined #zope16:15
*** avoinea has quit IRC16:25
*** [Arfreve1] has quit IRC16:29
*** [Arfrever] has joined #zope16:31
*** avoinea has joined #zope16:33
*** goschtl has quit IRC16:33
*** menesis has quit IRC17:09
*** menesis has joined #zope17:17
*** tiwula has joined #zope17:34
*** f10w has quit IRC17:45
*** f10w has joined #zope17:45
*** ccomb has quit IRC17:52
*** ahinki has quit IRC17:53
*** supton has joined #zope18:05
*** thetet has quit IRC18:10
*** RichyB has joined #zope18:33
*** phrearch_ has quit IRC18:34
*** __mac__ has quit IRC18:52
*** __mac__ has joined #zope18:55
*** __mac__ has quit IRC19:00
*** sunew has quit IRC19:02
*** andreypopp has quit IRC19:04
*** giacomos has quit IRC19:08
*** alexpilz has quit IRC19:20
*** agroszer has quit IRC19:21
*** alga has joined #zope19:27
*** betabug has quit IRC19:30
*** zagy has quit IRC19:37
*** m8 has joined #zope19:38
*** betabug has joined #zope19:41
*** eperez has quit IRC19:48
*** cwarner has quit IRC19:49
*** sunew has joined #zope19:55
*** alga has quit IRC20:14
*** avoinea has quit IRC20:14
*** evilbungle has quit IRC20:35
*** thetet has joined #zope20:36
*** menesis has quit IRC20:37
*** mitchell` is now known as mitchell`off20:45
tzicatlI'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
tzicatlAny idea on how to setup my test fixture so I can continue testing21:24
suptontzicatl: setSite() ?21:25
tzicatlsupton: Let me try that21:25
tzicatlsupton: Noup, it still fails with the same stuff :(21:32
*** Spanktar has joined #zope21:32
suptonwell, figure out what registers the local intid utility?21:33
tzicatlsupton, 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 IRC21:34
suptontzicatl: no21:35
suptontzicatl: not with intid utility21:35
suptontzicatl: I have only done this in plone context21:35
tzicatlsupton: Ohh, plone differs....21:35
suptontzicatl: right21:35
suptontzicatl: 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
tzicatlsupton: Yeah. Right now it is a subclass of zope.app.wsgi.testlayer.BrowserLayer21:37
tzicatlI'm looking at zope.intid test and it setups a bunch of stuff from zope.component :/21:39
*** menesis has joined #zope21:40
suptontzicatl: you might have to construct the IntIds utility like https://github.com/plone/five.intid/blob/master/five/intid/site.py does21:41
suptontzicatl: construct and register with local site manager via getSite().getSiteMaanager().registerUtility()21:42
tzicatlsupton: Can i do that in my layer?21:43
suptontzicatl: I'm under the impression that you will need to21:44
tzicatlOkay, let's try that21:44
suptontzicatl: that is what five.intid tests do (using Zope2 ZopeTestCase, but still, same idea applies)21:44
suptonconstruct the IntIds utility component, register it with local site manager, and hopefully all is well21:45
*** ccomb has joined #zope21:47
*** teix has quit IRC21:51
*** iana has joined #zope21:58
*** Spanktar is now known as spanky|lunch22:08
*** alga has joined #zope22:25
*** J1m has quit IRC22:31
*** spanky|lunch is now known as Spanktar22:40
*** alga has quit IRC22:51
*** nfbv has joined #zope23:13
nfbvhi, 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 #zope23:22
tzicatlnfbv: Yes23:24
tzicatlnfbv: Install the python development headers23:24
*** ccomb has quit IRC23:24
*** ccomb has joined #zope23:25
tzicatlnfbv: In debian/ubuntu the package name is python-dev23:25
tzicatlnfbv: In fedora/RHEL/Centos/Amazon AMI the package is python-devel23:26
tzicatlsupton: All right, I registered my utility component, but if fails with "AttributeError: type object 'IntIds' has no attribute '__iro__'"23:28
tzicatlI'm using zope.intid.IntIds as the implementer of IIntIds ...23:29
suptontzicatl: are you registering an *instance* of IntIds or the class itself.23:30
supton?23:30
suptontzicatl: sounds like the latter, do the former23:30
tzicatlsupton: fails in both ways23:31
tzicatlI'm doing:23:31
tzicatl        root = self.getRootFolder()23:31
tzicatl        sm = getSiteManager(root)23:31
tzicatl        sm.registerUtility(IIntIds, IntIds(), 'intids')23:31
suptontzicatl: you have the argument order wrong in registerUtility, I think23:32
suptonhttp://www.muthukadan.net/docs/zca.html#registerutility23:32
suptontzicatl: should be sm.registerUtility(IntIds(), provided=IIIntIds, name=u'intids') # I think23:33
tzicatlsupton: Yeah, that was it. However,I returned to the same ComponentLookupError :(23:34
suptontzicatl: try registering without the name23:35
tzicatlsupton: same23:35
suptontzicatl: I suspect the lookup is just looking for IIntInds23:35
suptonwell, pdb where the ComponentLookupError is getting raised, and try doing lookups yourself23:35
suptonand make sure that getSite() from pdb gives you what you expect23:36
suptonand make sure that you can get your site manager23:36
nfbvtzicatl: i already have python-devel installed23:36
suptonsomething more fundamental than this one registration might be at issue, but I am not sure what23:36
tzicatlsupton: Would it be that I'm doing all this in my Layer?23:37
suptontzicatl: dunno23:37
* tzicatl sighs 23:37
tzicatlnfbv: Which os are you using?23:38
suptontzicatl: I have not done testing in the ztk / bluebream / grok contexts23:38
suptonoutside of using plone23:38
tzicatlsupton: So, I'm gonna do some more tries23:38
suptontzicatl: I still suspect you need to get into pdb to figure this out from the inside out, not deductively from poking at your layer23:39
tzicatlsupton: yeah23:39
*** cparlette has quit IRC23:53
*** sunew has quit IRC23:54

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!