microsoft / microsoft/qlib

TypeError: canonicalize_version() got an unexpected keyword argument strip_trailing_zero

Open
#1,862 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
48.7k
Forks
7.7k
PR merge metrics
No merged PRs in 30d

Description

🐛 Bug Description

When install pyqlib via poetry, python3.10, I met a dependency conflict that prevented the installation from completing successfully.

I think that's because the version conflict of packaging https://github.com/pypa/setuptools/issues/4483

I want to upgrade packaging to 22.0 but qlib has limited the version to below 22.0.

To Reproduce

Steps to reproduce the behavior:

  1. poetry add pyqlib

Expected Behavior

Install sucessfully

Screenshot

Image

Environment

Note: User could run cd scripts && python collect_info.py all under project directory to get system information
and paste them here directly.

  • Qlib version: 0.9.5
  • Python version: 3.10
  • OS (Windows, Linux, MacOS): MacOS
  • Commit number (optional, please provide it if you are using the dev version):

Additional Notes

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing poetry add pyqlib with Python 3.10 and inspect the project's dependency metadata for the packaging version constraint. Done means installation completes successfully without the canonicalize_version keyword-argument error while preserving compatible dependencies.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.