Plone 4.3 how to update archetypes.referencebrowserwidget to version 2.5.2?

We have a site running Plone 4.3.2 based on CMF 2.2.7, Zope 2.13.21, Python 2.7.15

we need to update archetypes.referencebrowserwidget-2.4.19 in dir
eggs/archetypes.referencebrowserwidget-2.4.19-py2.7.egg

to archetypes.referencebrowserwidget version 2.5.2 (at https://pypi.org/project/archetypes.referencebrowserwidget/)
which can * Fix the “Clear Reference” button, which was not working

I read the book from Martin Aspeli, which said I should use easy_install,
but i could not see the details how to update that referencebrowserwidget.

Please give us few steps. Many thanks for your time.

Maybe pin the version in your buildout.cfg or version.cfg to 2.5.2 or higher.

[versions]
...
archetypes.referencebrowserwidget     = 2.5.8
...

Jan thank you for the hint,

then i rund bin/buildout as 'zope' user, and got such error. I dont see '.eggs' text in *.cfg files

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: './.eggs/test-easy-install-30041.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    ./.eggs

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

any idea? Many thanks.

as I am newbie to Plone, i post here almost the whole error list

warning: no files found matching 'ChangeLog' anywhere in distribution
warning: no files found matching 'NEWS' anywhere in distribution
Develop: 'src/ova.budget'
Traceback (most recent call last):
  File "/tmp/tmpeksNC9", line 11, in <module>
    execfile('src/ova.budget/setup.py')
  File "src/ova.budget/setup.py", line 43, in <module>
    paster_plugins = ["ZopeSkel"],
  File "venv/lib/python2.7/site-packages/setuptools/__init__.py", line 128, in setup
    _install_setup_requires(attrs)
  File "venv/lib/python2.7/site-packages/setuptools/__init__.py", line 123, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "venv/lib/python2.7/site-packages/setuptools/dist.py", line 461, in fetch_build_eggs
    replace_conflicting=True,
  File "venv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 866, in resolve
    replace_conflicting=replace_conflicting
  File "venv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1146, in best_match
    return self.obtain(req, installer)
  File "venv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1158, in obtain
    return installer(requirement)
  File "venv/lib/python2.7/site-packages/setuptools/dist.py", line 527, in fetch_build_egg
    cmd.ensure_finalized()
  File "/usr/local/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "venv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 321, in finalize_options
    self.check_site_dir()
  File "venv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 466, in check_site_dir
    self.cant_write_to_target()
  File "venv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 529, in cant_write_to_target
    raise DistutilsError(msg)
distutils.errors.DistutilsError: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: './.eggs/test-easy-install-30041.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    ./.eggs

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  https://setuptools.readthedocs.io/en/latest/easy_install.html

Please make the appropriate changes for your system and try again.

While:
  Installing.
  Processing develop directory 'src/ova.budget'.

An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "eggs/zc.buildout-1.7.1-py2.7.egg/zc/buildout/buildout.py", line 1866, in main
    getattr(buildout, command)(args)
  File "eggs/zc.buildout-1.7.1-py2.7.egg/zc/buildout/buildout.py", line 487, in install
    installed_develop_eggs = self._develop()
  File "eggs/zc.buildout-1.7.1-py2.7.egg/zc/buildout/buildout.py", line 727, in _develop
    zc.buildout.easy_install.develop(setup, dest)
  File "eggs/zc.buildout-1.7.1-py2.7.egg/zc/buildout/easy_install.py", line 1184, in develop
    *args) == 0
AssertionError
*************** PICKED VERSIONS ****************
[versions]

*************** /PICKED VERSIONS ***************

i solved the problem .... just run command chown zope . :slight_smile:

now i see another problem with new ReferenceBrowserWidget, it did not show the whole 'tree' of allowed_types = ('Actuality',), but only 1 item :frowning:

play with the Options for Widget in the Docs . I don't use archetypes anymore.

Plone Foundation Code of Conduct