Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to add package #1564

Closed
LuisCPi opened this issue Dec 9, 2022 · 1 comment
Closed

Failed to add package #1564

LuisCPi opened this issue Dec 9, 2022 · 1 comment
Labels
🐛 bug Something isn't working

Comments

@LuisCPi
Copy link

LuisCPi commented Dec 9, 2022

  • I have searched the issue tracker and believe that this is not a duplicate.

Steps to reproduce

Trying to add pytest as a package to the project to: "pdm add -d pytest"

For some reason it doesn't recognize the "billiard" dependency inside the celery package

Actual behavior

Result:

Adding packages to dev dev-dependencies: pytest
See /tmp/pdm-lock-lpqntqlj.log for detailed debug log.
[TypeError]: a bytes-like object is required, not 'str'

Detail result:

pdm.termui: ======== Starting round 7 ========
unearth: Using cached <Link https://files.pythonhosted.org/packages/c8/0c/609e3611d20c9f8d883852d1be5516671f630fb08c8c1e56911567dfba7b/celery-4.4.7-py2.py3-none-any.whl (from https://pypi.org/simple/celery/)>
pdm.termui:   Adding requirement b''(from celery 4.4.7)

Package detail:

[[package]]
name = "celery"
version = "4.4.7"
requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
summary = "Distributed Task Queue."
dependencies = [
    "billiard<4.0,>=3.6.3.0",
    "kombu<4.7,>=4.6.10",
    "pytz>=2017.3",
    "vine==1.3.0",
]

Expected behavior

I hope the package is installed successfully

Environment Information

PDM version:
  2.3.2
Python Interpreter:
  /usr/local/bin/python (3.7)
Project Root:
  /app
Project Packages:
  /app/__pypackages__/3.7
{
  "implementation_name": "cpython",
  "implementation_version": "3.7.10",
  "os_name": "posix",
  "platform_machine": "aarch64",
  "platform_release": "5.10.104-linuxkit",
  "platform_system": "Linux",
  "platform_version": "#1 SMP PREEMPT Thu Mar 17 17:05:54 UTC 2022",
  "python_full_version": "3.7.10",
  "platform_python_implementation": "CPython",
  "python_version": "3.7",
  "sys_platform": "linux"
}
@LuisCPi LuisCPi added the 🐛 bug Something isn't working label Dec 9, 2022
@frostming
Copy link
Collaborator

Same reason as #1556 and for the workaround please see discussion #1558

@frostming frostming closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants