archivematica / Issues

Issues repository for the Archivematica project
GNU Affero General Public License v3.0
16 stars 1 forks source link

Problem: populate_aip_stored_dates SS command python requirements are not installed #1670

Closed scollazo closed 4 months ago

scollazo commented 6 months ago

Expected behaviour

The populate_aip_stored_dates command works

Current behaviour

The command fails with

 < Omitted output>

  File "/src/storage_service/common/management/commands/populate_aip_stored_dates.py", line 15, in <module>
    import pytz
ModuleNotFoundError: No module named 'pytz'

Steps to reproduce

Run the command with:

sudo -u archivematica bash -c " \
    set -a -e -x
    source /etc/default/archivematica-storage-service || \
        source /etc/sysconfig/archivematica-storage-service \
            || (echo 'Environment file not found'; exit 1)
    cd /usr/lib/archivematica/storage-service
    /usr/share/archivematica/virtualenvs/archivematica-storage-service/bin/python manage.py populate_aip_stored_dates
";

Your environment (version of Archivematica, operating system, other relevant details)

SS stable/0.21.x on Ubuntu 22.04


For Artefactual use:

Before you close this issue, you must check off the following:

replaceafill commented 4 months ago

We dropped the pytz dependency and adjusted the command to use Django's timezone calculation.