Hi,

First post for me here.

I'm trying to deploy* Plumi 4.5.1 *using the following guide:

https://mgogoulos.trinket.io/plumi-4-5#/installation/installation

On the following server (latest Debian 8):

*3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 / Debian
GNU/Linux 8*

I encountered some problems and apparently fixed some of them, so i'd like
to share my findings with the list and kindly ask for your support in
fixing remaining ones.

1) The bootstrap.py loads *setuptools *from a broken link:

/home/plumi/PLUMI/plumi.app# ./bin/python  bootstrap.py &&
./bin/buildout -vTraceback (most recent call last):
  File "bootstrap.py", line 61, in <module>
    ).read() in ez
  File "<string>", line 1
    <!DOCTYPE html>
    ^SyntaxError: invalid syntax

The issue was solved by replacing the link with the actual up to date
working one, everything is documented in the question i opened here:

http://stackoverflow.com/questions/31401717/syntax-error-during-plumi-plone-buildout/31401970#31401970

Maybe its better to update the link present in bootstrap.py in the
repository https://github.com/plumi/plumi.app/

2)

*An internal error occured due to a bug in either zc.buildout or in a*
*recipe being used:*
*Traceback (most recent call last):*
  File 
"/home/plumi/PLUMI/plumi.app/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py",
line 1683, in main
    getattr(buildout, command)(args)
  File 
"/home/plumi/PLUMI/plumi.app/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py",
line 439, in install
    [self[part]['recipe'] for part in install_parts]
  File 
"/home/plumi/PLUMI/plumi.app/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py",
line 987, in __getitem__
    options._initialize()
  File 
"/home/plumi/PLUMI/plumi.app/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py",
line 1071, in _initialize
    recipe_class = _install_and_load(reqs, 'zc.buildout', entry, buildout)
  File 
"/home/plumi/PLUMI/plumi.app/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py",
line 1032, in _install_and_load
    req.project_name, group, entry)
  File 
"/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.27-py2.7.egg/pkg_resources.py",
line 337, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
*  File 
"/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.27-py2.7.egg/pkg_resources.py",
line 2306, in load_entry_point*
*    raise ImportError("Entry point %r not found" % ((group,name),))*
*ImportError: Entry point ('zc.buildout', 'default') not found*

This problem was fixed by adding these in *buildout.cfg*

zc.buildout = 1.7.1
distribute = 0.6.35

I documented this in the question i opened here:

http://stackoverflow.com/questions/31403969/importerror-entry-point-zc-buildout-default-not-found/31412315#31412315

3)

Getting required 'collective.z3cform.datetimewidget==1.2.0'
We have the distribution that satisfies
'collective.z3cform.datetimewidget==1.2.0'.Getting required 'mock'
  required by zc.z3monitor 0.8.0.
We have no distributions for mock that satisfies 'mock'.
Getting distribution for 'mock'.
Running easy_install:/home/plumi/PLUMI/plumi.app/bin/python "-c" "from
setuptools.command.easy_install import main;main()" "-mUNxd"
"/home/plumi/PLUMI/plumi.app/eggs/tmpYSVOMR" "-q"
"/home/plumi/PLUMI/plumi.app/downloads/dist/mock-1.1.3.tar.gz"
path=/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.35-py2.7.egg

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File 
"/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.35-py2.7.egg/setuptools/command/easy_install.py",
line 1937, in main
    with_ei_usage(lambda:
  File 
"/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.35-py2.7.egg/setuptools/command/easy_install.py",
line 1918, in with_ei_usage
    return f()
  File 
"/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.35-py2.7.egg/setuptools/command/easy_install.py",
line 1941, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File 
"/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.35-py2.7.egg/setuptools/command/easy_install.py",
line 358, in run
    self.easy_install(spec, not self.no_deps)
  File 
"/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.35-py2.7.egg/setuptools/command/easy_install.py",
line 578, in easy_install
    return self.install_item(None, spec, tmpdir, deps, True)
  File 
"/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.35-py2.7.egg/setuptools/command/easy_install.py",
line 628, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File 
"/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.35-py2.7.egg/setuptools/command/easy_install.py",
line 823, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File 
"/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.35-py2.7.egg/setuptools/command/easy_install.py",
line 1103, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File 
"/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.35-py2.7.egg/setuptools/command/easy_install.py",
line 1089, in run_setup
    run_setup(setup_script, args)
  File 
"/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.35-py2.7.egg/setuptools/sandbox.py",
line 33, in run_setup
    lambda: execfile(
  File 
"/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.35-py2.7.egg/setuptools/sandbox.py",
line 81, in run
    return func()
  File 
"/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.35-py2.7.egg/setuptools/sandbox.py",
line 35, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 10, in <module>
    read('README.txt')AttributeError: 'module' object has no attribute 'version'
An error occurred when trying to install mock 1.1.3. Look above this
message for any errors that were output by easy_install.
While:
  Installing plone.
  Getting distribution for 'mock'.
Error: Couldn't install: mock 1.1.3
*********************************************
Overwriting versions.cfg
*********************************************

This problem is currently under analysis.

Could you kindly help me understanding how to fix this one ?


I can also suggest to add this package to the pre-requisites of the
buildout in the aforementioned guide (its mandatory to have it for
*nginx*):

*libssl-dev*


Thanks to everybody in advance,

Best Regards.


*Christian Bocchi*

RawNews - Technical Lead

http://raw-news.net/

http://raw-news.net/about_us
_______________________________________________
Discuss mailing list
[email protected]
http://lists.plumi.org/listinfo/discuss

Reply via email to