[CPS-users-fr] Re: ajouter un produit - erreur cpsgeo

laneuve laneuve at tiscali.fr
Jeu 4 Mai 10:58:29 CEST 2006



Yves Bastide a écrit :

> laneuve wrote:
>
>> je suis entrain d'essayer d'ajouter deux produit a cps 3.4 sous linux,
>> cpschat et cpsgeo, j'ai mis les deux dossiers dans le dossier Products,
>> mais quant j'essaye de faire l'import par  Add External Method, j'ai une
>> erreur en retour:
>>
>> The specified module, /CPSGeo.install/, couldn't be found. (Also, the
>> following error occurred while attempting to render the standard error
>> message, please see the event log for full details: You are not allowed
>> to access 'aq_explicit' in this context)*
>>
>> l'erreur est la meme avec cpschat
>>
>> le log dit ceci:
>> ------
>> 2006-05-03T17:15:18 ERROR Zope Could not import Products.CPSGeo-0.9.2
>> Traceback (most recent call last):
>>   File "/usr/local/Zope-2.9.2/lib/python/OFS/Application.py", line 715,
>> in import_product
>>     product=__import__(pname, global_dict, global_dict, silly)
>> ImportError: No module named CPSGeo-0.9.2
>> ------
>>
>> si quelqu'un a une solution,je le remercie par avance
>>
>> Fredfred
>
>
> Renomme CPSGeo-0.9.2 en CPSGeo ; pareil pour CPSChat-x.y.z
>
Merci, c'etait bien le nom qui posait probleme en effet, maintenant, 
cpschat marche, mais il me reste une erreur a la creation du produit cpsgeo:

Site Error

An error was encountered while publishing this resource.

ImportError
Sorry, a site error occurred.

Traceback (innermost last):

    * Module ZPublisher.Publish, line 194, in publish_module_standard
    * Module Products.Localizer, line 60, in new_publish
    * Module ZPublisher.Publish, line 146, in publish
    * Module Products.CPSCompat.PatchPublisherConflictErrors, line 95, 
in zpublisher_exception_hook
    * Module ZPublisher.Publish, line 115, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 41, in call_object
    * Module Products.ExternalMethod.ExternalMethod, line 59, in 
manage_addExternalMethod
    * Module Products.ExternalMethod.ExternalMethod, line 111, in __init__
    * Module Products.ExternalMethod.ExternalMethod, line 134, in 
manage_edit
    * Module Products.ExternalMethod.ExternalMethod, line 141, in 
getFunction
    * Module App.Extensions, line 148, in getObject
      __traceback_info__: 
('/home/viatic/Products/CPSGeo/Extensions/install.py', 'CPSGeo.install')
    * Module /home/viatic/Products/CPSGeo/Extensions/install.py, line 
26, in ?
    * Module None, line 23, in ?
    * Module None, line 26, in ?

ImportError: No module named cartography.referencing.srs (Also, the 
following error occurred while attempting to render the standard error 
message, please see the event log for full details: You are not allowed 
to access 'aq_explicit' in this context)

Troubleshooting Suggestions

    * The URL may be incorrect.
    * The parameters passed to this resource may be incorrect.
    * A resource that this resource relies on may be encountering an error.

For more detailed information about the error, please refer to error log.

If the error persists please contact the site maintainer. Thank you for 
your patience.

 et voici le fichier log:
------
2006-05-04T10:38:41 ERROR Zope.SiteErrorLog 
http://localhost:8080/cps/manage_addProduct/ExternalMethod/manage_addExternalMethod
Traceback (most recent call last):
  File "/usr/local/Zope-2.9.2/lib/python/ZPublisher/Publish.py", line 
115, in publish
    request, bind=1)
  File "/usr/local/Zope-2.9.2/lib/python/ZPublisher/mapply.py", line 88, 
in mapply
    if debug is not None: return debug(object,args,context)
  File "/usr/local/Zope-2.9.2/lib/python/ZPublisher/Publish.py", line 
41, in call_object
    result=apply(object,args) # Type s<cr> to step into published object.
  File 
"/usr/local/Zope-2.9.2/lib/python/Products/ExternalMethod/ExternalMethod.py", 
line 59, in manage_addExternalMethod
    i=ExternalMethod(id,title,module,function)
  File 
"/usr/local/Zope-2.9.2/lib/python/Products/ExternalMethod/ExternalMethod.py", 
line 111, in __init__
    self.manage_edit(title, module, function)
  File 
"/usr/local/Zope-2.9.2/lib/python/Products/ExternalMethod/ExternalMethod.py", 
line 134, in manage_edit
    self.getFunction(1)
  File 
"/usr/local/Zope-2.9.2/lib/python/Products/ExternalMethod/ExternalMethod.py", 
line 141, in getFunction
    f=getObject(self._module, self._function, reload)
  File "/usr/local/Zope-2.9.2/lib/python/App/Extensions.py", line 148, 
in getObject
    exec execsrc in m
  File "/home/viatic/Products/CPSGeo/Extensions/install.py", line 26, in ?
    from Products.CPSGeo.Extensions.mapbuilder_installer import install_lib
  File "/home/viatic/Products/CPSGeo/__init__.py", line 23, in ?
    import AllowModules
  File "/home/viatic/Products/CPSGeo/AllowModules.py", line 26, in ?
    from cartography.referencing.srs import SpatialReference
ImportError: No module named cartography.referencing.srs


Merci pour toute aide
Fredfred





Plus d'informations sur la liste de diffusion cps-users-fr
Plus d'information sur CPS: CPS project - CVS - API

Hébergement: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.