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.

“No module named 'gdbm'” when command not found in Pipenv shell running on Ubuntu

See original GitHub issue
$ python3 -m
<details><summary>$ python -m output</summary>

Pipenv version: `'2018.05.18'`

Pipenv location: `'/home/kingname/.local/lib/python3.6/site-packages/pipenv'`

Python location: `'/usr/bin/python3'`

Other Python installations in `PATH`:

  - `2.7`: `/usr/bin/python2.7`
  - `2.7`: `/usr/bin/python2.7`
  - `3.5`: `/usr/bin/python3.5m`
  - `3.5`: `/usr/bin/python3.5`
  - `3.6`: `/usr/bin/python3.6m`
  - `3.6`: `/usr/bin/python3.6`

  - `2.7.12`: `/usr/bin/python`
  - `2.7.12`: `/usr/bin/python2`
  - `3.6.5`: `/usr/bin/python3`

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.6.5',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '4.4.0-43-Microsoft',
 'platform_system': 'Linux',
 'platform_version': '#1-Microsoft Wed Dec 31 14:42:53 PST 2014',
 'python_full_version': '3.6.5',
 'python_version': '3.6',
 'sys_platform': 'linux'}

Expected result

show command not find instead of raise python error.

Actual result

When possible, provide the verbose output (--verbose), especially for locking and dependencies resolving issues. image

Steps to replicate

do it in Ububtu subsystem of Windows 10

Issue Analytics

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

github_iconTop GitHub Comments

kingnamecommented, May 28, 2018

problem solved, just to sudo apt-get install python3.6-gdbm

uranusjrcommented, May 28, 2018

I changed the title to make this more searchable, in case others need this in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I install Python 3.6 using apt-get? - Ask Ubuntu
Just run python3 to invoke it. ... bash: pyenv: command not found , fish: Unknown command 'pyenv' ... No module named 'gdbm'.
Read more >
python gdbm,GDBM不适用于Python 3.6和 ... - CSDN博客
本文记录Linux 下各种报错与解决方法. ModuleNotFoundError: No module named 'gdbm' · longma666666的博客.
Read more >
python3: getting module source code using user input (inspect ...
... ImportError: No module named 'gdbm' occuring while using source ~/.bashrc · Using Python3 on Mac OS X With Visual Studio Code -...
Read more >
no module named celery - OSCHINA - 中文开源技术交流社区
TypeError: index() missing 1 required positional argument: 'request' 类型 ... No module named '_gdbm' ModuleNotFoundError: No module named 'gdbm' 'apt_pkg'.
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 Post

No results found

github_iconTop Related Hashnode Post

No results found