MNT: Future version of dateutil warns on non-existent time zone by tacaswell · Pull Request #32297 · matplotlib/matplotlib · GitHub
Skip to content

MNT: Future version of dateutil warns on non-existent time zone - #32297

Open
tacaswell wants to merge 1 commit into
matplotlib:mainfrom
tacaswell:mnt/dateutil_warning
Open

MNT: Future version of dateutil warns on non-existent time zone#32297
tacaswell wants to merge 1 commit into
matplotlib:mainfrom
tacaswell:mnt/dateutil_warning

Conversation

@tacaswell

Copy link
Copy Markdown
Member

Which in turn fails our tests.

I am seeing this warning with

✔ 16:43:47 [belanna] @ pip list | grep -i dateutil
python-dateutil                2.9.0.post1.dev32+g48bd1af97

@tacaswell tacaswell modified the milestones: v3.11.2, v3.12.0 Sep 4, 2026
@QuLogic

QuLogic commented Sep 5, 2026

Copy link
Copy Markdown
Member

@iccir

iccir commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

This is probably fine, but the only confusing thing to me is that https://github.com/dateutil/dateutil/tree/master/src/dateutil seems to show the code hasn't changed in 3 years.

The specific issue is:

    def getzoneinfofile_stream():
        try:
            return BytesIO(get_data(__name__, ZONEFILENAME))
        except IOError as e:  # TODO  switch to FileNotFoundError?
>           warnings.warn("I/O error({0}): {1}".format(e.errno, e.strerror))
E           UserWarning: I/O error(2): No such file or directory

It's failing to open "dateutil-zoneinfo.tar.gz". My guess is that this is built via some script and pip install directly from the github repository doesn't include this file.

@iccir

iccir commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants