Skip to content

Installing local file dependencies fail in spite of file existing #3625

Closed

Description

@navyamehta
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

I download the TensorRT-7.2.2.3.Ubuntu-18.04.x86_64-gnu.cuda-11.1.cudnn8.0.tar.gz file from NVIDIA and put it in the same folder as pyproject.toml. My virtualenv is 20.4.1 and install-metadata is 3.4.0. However, I get the following error on poetry install --no-dev
`
TypeError

expected string or bytes-like object

at /opt/conda/lib/python3.8/site-packages/poetry/core/utils/helpers.py:24 in canonicalize_name
20│ canonicalize_regex = re.compile("[-]+")
21│
22│
23│ def canonicalize_name(name): # type: (str) -> str
→ 24│ return canonicalize_regex.sub("-", name).lower()
25│
26│
27│ def module_name(name): # type: (str) -> str
28│ return canonicalize_name(name).replace(".", "
").replace("-", "_")
`
Any help would be appreciated!

Activity

  1. mxab commented on Feb 2, 2021

    @mxab
    Contributor

    We're also facing this issue on some machines
    pyhton 3.8.6 (pyenv) / wsl1 / ubuntu / poetry 1.1.3 (as 1.1.4 has an issue when resolving with private repos)

  2. sinoroc commented on Feb 2, 2021

    @sinoroc

    There was a case with similar symptoms here: #3628
    Maybe the root cause is also similar in your case... might also be a false lead.

  3. abn commented on May 19, 2022

    @abn
    Member

    Closing as a duplicate of #3628 as it has more information.

  4. github-actions commented on Mar 1, 2024

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  5. locked as resolved and limited conversation to collaborators on Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions