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.

ImportError: cannot import name util

See original GitHub issue

Describe the bug Following the installation instructions does not succeed on Debian Stable (buster).

To Reproduce Steps to reproduce the behavior:

  1. Run cli command ‘pip install checkov’
root@buster:~# pip install checkov
Collecting checkov
  Downloading https://files.pythonhosted.org/packages/8f/cc/f3f488215771f2f81a10a5c256be1e49860c16bd74e72bcaa4df10bed84d/checkov-1.0.669.tar.gz (153kB)
    100% |████████████████████████████████| 153kB 2.8MB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-DJZ3d5/checkov/setup.py", line 4, in <module>
        from importlib import util
    ImportError: cannot import name util

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-DJZ3d5/checkov/

Expected behavior The installation instructions should work on Debian Stable.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

root@buster:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
schosterbarakcommented, Aug 11, 2021

@ckea @larryboymi checkov works with python 3.7 and above. it will not work with 2.7

1reaction
jwcmdcommented, Dec 19, 2020

It’s a cinnamon-bun Oreo! Would recommend lol

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python ImportError: cannot import name utils - Stack Overflow
I used the inbuilt python migration automated tool to change the file that is causing the import error using the command 2to3 -w...
Read more >
Error was: cannot import name utils - Django's bug tracker
This happens right on startup on a shared hosting provider. I am finding the traceback message unhelpful, since I am using "django.db.backends.mysql" in...
Read more >
How to Fix ImportError: Cannot Import Name in Python - Rollbar
The Python ImportError: cannot import name error occurs when an imported class is not accessible or is in a circular dependency.
Read more >
cannot import name 'file_hash' from 'pooch.utils' - YouTube
How to resolve ImportError : cannot import name 'file_hash' from 'pooch. utils '
Read more >
How to Fix : “ImportError: Cannot import name X” in Python
In Python "ImportError: cannot import name" error generally occurs when the imported class is not accessible, or the imported class is in a...
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