Skip to content

ModuleNotFoundError: No module named 'dateutil' in v1.0.1 #166

@trv-tsingkof

Description

@trv-tsingkof

After upgrading to version 1.0.1 from 0.0.56, my existing scripts utilizing the blackduck module break with the following exception:

Traceback (most recent call last):
  File "myScript.py", line 6, in <module>
    from blackduck.HubRestApi import HubInstance
  File "/opt/python-3.9.2/lib/python3.9/site-packages/blackduck/__init__.py", line 2, in <module>
    from .HubRestApi import HubInstance
  File "/opt/python-3.9.2/lib/python3.9/site-packages/blackduck/HubRestApi.py", line 55, in <module>
    from .Utils import object_id
  File "/opt/python-3.9.2/lib/python3.9/site-packages/blackduck/Utils.py", line 9, in <module>
    import dateutil.parser
ModuleNotFoundError: No module named 'dateutil'

Looking through the code, I do see python-dateutils defined in the requirements.txt file, but it doesn't seem like the full set of required packages are defined in the setup.py file, so pip doesn't know to install it.

The obvious workaround is for me to pip install python-dateutils manually when I need to use the blackduck module, but ideally running pip install blackduck would automatically install everything it needs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions