Help - installing collective.geolocationbehavior for Plone 5.2.10?

hi

in buildout.cfg i have:

eggs =
#....
     collective.geolocationbehavior
[versions]
# i even tried more lower version than actual verison 1.7.2
    collective.geolocationbehavior = 1.5.1

i still got the same error when running bin/buildout -vv:
Error: The requirement ('Products.CMFPlone>=6.0.0') is not allowed by your [versions] constraint (5.2.10)

Please help, many thanks for your time.

can you post your plone versione and the full buildout? In particular, the extends = part.

thank you @yurj for help

extends =
    base.cfg
    http://dist.plone.org/release/5.2.10/versions.cfg

and the base.cfg:

[buildout]
newest = false
# pick final releases over newer development releases
prefer-final = true

# show picked versions wherever we do an automatic choice
show-picked-versions = true

versions = versions

# Add additional egg download sources here. dist.plone.org contains archives
# of Plone packages.
find-links =
    http://dist.plone.org
    http://effbot.org/downloads

I think you've to run buildout -Nv. -N don't get newest version of already existing eggs, so it should not try to get Plone 6 related eggs.

Probably, the add-on requires other add-ons.

In other words:

  1. Open c.geoloca.... setup.py file
  2. Pin versions of whatever you see there
  3. You might need to do the same with requirements of 'the subpackages' as well

@yurj thank for reminding me about -N but the problem is another one :frowning:

@espenmn please could you write me more lines about your setup.py file, i dont see it in my Plone instalation system :slight_smile: I need to learn quickly from you.

the problem is bla bla not easy to find here: plone.formwidget.geolocation · PyPI

  • 3.0.x -> Plone 6.0.x
  • 2.2.x -> Plone 5.2.x

so, collective-geolocationbehavior uses plone.formwidget.geolocation
and we need to pin the version:

#not this one collective.geolocationbehavior = 1.5.1
#but:
plone.formwidget.geolocation = 2.2.5

1 Like

Pin everything you see in serup.py inside geolocationbehavior

UPDATE:
Look at this file. Everything that is in 'requires' should be pinned to versions that are for Plone 5.2

1 Like

If the product mantainers didn't add this info, you've to use [versions] section in the buildout.cfg file. Many products works for the current version and mantainers forgot to update old constraints. Sometimes the mix of addons depends on the project and you don't want to force a particular combination. Also you can have versions from git, so no version at all, then you manage versions in buildout.cfg or with mxdev in constraints.txt.

could anyone or @yurj save my time? :slight_smile:

i have installed geolocationbehavior, but when edit content type with 'geolocatable' behavior,
i need to click a point on map and the fields Latitude and Longitude have to be auto updated
according to the clicked point!
Now these 2 fields Latitude and Longitude keep blank, and we must enter by hands the lat and long.

you can check on the browser console if there are any javascript errors.

hi @yurj
i see only js patternslib package
in js console i see no error :frowning:
image
network is ok

whatever thank for your time!