Skip to content

Import atlassian fails on python 3.8.x #1519

Closed
@Joinyy

Description

@Joinyy

Since the 4.0.1 release a simple "import" statement breaks:

C:\pyjira_tests - venv 3.8.1 ❯ pip install atlassian-python-api
....
....
Installing collected packages: typing-extensions, soupsieve, beautifulsoup4, idna, charset-normalizer, certifi, urllib3, requests, oauthlib, requests-oauthlib, six, jmespath, wrapt, deprecated, atlassian-python-api
Successfully installed atlassian-python-api-4.0.2 beautifulsoup4-4.13.3 certifi-2025.1.31 charset-normalizer-3.4.1 deprecated-1.2.18 idna-3.10 jmespath-1.0.1 oauthlib-3.2.2 requests-2.32.3 requests-oauthlib-2.0.0 six-1.17.0 soupsieve-2.6 typing-extensions-4.13.0 urllib3-2.2.3 wrapt-1.17.2
WARNING: You are using pip version 19.2.3, however version 25.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\pyjira_tests - venv 3.8.1 ❯ python
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import atlassian
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\pyjira_tests\venv\lib\site-packages\atlassian\__init__.py", line 9, in <module>
    from .jira import Jira
  File "C:\pyjira_tests\venv\lib\site-packages\atlassian\jira.py", line 19, in <module>
    class Jira(AtlassianRestAPI):
  File "C:\pyjira_tests\venv\lib\site-packages\atlassian\jira.py", line 1574, in Jira
    update: Optional[dict[Any, Any]] = None,
TypeError: 'type' object is not subscriptable
>>>

With python >= 3.9 it works, but if it's not intended to support python 3.8.x you should remove that from the pyproject.toml so it's not installing these new versions. Not sure whether that is possible to change in pypi for 4.0.1 and 4.0.2 now.

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