[SAC] [OSGeo] #2682: Install pretalx plugins pretalx-public-voting and (possibly pretalx-venueless)

OSGeo trac_osgeo at osgeo.org
Sat Dec 4 10:53:09 PST 2021


#2682: Install pretalx plugins pretalx-public-voting and (possibly pretalx-
venueless)
---------------------------+----------------------------------------
 Reporter:  robe           |       Owner:  sac@…
     Type:  task           |      Status:  new
 Priority:  normal         |   Milestone:  Sysadmin Contract 2021-II
Component:  Systems Admin  |  Resolution:
 Keywords:                 |
---------------------------+----------------------------------------

Comment (by robe):

 Okay pretalx-public-voting I finally got to install in the docker image.
 I also installed pluging pretalx-pages which looked useful.

 pretalx-venuless I wasn't so lucky - got error:


 {{{
 Traceback (most recent call last):
   File "/usr/local/lib/python3.8/runpy.py", line 194, in
 _run_module_as_main
     return _run_code(code, main_globals, None,
   File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
     exec(code, run_globals)
   File "/pretalx/src/pretalx/__main__.py", line 9, in <module>
     execute_from_command_line(sys.argv)
   File "/usr/local/lib/python3.8/site-
 packages/django/core/management/__init__.py", line 419, in
 execute_from_command_line
     utility.execute()
   File "/usr/local/lib/python3.8/site-
 packages/django/core/management/__init__.py", line 395, in execute
     django.setup()
   File "/usr/local/lib/python3.8/site-packages/django/__init__.py", line
 24, in setup
     apps.populate(settings.INSTALLED_APPS)
   File "/usr/local/lib/python3.8/site-packages/django/apps/registry.py",
 line 122, in populate
     app_config.ready()
   File "/src/pretalx-venueless/pretalx_venueless/apps.py", line 19, in
 ready
     from . import signals  # NOQA
   File "/src/pretalx-venueless/pretalx_venueless/signals.py", line 8, in
 <module>
     from pretalx.schedule.signals import schedule_release
 ImportError: cannot import name 'schedule_release' from
 'pretalx.schedule.signals' (/pretalx/src/pretalx/schedule/signals.py)
 }}}


 But anyway guess that might still be in development and not ready for
 prime time or only works with not yet released pretalx that is supports
 hooks in schedules.

 So the Dockerfile I ended up with is

 Docker File contents:


 {{{
 FROM pretalx/standalone:latest
 USER root
 # Based on instructions from https://github.com/pretalx/pretalx-
 docker/issues/13
 RUN pip3 install -Ue "git+https://github.com/pretalx/pretalx-public-
 voting.git at master#egg=pretalx-public-voting"
 RUN pip3 install -Ue "git+https://github.com/pretalx/pretalx-
 pages.git at master#egg=pretalx-pages"
 #RUN pip3 install -Ue "git+https://github.com/pretalx/pretalx-
 venueless.git at main#egg=pretalx-venueless"
 USER pretalxuser
 RUN python3 -m pretalx makemigrations


 VOLUME ["/etc/pretalx", "/data"]
 EXPOSE 80
 ENTRYPOINT ["pretalx"]
 CMD ["all"]

 }}}

 I have just in staging to make sure I didn't screw up on anything.

 Staging site is -
 https://talks.staging.osgeo.org/orga/event/foss4g-2022/settings/plugins

-- 
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2682#comment:1>
OSGeo <https://osgeo.org/>
OSGeo committee and general foundation issue tracker.


More information about the Sac mailing list