question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

marisa-trie==0.7.7 listed on PyPI but unavailable for installation

See original GitHub issue

It looks like the latest marisa-trie release was only partially uploaded to PyPI.

I ran into a mismatch between the marisa-trie version on PyPI (latest being 0.7.7) and the versions actually available for download (latest being 0.7.6). This results in a failure to install marisa-trie using version ranges with poetry:

pyproject.toml:

[tool.poetry]
name = "sample-package"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
license = "MIT"

[tool.poetry.dependencies]
python = "^3.7.1"
marisa-trie = ">=0.7.4,<0.8.0"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

Creating lockfile and installing dependencies:

$ poetry lock -vv
Using virtualenv: /Users/jonathanj/Library/Caches/pypoetry/virtualenvs/sample-package-PWwa3HeL-py3.7
Updating dependencies
Resolving dependencies...
   1: fact: sample-package is 0.1.0
   1: derived: sample-package
   1: fact: sample-package depends on marisa-trie (>=0.7.4,<0.8.0)
   1: selecting sample-package (0.1.0)
   1: derived: marisa-trie (>=0.7.4,<0.8.0)
   1: selecting marisa-trie (0.7.7)
   1: Version solving took 0.015 seconds.
   1: Tried 1 solutions.

$ poetry install
Installing dependencies from lock file

Package operations: 1 install, 0 updates, 0 removals

  • Installing marisa-trie (0.7.7): Failed

  RuntimeError

  Unable to find installation candidates for marisa-trie (0.7.7)

  at ~/.poetry/lib/poetry/installation/chooser.py:73 in choose_for
       69│             links.append(link)
       70│ 
       71│         if not links:
       72│             raise RuntimeError(
    →  73│                 "Unable to find installation candidates for {}".format(package)
       74│             )
       75│ 
       76│         # Get the best link
       77│         chosen = max(links, key=lambda link: self._sort_key(package, link))

Version listed on PyPI:

Screen Shot 2021-08-04 at 3 13 18 PM

https://pypi.org/project/marisa-trie/

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
BoboTiGcommented, Aug 5, 2021

Fixed in e2decf4f31290fa0d5053fa2132db1e9f7d16dbf and 0.7.7 is now fully uploaded to PyPi. I am very sorry for the incovenience.

1reaction
BoboTiGcommented, Aug 4, 2021

Indeed, I tried to fix it but no luck so far. Windows wheels seems not compliant to PyPi RST structure and I have no clue how to fix it right now. I passed several hours trying to debug but it is late here and will be able to continue tomorrow (French timezone).

Example of failed release job: https://github.com/pytries/marisa-trie/runs/3243112448?check_suite_focus=true. Other wheels (Linux and macOS) are just fine, and it worked for 0.7.6. 🤔

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing my own module from pyPI, using pip, is not working
I can upload a package to pyPI, and install it with pip, but Python is not seeing it when I try to import...
Read more >
Help - PyPI
To learn how to install a file from PyPI, visit the installation tutorial on the Python Packaging User Guide. How do I package...
Read more >
Troubleshooting PyPI package installation | Cloud Composer
Locate the pip error in in-cluster build logs · In Google Cloud console, go to the Environments page. Go to Environments · Select...
Read more >
How to Install Pip on CentOS 7 - Linuxize
1. Add the EPEL Repository #. Pip is not available in CentOS 7 core repositories. To install pip we need to enable the...
Read more >
Python: Creating a pip installable package
Introduction. This is a quickstart guide to Python Packaging with a particular focus on the creation of a PyPI package, which will enable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found