Skip to content

python-dateutil 2.9.0post0 is actually 2.8.2 #13435

Open
@sam-s

Description

Checklist

  • I added a descriptive title.
  • I searched through existing issues and couldn't find a solution or duplicate issue.
  • I searched on the web (e.g. Google) and didn't find any helpful information.
  • I searched the Anaconda documentation and didn't find any helpful information.

Impacted product

  • A conda package (built by Anaconda)
  • Anaconda Distribution (formerly Anaconda Individual Edition)
  • Miniconda
  • Anaconda.org

What happened?

Conda reports dateutil as 2.9 while 2.8 is actually installed:

$ conda list --show-channel-urls dateutil
# packages in environment at .../miniconda3/envs/c312:
#
# Name                    Version                   Build  Channel
python-dateutil           2.9.0post0      py312haa95532_0    defaults

but

$ python -c 'import dateutil; print(dateutil.__version__); print(dateutil.__path__)'
2.8.2
['.../miniconda3/envs/c312/Lib/site-packages/dateutil']

and

cat $(python -c 'import dateutil; print(dateutil.__path__[0])')/_version.py
# file generated by setuptools_scm
# don't change, don't track in version control
...
__version__ = version = '2.8.2'
__version_tuple__ = version_tuple = (2, 8, 2)

Judging by

.../miniconda3/envs/c312/Lib/site-packages/dateutil/tz/tz.py: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated...

the actually used code is 2.8.2.

Expected behavior or outcome

2.9post0 should be present when conda reports it as installed

Conda info

active environment : c312
    active env location : $HOME\AppData\Local\miniconda3\envs\c312
            shell level : 2
       user config file : $HOME\.condarc
 populated config files : $HOME\.condarc
          conda version : 24.9.2
    conda-build version : not installed
         python version : 3.11.9.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=cascadelake
                          __conda=24.9.2=0
                          __cuda=11.4=0
                          __win=0=0
       base environment : $HOME\AppData\Local\miniconda3  (writable)
      conda av data dir : $HOME\AppData\Local\miniconda3\etc\conda
  conda av metadata url : None
           channel URLs : https://artprod.dev.bloomberg.com/artifactory/api/conda/bb-conda/win-64
                          https://artprod.dev.bloomberg.com/artifactory/api/conda/bb-conda/noarch
                          https://artprod.dev.bloomberg.com/artifactory/api/conda/conda-forge/win-64
                          https://artprod.dev.bloomberg.com/artifactory/api/conda/conda-forge/noarch
                          https://artprod.dev.bloomberg.com/artifactory/bb-bqnt/conda-repo/win-64
                          https://artprod.dev.bloomberg.com/artifactory/bb-bqnt/conda-repo/noarch
                          https://artprod.dev.bloomberg.com/artifactory/bqnt-conda-dev/win-64
                          https://artprod.dev.bloomberg.com/artifactory/bqnt-conda-dev/noarch
                          https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : $HOME\AppData\Local\miniconda3\pkgs
                          $HOME\.conda\pkgs
                          $HOME\AppData\Local\conda\conda\pkgs
       envs directories : $HOME\AppData\Local\miniconda3\envs
                          $HOME\.conda\envs
                          $HOME\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/24.9.2 requests/2.32.3 CPython/3.11.9 Windows/10 Windows/10.0.19045
solver/libmamba conda-libmamba-solver/24.9.0 libmambapy/1.5.10
          administrator : False
             netrc file : None
           offline mode : False

Conda config

ssl_verify: False
proxy_servers:
  http: http://proxy.inet.bloomberg.com:81
  https: http://proxy.inet.bloomberg.com:81
  https://bbgithub.dev.bloomberg.com: http://bproxy.tdmz1.bloomberg.com:80
  https://artprod.dev.bloomberg.com: http://bproxy.tdmz1.bloomberg.com:80
channel_priority: flexible
channels:
  - https://artprod.dev.bloomberg.com/artifactory/api/conda/bb-conda
  - https://artprod.dev.bloomberg.com/artifactory/api/conda/conda-forge
  - https://artprod.dev.bloomberg.com/artifactory/bb-bqnt/conda-repo
  - https://artprod.dev.bloomberg.com/artifactory/bqnt-conda-dev
  - conda-forge
  - defaults
report_errors: False

Conda list

way too long

Additional information

Originally reported conda/conda#13933 - it is claimed there that the problem is fixed, but it is not.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions