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.

Cannot install Frictionless with poetry or pip with setuptools>=58.0

See original GitHub issue

Overview

Cannot install Frictionless with https://github.com/python-poetry/poetry -

docker run --rm python:3.9 bash -c "pip install poetry; poetry init -n; poetry add frictionless; poetry install"

this produces an error:

(...)
  • Installing simpleeval (0.9.10)
  • Installing stringcase (1.2.0)
  • Installing typer (0.4.0)
  • Installing validators (0.18.2)

  EnvCommandError

 (...) 
      error in simpleeval setup command: use_2to3 is invalid.

I get a similar error when installing with pip:

docker run --rm python:3.9 bash -c "pip install \"setuptools>=58.0\"; pip install frictionless"

It seems to be a result of a bug in simpleeval https://github.com/danthedeckie/simpleeval/issues/90


Please preserve this line to notify @roll (lead of this repository)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lolegcommented, Nov 9, 2021

With frictionless 4.20.2, also using poetry I was getting a similar error:

from frictionless import Package, Resource
  File "../python3.9/site-packages/frictionless/__init__.py", line 35, in <module>
    from . import checks
  File "../python3.9/site-packages/frictionless/checks/__init__.py", line 3, in <module>
    from .regulation import forbidden_value, sequential_value, row_constraint
  File "../python3.9/site-packages/frictionless/checks/regulation.py", line 1, in <module>
    import simpleeval
ModuleNotFoundError: No module named 'simpleeval'

This worked, in a pinch: poetry add reportbro-simpleeval

But rebuilding the virtualenv is a better solution:

poetry env remove python && poetry install

Just a heads up that some upgrades might not succeed cleanly.

1reaction
sirexcommented, Sep 21, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Be able to specify which version of setuptools has to be used
My solution was to run the following before a build in out CI: poetry run pip install --upgrade setuptools==57.5.0
Read more >
Getting Started - Frictionless Framework
This documentation covers Frictionless Framework v5 which currently in a pre-release and can be installed using the pip --pre modifier.
Read more >
Python package built with Poetry does not install supporting ...
I install into a test conda environent using pip install mypkg-0.2.0-py3-none-any.whl . Then looking at the C:\Users\me\anaconda3\envs\test\Lib\ ...
Read more >
Why you should use Poetry instead of Pip or Conda for Python ...
There are various tools out there that manage dependencies for Python projects, such as Pip, Conda and even Poetry.
Read more >
poetry-core - PyPI
Once this is present, a PEP 517 frontend like pip can build and install your project from source without the need for Poetry...
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