Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
5 tasks
scollazo opened this issue Mar 19, 2024 · 1 comment
Closed
5 tasks
Labels
Status: review The issue's code has been merged and is ready for testing/review.
Milestone

Comments

@scollazo
Copy link

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:

  • All pull requests related to this issue are properly linked
  • All pull requests related to this issue have been merged
  • A testing plan for this issue has been implemented and passed (testing plan information should be included in the issue body or comments)
  • Documentation regarding this issue has been written and merged (if applicable)
  • Details about this issue have been added to the release notes (if applicable)
@replaceafill replaceafill added this to the 1.16.0 milestone Mar 19, 2024
@replaceafill replaceafill self-assigned this Mar 19, 2024
@replaceafill replaceafill added Status: in progress Issue that is currently being worked on. Status: review The issue's code has been merged and is ready for testing/review. and removed Status: in progress Issue that is currently being worked on. labels Mar 19, 2024
@replaceafill replaceafill removed their assignment Mar 22, 2024
@replaceafill
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: review The issue's code has been merged and is ready for testing/review.
Projects
None yet
Development

No branches or pull requests

2 participants