Imports broken on 2.9.0-b1?
Another quickie problem report - no time to investigate further right now, but can anybody else reproduce? If so, I'll try to fix tomorrow... In a fresh 2.9.0-b1 instance, made via bin/mkzopeinstance, I get this when I click the "Import/Export" button in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: OSError Error Value: [Errno 2] No such file or directory: '/home/pw/Zope-2.9.0b1-SoftwareHome/import' And the traceback is: Traceback (innermost last): Module ZPublisher.Publish, line 113, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module App.special_dtml, line 175, in _exec Module DocumentTemplate.DT_In, line 626, in renderwob Module DocumentTemplate.DT_Util, line 196, in eval - __traceback_info__: list_imports Module <string>, line 0, in ? Module OFS.ObjectManager, line 622, in list_imports OSError: [Errno 2] No such file or directory: '/home/pw/Zope-2.9.0b1-SoftwareHome/import' Well, err, why are you looking there? That's not my instance home :-\
From the control panel:
Zope Version (Zope 2.9.0-b1, python 2.4.2, linux2) Python Version 2.4.2 (#1, Nov 3 2005, 23:58:28) [GCC 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)] System Platform linux2 SOFTWARE_HOME /home/pw/Zope-2.9.0b1-SoftwareHome/lib/python ZOPE_HOME /home/pw/Zope-2.9.0b1-SoftwareHome INSTANCE_HOME /home/pw/Z29Instance -- Paul Winkler http://www.slinkp.com
Am Sonntag, den 11.12.2005, 23:19 -0500 schrieb Paul Winkler:
Another quickie problem report - no time to investigate further right now, but can anybody else reproduce? If so, I'll try to fix tomorrow...
In a fresh 2.9.0-b1 instance, made via bin/mkzopeinstance, I get this when I click the "Import/Export" button in the ZMI:
Site Error
An error was encountered while publishing this resource.
Error Type: OSError Error Value: [Errno 2] No such file or directory: '/home/pw/Zope-2.9.0b1-SoftwareHome/import'
And the traceback is: ... OSError: [Errno 2] No such file or directory: '/home/pw/Zope-2.9.0b1-SoftwareHome/import'
Well, err, why are you looking there? That's not my instance home :-\
I suspect its the feature which got introduced in 2.8? or so which has a browser for packets to import so you dont have to guess and type the name correctly. And to not have to copy the exaples to every instance home, it looks in Software-home too. 2 questions araise, though: 1) why is Softwarehome/import not there? 2) why is the test not skipping the non existant directory. Either case a bug report :) ++Tino
On Mon, Dec 12, 2005 at 07:57:43AM +0100, Tino Wildenhain wrote:
I suspect its the feature which got introduced in 2.8? or so which has a browser for packets to import so you dont have to guess and type the name correctly. And to not have to copy the exaples to every instance home, it looks in Software-home too.
Yes, apparently so.
2 questions araise, though:
1) why is Softwarehome/import not there?
I suspect that it's supposed to be created by "make install" by copying the one in skel; I don't yet know why it's not, will investigate. "make install" under 2.7.x and 2.8.x used to do this. Incidentally, this raises the point that some included docs are out of date. I'll file a separate collector issue about that, since I can't figure out what they're supposed to say now so I can't fix them ;-)
2) why is the test not skipping the non existant directory.
#2 is trivial, I will check in a fix as soon as I figure out a test to demonstrate the issue. -- Paul Winkler http://www.slinkp.com
Tino Wildenhain wrote:
Am Sonntag, den 11.12.2005, 23:19 -0500 schrieb Paul Winkler:
Another quickie problem report - no time to investigate further right now, but can anybody else reproduce? If so, I'll try to fix tomorrow...
In a fresh 2.9.0-b1 instance, made via bin/mkzopeinstance, I get this when I click the "Import/Export" button in the ZMI:
Site Error
An error was encountered while publishing this resource.
Error Type: OSError Error Value: [Errno 2] No such file or directory: '/home/pw/Zope-2.9.0b1-SoftwareHome/import'
And the traceback is:
...
OSError: [Errno 2] No such file or directory: '/home/pw/Zope-2.9.0b1-SoftwareHome/import'
Well, err, why are you looking there? That's not my instance home :-\
I suspect its the feature which got introduced in 2.8? or so which has a browser for packets to import so you dont have to guess and type the name correctly. And to not have to copy the exaples to every instance home, it looks in Software-home too.
Thanks for the explanation.
2 questions araise, though:
1) why is Softwarehome/import not there?
Because it was conflicting with an in-place instance in a checkout which would also install an 'import' directory.
2) why is the test not skipping the non existant directory.
I think supporting $SOFTWARE_HOME/import is yagni and just complicates things. Let's rip it out. Philipp
On Mon, Dec 12, 2005 at 06:05:48PM +0100, Philipp von Weitershausen wrote:
I think supporting $SOFTWARE_HOME/import is yagni and just complicates things. Let's rip it out.
I'm gonna punt on that: I can imagine hosting providers might be using that feature already, and I do'nt feel like doing the research to find out. Feel free to write a proposal :-) Meanwhile, I've fixed the trivial error with list_imports() and I'm checking it in on trunk and 2.9 in a moment. -- Paul Winkler http://www.slinkp.com
participants (3)
-
Paul Winkler -
Philipp von Weitershausen -
Tino Wildenhain