ImportError: cannot import name util
See original GitHub issueDescribe the bug Following the installation instructions does not succeed on Debian Stable (buster).
To Reproduce Steps to reproduce the behavior:
- 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:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ckea @larryboymi checkov works with python 3.7 and above. it will not work with 2.7
It’s a cinnamon-bun Oreo! Would recommend lol