NASA-PDS / deep-archive

PDS Open Archival Information System (OAIS) utilities, including Submission Information Package (SIP) and Archive Information Package (AIP) generators
https://nasa-pds.github.io/deep-archive/
Other
7 stars 4 forks source link

Standalone AIP Generator Fails #78

Closed nutjob4life closed 3 years ago

nutjob4life commented 3 years ago

Describe the bug

Running the AIP Generator aipgen fails on every platform.

To Reproduce

  1. Install Python, such as Python 3.8.5 for Windows from the Python website.
  2. Create a virtual env with it: python -m venv mypy
  3. Go to it: cd mypy
  4. Install PDS Deep Archive Scripts\pip install pds.deeparchive
  5. Run it on a nice nearby bundle file: Scripts\pds-deep-archive ..\mybundle\bundle.xml (or equivalent).

Expected behavior

I expect it to work, buh. That is, aipgen should make the AIP and associated files, not give this stack trace:

Traceback (most recent call last):
  File "C:\USers\seanc\Documents\pds\pds-deep-archive\bin\aipgen-script.py", line 12, in <module>
    sys.exit(pds.aipgen.aip.main())
  File "c:\users\seanc\documents\pds\pds-deep-archive\src\pds\aipgen\aip.py", line 392, in main
    process(args.bundle, args.args.include_latest_collection_only, con, ts)
AttributeError: 'Namespace' object has no attribute 'args'

Version of Software Used

0.1.6

Screenshots

Screen Shot 2020-10-02 at 2 03 23 PM

Desktop