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.

Error with toml package when deploying project

See original GitHub issue

I get this error when I deploy my project:

Packaging project as gzipped tarball.
  Could not find a version that satisfies the requirement toml==0.9.3 (from versions: 0.6.0, 0.6.5, 0.7.0, 0.7.1, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.9.2, 0.9.3.1)
No matching distribution found for toml==0.9.3

My understanding is that when zappa gets installed, the requirement is toml==0.9.3, but when it tries to make the package that will be send to Amazon, it does not find toml==0.9.3 (it does find toml==0.9.3.1 though).

Would it be a solution to update the requirements.txt (and require toml==0.9.3.1?

My environment is python 3.6, and the latest zappa available in pip.

By the way I think the deployment should fail in this kind of situation. I guess this is what #1235 is about.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jwkvamcommented, Nov 17, 2017

I think the same issue is causing recent problems in this issue as well https://github.com/Miserlou/Zappa/issues/64.

I believe the issue is that the code in toml version 0.9.3.1 refers to itself as 0.9.3 in it’s code.

0reactions
tycolescommented, Dec 13, 2017

Yeah it looks like we either roll back to toml 0.9.2 (which may not be possible) or wait for a new toml release (0.9.4). Zappa version 0.44.3 is the latest version of Zappa with working toml (0.9.2) in it, in case anyone out there is wondering.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pyproject.toml won't find project name with setuptools python
At the time the question was asked, setuptools did not have support for writing its configuration in a pyproject.toml file (PEP 621).
Read more >
Streamlit Cloud deploy is failing with error "does not contain ...
Hey, I am trying to deploy a small Streamlit dashboard using Streamlit Cloud, but I am stuck on an issue, unsure how to...
Read more >
AWS SAM CLI configuration file
The AWS SAM CLI supports a project-level configuration file that stores default parameters for its commands. This configuration file is in the TOML...
Read more >
install pyproject.toml-based projects error - You.com - You.com
I was having the same error while deploying my application on heroku and well the problem is actually that when you are deploying...
Read more >
Facing problem in installing PyAudio in Azure App Service
While in deploying I am facing error in building wheel showing some PEP 517 ... which is required to install pyproject.toml-based projects.
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