Skip to content

feat(test-server): upgrade dependencies

Nicola Spanti requested to merge topic/default/cw-test-server into branch/default

There are higher versions of at least CubicWeb. But the projet we are currently working on uses this versions. It is not up-to-date, but it is better than before. Now it works again! Previously we have an error with psycopg2. However, tests against JavaScript are still not working.

https://forge.extranet.logilab.fr/open-source/cwclientlibjs/-/jobs/1012747

Traceback (most recent call last):
  File "/usr/local/bin/cubicweb-ctl", line 8, in <module>
    sys.exit(run())
  File "/usr/local/lib/python3.9/dist-packages/cubicweb/cwctl.py", line 963, in run
    cwcfg.load_cwctl_plugins()
  File "/usr/local/lib/python3.9/dist-packages/cubicweb/cwconfig.py", line 704, in load_cwctl_plugins
    for cube in cls.available_cubes():
  File "/usr/local/lib/python3.9/dist-packages/cubicweb/cwconfig.py", line 536, in available_cubes
    module = entry_point.load()
  File "~/.local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2517, in load
    self.require(*args, **kwargs)
  File "~/.local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2540, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File "~/.local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 829, in resolve
    dist = self._resolve_dist(
  File "~/.local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 875, in _resolve_dist
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (psycopg2-binary 2.9.9 (~/.local/lib/python3.9/site-packages), Requirement.parse('psycopg2-binary<2.9.0,>=2.8.0'))
Traceback (most recent call last):
  File "/usr/local/bin/docker-cubicweb-helper", line 50, in <module>
    sys.exit(func(**args))
  File "/usr/local/bin/docker-cubicweb-helper", line 32, in create_instance
    subprocess.check_call([
  File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command
'['cubicweb-ctl', 'create', 'test_server', 'cwinstance',
  '--automatic', '--no-db-create']'
returned non-zero exit status 1.
error building image: error building stage:
failed to execute command: waiting for process to exit: exit status 1

Merge request reports