[Grok-dev] zope.app.file/zope.file buildout error
Mauro Boschi
me at monadic.org
Tue May 22 15:48:54 UTC 2012
Hi,
I've tried to run Music Tutorial but it doesn't work in song.py section ( http://grok.zope.org/documentation/tutorial/musical-performance-organizer-part-1 ). So I've tried zope.file how-to: http://grok.zope.org/documentation/how-to/uploading-file but it doesn't work too! :(
with a new grokproject test
I've added in buildout.cfg:
[zope_conf]
recipe = collective.recipe.template
input = etc/zope.conf.in
output = ${buildout:parts-directory}/etc/zope.conf
filestorage = ${buildout:directory}/var/filestorage
blobstorage = ${buildout:directory}/var/blobstorage
devmode = on
extra =
#I've added the devmode line to resolve another error.
Then I've added in setup.py:
install_requires=['setuptools',
'grok',
'grokui.admin',
'fanstatic',
'zope.fanstatic',
'grokcore.chameleon',
'grokcore.startup',
# Add extra requirements here
'zope.file',
'zope.mimetype',
],
bin/buildout run without errors but when grok startup:
bin/paster serve --reload parts/etc/debug.ini
It raises this error:
ConfigurationError: ('Invalid value for', 'menu', "ImportError: Couldn't import zmi_views, No module named zmi_views")
---
Complete output there: http://pastebin.com/4ttSuCYp
I've tried with zope.app.file part from the same how-to but it raises a different error:
File "/usr/lib/python2.7/email/mime/image.py", line 9, in <module>
import imghdr
RuntimeError: sys.path must be a list of directory names
---
Complete output there: http://pastebin.com/ysH1VRA7
Thanks!
Mauro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.zope.org/pipermail/grok-dev/attachments/20120522/f4148505/attachment.sig>
More information about the Grok-dev
mailing list