Python / pandas - Replit Boilerplate Error

The boilerplate for the Demographic Data Analyzer project is not running on Replit. It appears to fail while attempting to install a version of pandas (1.3.0) that was released yesterday (July 2).

https://replit.com/github/freeCodeCamp/boilerplate-demographic-data-analyzer

Python 3.8.2 (default, Feb 26 2020, 02:56:10)
 

Replit: Updating package configuration

--> python3 -m poetry lock
Updating dependencies
Resolving dependencies...

Writing lock file
--> python3 -m poetry install
Installing dependencies from lock file

Package operations: 2 installs, 1 update, 0 removals

  • Updating numpy (1.20.3 -> 1.21.0)
  • Installing pytz (2021.1)
  • Installing pandas (1.3.0)

  RuntimeError

  Unable to find installation candidates for pandas (1.3.0)

  at /opt/virtualenvs/python3/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
       68│ 
       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

exit status 1


Replit: Package operation failed.

Challenge: Demographic Data Analyzer

Link to the challenge:

This was reported at poetry’s repository - RuntimeError - Unable to find installation candidates for pandas (1.3.0) · Issue #4250 · python-poetry/poetry · GitHub.

Problem can be bypassed by explicitly installing different version of pandas using shell, i.e.
poetry add pandas@1.2.5

There was a similar question.
Check the recently reported problem in StackOverflow:


Just try to make the installation through the source.

Making pandas from source is really impractical on repl, IMHO

This issue has been resolved. I made no changes to the boilerplate; just waited a couple of days.

1 Like