ImportError: No module named dexterity.localcommands.dexterity

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ImportError: No module named dexterity.localcommands.dexterity

Vito
Ciao a tutti,
mi sono deciso a fare roba con Dexterity.

Mi son tirato già un bel buildout 4.3.2 fresco (tramite redturtle.deployments.plone) e ho aggiunto all'apposito file di cfg la solita Paste PasteDeploy PasteScript e zopeskel.dexterity.

Vado in src, e uso il comando di "zopeskel dexterity example.conference" per creare il pacchetto farlocco.
Lo aggiungo in cfg e quindi buildout -N.

Vado in src/example.conference e cerco di aggiungere un contentype al pacchetto tramite

../../bin/paster addcontent dexterity_content

ottenendo

  File "../../bin/paster", line 282, in <module>

       sys.exit(paste.script.command.run())

  File "/Users/vitofalco/virtual-plone433/buildout/src/example.conference/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 104, in run

    invoke(command, command_name, options, args[1:])

  File "/Users/vitofalco/virtual-plone433/buildout/src/example.conference/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 143, in invoke

    exit_code = runner.run(args)

  File "/Users/vitofalco/virtual-plone433/buildout/src/example.conference/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 238, in run

    result = self.command()

  File "/Users/vitofalco/.buildout/eggsdir/ZopeSkel-2.21.2-py2.7.egg/zopeskel/localcommands/__init__.py", line 70, in command

    self._extend_templates(templates, args[0])

  File "/Users/vitofalco/.buildout/eggsdir/ZopeSkel-2.21.2-py2.7.egg/zopeskel/localcommands/__init__.py", line 204, in _extend_templates

    tmpl = entry.load()(entry.name)

  File "/Users/vitofalco/virtual-plone433/lib/python2.7/site-packages/pkg_resources.py", line 2186, in load

    ['__name__'])

ImportError: No module named dexterity.localcommands.dexterity


Non capisco dove sbaglio...

Vito



_______________________________________________
Plone-IT mailing list
[hidden email]
https://lists.plone.org/mailman/listinfo/plone-plone-it
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named dexterity.localcommands.dexterity

gborelli
ciao vito,
penso che manchi semplicemente qualche dipendenza per ZopeSkel.

Guarda se questo readme e pacchetto ti possono aiutare - https://github.com/collective/templer.dexterity/

p.s. è così semplice creare un CT Dexterity che puoi anche non usarlo ZopeSkel e partire da un CT di base - https://github.com/plone/plone.app.contenttypes ;)


2014-09-11 17:42 GMT+02:00 Vito Falco <[hidden email]>:
Ciao a tutti,
mi sono deciso a fare roba con Dexterity.

Mi son tirato già un bel buildout 4.3.2 fresco (tramite redturtle.deployments.plone) e ho aggiunto all'apposito file di cfg la solita Paste PasteDeploy PasteScript e zopeskel.dexterity.

Vado in src, e uso il comando di "zopeskel dexterity example.conference" per creare il pacchetto farlocco.
Lo aggiungo in cfg e quindi buildout -N.

Vado in src/example.conference e cerco di aggiungere un contentype al pacchetto tramite

../../bin/paster addcontent dexterity_content

ottenendo

  File "../../bin/paster", line 282, in <module>

       sys.exit(paste.script.command.run())

  File "/Users/vitofalco/virtual-plone433/buildout/src/example.conference/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 104, in run

    invoke(command, command_name, options, args[1:])

  File "/Users/vitofalco/virtual-plone433/buildout/src/example.conference/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 143, in invoke

    exit_code = runner.run(args)

  File "/Users/vitofalco/virtual-plone433/buildout/src/example.conference/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 238, in run

    result = self.command()

  File "/Users/vitofalco/.buildout/eggsdir/ZopeSkel-2.21.2-py2.7.egg/zopeskel/localcommands/__init__.py", line 70, in command

    self._extend_templates(templates, args[0])

  File "/Users/vitofalco/.buildout/eggsdir/ZopeSkel-2.21.2-py2.7.egg/zopeskel/localcommands/__init__.py", line 204, in _extend_templates

    tmpl = entry.load()(entry.name)

  File "/Users/vitofalco/virtual-plone433/lib/python2.7/site-packages/pkg_resources.py", line 2186, in load

    ['__name__'])

ImportError: No module named dexterity.localcommands.dexterity


Non capisco dove sbaglio...

Vito



_______________________________________________
Plone-IT mailing list
[hidden email]
https://lists.plone.org/mailman/listinfo/plone-plone-it
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html



--
Giorgio Borelli

_______________________________________________
Plone-IT mailing list
[hidden email]
https://lists.plone.org/mailman/listinfo/plone-plone-it
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named dexterity.localcommands.dexterity

Vito
Grazie per le dritte, ma le dipendenze credo siano soddisfatte.

Lo so che è semplice creare content-type dexterity, ma sono pigro :)

Vito

Il giorno 11 settembre 2014 19:05, Giorgio Borelli <[hidden email]> ha scritto:
ciao vito,
penso che manchi semplicemente qualche dipendenza per ZopeSkel.

Guarda se questo readme e pacchetto ti possono aiutare - https://github.com/collective/templer.dexterity/

p.s. è così semplice creare un CT Dexterity che puoi anche non usarlo ZopeSkel e partire da un CT di base - https://github.com/plone/plone.app.contenttypes ;)


2014-09-11 17:42 GMT+02:00 Vito Falco <[hidden email]>:
Ciao a tutti,
mi sono deciso a fare roba con Dexterity.

Mi son tirato già un bel buildout 4.3.2 fresco (tramite redturtle.deployments.plone) e ho aggiunto all'apposito file di cfg la solita Paste PasteDeploy PasteScript e zopeskel.dexterity.

Vado in src, e uso il comando di "zopeskel dexterity example.conference" per creare il pacchetto farlocco.
Lo aggiungo in cfg e quindi buildout -N.

Vado in src/example.conference e cerco di aggiungere un contentype al pacchetto tramite

../../bin/paster addcontent dexterity_content

ottenendo

  File "../../bin/paster", line 282, in <module>

       sys.exit(paste.script.command.run())

  File "/Users/vitofalco/virtual-plone433/buildout/src/example.conference/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 104, in run

    invoke(command, command_name, options, args[1:])

  File "/Users/vitofalco/virtual-plone433/buildout/src/example.conference/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 143, in invoke

    exit_code = runner.run(args)

  File "/Users/vitofalco/virtual-plone433/buildout/src/example.conference/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 238, in run

    result = self.command()

  File "/Users/vitofalco/.buildout/eggsdir/ZopeSkel-2.21.2-py2.7.egg/zopeskel/localcommands/__init__.py", line 70, in command

    self._extend_templates(templates, args[0])

  File "/Users/vitofalco/.buildout/eggsdir/ZopeSkel-2.21.2-py2.7.egg/zopeskel/localcommands/__init__.py", line 204, in _extend_templates

    tmpl = entry.load()(entry.name)

  File "/Users/vitofalco/virtual-plone433/lib/python2.7/site-packages/pkg_resources.py", line 2186, in load

    ['__name__'])

ImportError: No module named dexterity.localcommands.dexterity


Non capisco dove sbaglio...

Vito



_______________________________________________
Plone-IT mailing list
[hidden email]
https://lists.plone.org/mailman/listinfo/plone-plone-it
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html



--
Giorgio Borelli

_______________________________________________
Plone-IT mailing list
[hidden email]
https://lists.plone.org/mailman/listinfo/plone-plone-it
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html



--
Vito Falco
Designer & Front-end developer | Plone consultant | Freelance
Bari, IT
tel +39 3346330137 | skype vito80ba | twitter vito80ba

_______________________________________________
Plone-IT mailing list
[hidden email]
https://lists.plone.org/mailman/listinfo/plone-plone-it
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named dexterity.localcommands.dexterity

alepisa
In reply to this post by Vito
On 11 September 2014 17:42, Vito Falco <[hidden email]> wrote:
> Ciao a tutti,
> mi sono deciso a fare roba con Dexterity.
>

Bravo!

> Mi son tirato già un bel buildout 4.3.2 fresco (tramite
> redturtle.deployments.plone) e ho aggiunto all'apposito file di cfg la
> solita Paste PasteDeploy PasteScript e zopeskel.dexterity.
>

Ancora piu' bravo, ma e' gia' ora di 4.3.3

> Vado in src, e uso il comando di "zopeskel dexterity example.conference" per
> creare il pacchetto farlocco.
> Lo aggiungo in cfg e quindi buildout -N.
>
> Vado in src/example.conference e cerco di aggiungere un contentype al
> pacchetto tramite
>
> ../../bin/paster addcontent dexterity_content
> ....
> ImportError: No module named dexterity.localcommands.dexterity
>

Questo perche' il paster che stai usando ignora che hai installato
zopeskel.dexterity.
Probabilmente lo sa zopepy, prova cosi':

$ ../../bin/zopepy ../../bin/paster addcontent dexterity_content

Ciao
--
http://alepisa.blogspot.com
Esalando Prassi
_______________________________________________
Plone-IT mailing list
[hidden email]
https://lists.plone.org/mailman/listinfo/plone-plone-it
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html