No module named 'gdbm'












25















I just finished installing python 3.5.1 on my Ubuntu, but am faced with this error message, regardless if I'm installing with Anaconda or with apt-get:



No module named 'gdbm'


that normally displays on my terminal. I have also tried installing gdbm using:



sudo apt-get install gdbm


but doesn't solve the problem. Can I get a help on how to fix this problem from anyone here?










share|improve this question

























  • Hi Asogwa, not sure about your latest comment below my answer; did you get it to work? Please let me know.

    – Jacob Vlijm
    Jan 13 '16 at 8:44











  • How are you installing? Are you doing it with Anaconda or some other way?

    – Seanny123
    Jan 13 '16 at 17:34











  • I am not yet able to install Anaconda because when ever I want to install Anaconda I get the same "error No module named 'gdbm'"

    – Asogwa Chukwuemeka Martins
    Jan 13 '16 at 17:39











  • Sorry, I'm still a bit confused. Anaconda is a package that contains Python3. So are you installing Anaconda or are you installing Python3 separately.

    – Seanny123
    Jan 13 '16 at 17:43











  • Am installing Anaconda

    – Asogwa Chukwuemeka Martins
    Jan 13 '16 at 17:45
















25















I just finished installing python 3.5.1 on my Ubuntu, but am faced with this error message, regardless if I'm installing with Anaconda or with apt-get:



No module named 'gdbm'


that normally displays on my terminal. I have also tried installing gdbm using:



sudo apt-get install gdbm


but doesn't solve the problem. Can I get a help on how to fix this problem from anyone here?










share|improve this question

























  • Hi Asogwa, not sure about your latest comment below my answer; did you get it to work? Please let me know.

    – Jacob Vlijm
    Jan 13 '16 at 8:44











  • How are you installing? Are you doing it with Anaconda or some other way?

    – Seanny123
    Jan 13 '16 at 17:34











  • I am not yet able to install Anaconda because when ever I want to install Anaconda I get the same "error No module named 'gdbm'"

    – Asogwa Chukwuemeka Martins
    Jan 13 '16 at 17:39











  • Sorry, I'm still a bit confused. Anaconda is a package that contains Python3. So are you installing Anaconda or are you installing Python3 separately.

    – Seanny123
    Jan 13 '16 at 17:43











  • Am installing Anaconda

    – Asogwa Chukwuemeka Martins
    Jan 13 '16 at 17:45














25












25








25


10






I just finished installing python 3.5.1 on my Ubuntu, but am faced with this error message, regardless if I'm installing with Anaconda or with apt-get:



No module named 'gdbm'


that normally displays on my terminal. I have also tried installing gdbm using:



sudo apt-get install gdbm


but doesn't solve the problem. Can I get a help on how to fix this problem from anyone here?










share|improve this question
















I just finished installing python 3.5.1 on my Ubuntu, but am faced with this error message, regardless if I'm installing with Anaconda or with apt-get:



No module named 'gdbm'


that normally displays on my terminal. I have also tried installing gdbm using:



sudo apt-get install gdbm


but doesn't solve the problem. Can I get a help on how to fix this problem from anyone here?







python3






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 13 '16 at 21:27









Seanny123

191213




191213










asked Jan 12 '16 at 23:57









Asogwa Chukwuemeka MartinsAsogwa Chukwuemeka Martins

126124




126124













  • Hi Asogwa, not sure about your latest comment below my answer; did you get it to work? Please let me know.

    – Jacob Vlijm
    Jan 13 '16 at 8:44











  • How are you installing? Are you doing it with Anaconda or some other way?

    – Seanny123
    Jan 13 '16 at 17:34











  • I am not yet able to install Anaconda because when ever I want to install Anaconda I get the same "error No module named 'gdbm'"

    – Asogwa Chukwuemeka Martins
    Jan 13 '16 at 17:39











  • Sorry, I'm still a bit confused. Anaconda is a package that contains Python3. So are you installing Anaconda or are you installing Python3 separately.

    – Seanny123
    Jan 13 '16 at 17:43











  • Am installing Anaconda

    – Asogwa Chukwuemeka Martins
    Jan 13 '16 at 17:45



















  • Hi Asogwa, not sure about your latest comment below my answer; did you get it to work? Please let me know.

    – Jacob Vlijm
    Jan 13 '16 at 8:44











  • How are you installing? Are you doing it with Anaconda or some other way?

    – Seanny123
    Jan 13 '16 at 17:34











  • I am not yet able to install Anaconda because when ever I want to install Anaconda I get the same "error No module named 'gdbm'"

    – Asogwa Chukwuemeka Martins
    Jan 13 '16 at 17:39











  • Sorry, I'm still a bit confused. Anaconda is a package that contains Python3. So are you installing Anaconda or are you installing Python3 separately.

    – Seanny123
    Jan 13 '16 at 17:43











  • Am installing Anaconda

    – Asogwa Chukwuemeka Martins
    Jan 13 '16 at 17:45

















Hi Asogwa, not sure about your latest comment below my answer; did you get it to work? Please let me know.

– Jacob Vlijm
Jan 13 '16 at 8:44





Hi Asogwa, not sure about your latest comment below my answer; did you get it to work? Please let me know.

– Jacob Vlijm
Jan 13 '16 at 8:44













How are you installing? Are you doing it with Anaconda or some other way?

– Seanny123
Jan 13 '16 at 17:34





How are you installing? Are you doing it with Anaconda or some other way?

– Seanny123
Jan 13 '16 at 17:34













I am not yet able to install Anaconda because when ever I want to install Anaconda I get the same "error No module named 'gdbm'"

– Asogwa Chukwuemeka Martins
Jan 13 '16 at 17:39





I am not yet able to install Anaconda because when ever I want to install Anaconda I get the same "error No module named 'gdbm'"

– Asogwa Chukwuemeka Martins
Jan 13 '16 at 17:39













Sorry, I'm still a bit confused. Anaconda is a package that contains Python3. So are you installing Anaconda or are you installing Python3 separately.

– Seanny123
Jan 13 '16 at 17:43





Sorry, I'm still a bit confused. Anaconda is a package that contains Python3. So are you installing Anaconda or are you installing Python3 separately.

– Seanny123
Jan 13 '16 at 17:43













Am installing Anaconda

– Asogwa Chukwuemeka Martins
Jan 13 '16 at 17:45





Am installing Anaconda

– Asogwa Chukwuemeka Martins
Jan 13 '16 at 17:45










7 Answers
7






active

oldest

votes


















24














In my case, if I tried running any command that doesn't exist in a bash shell I would get this gross error:



$ programthatdoesntexist
Traceback (most recent call last):
File "/usr/lib/python3.5/dbm/gnu.py", line 4, in <module>
from _gdbm import *
ImportError: No module named '_gdbm'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 7, in <module>
import dbm.gnu as gdbm
File "/usr/lib/python3.5/dbm/gnu.py", line 6, in <module>
raise ImportError(str(msg) + ', please install the python3-gdbm package')
ImportError: No module named '_gdbm', please install the python3-gdbm package

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/command-not-found", line 27, in <module>
from CommandNotFound.util import crash_guard
File "/usr/lib/python3/dist-packages/CommandNotFound/__init__.py", line 3, in <module>
from CommandNotFound.CommandNotFound import CommandNotFound
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 9, in <module>
import gdbm
ImportError: No module named 'gdbm'


None of the answers above worked in my case. Although this problem has been solved, this might help someone. If you are still having this issue, maybe this will help:



I had installed python3.6 from the repository ppa.launchpad.net/jonathonf/python-3.6/ubuntu , and apparently that broke some things.



When tying to reinstall the packages command-not-found python3-commandnotfound python3-gdbm python3-gdbm-dbg sessioninstaller, I noticed that apt was pulling sources from here:



Get:1 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 python3-gdbm amd64 3.6.5-3~16.04.york0.2 [14.6 kB]


To fix the issue, I simply removed that repository:



sed -i ' s/^/#/' /etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list


And than re-ran this command (as root):



apt update ; apt purge python3-gdbm ; apt install command-not-found python3-commandnotfound python3-gdbm python3-gdbm-dbg sessioninstaller


Now, everything works again:



$ lol
No command 'lol' found, did you mean:
Command 'sol' from package 'aisleriot' (main)
Command 'col' from package 'bsdmainutils' (main)
lol: command not found





share|improve this answer



















  • 3





    I just had the same on 16.04 LTS. I think looking at the timing of your answer a new update either in the jonathonf repo or standard repos has a conflict. Since I moved to pyenv for my Python versions anyway, getting rid of the jonathonf repository is probably a good idea for me.

    – Phil
    May 10 '18 at 8:37











  • Thanks. Just a note that people might also notice the crash report app firing because command-not-found is failing.

    – jamesc
    May 12 '18 at 16:49






  • 2





    Had the same problem, and this solution worked. At the same time, python3.6 -m venv was broken for me. Changing to the deadsnakes repository solved all my issues. See also stackoverflow.com/a/50197283/7599943

    – Jonas Dahlbæk
    May 15 '18 at 10:23











  • sudo ppa-purge ppa:jonathonf/python-3.6 fixed it for me (it reinstalled the necessary packages automatically).

    – jfs
    May 16 '18 at 11:28



















22














sudo apt-get install python3.5-gdbm


helped me






share|improve this answer



















  • 3





    Of course, the same pattern applies for python 3.6.

    – SteveJ
    Dec 14 '17 at 21:56



















7














Have you tried installing the package python3-gdbm



sudo apt-get install python3-gdbm





share|improve this answer



















  • 4





    Yes, I did that, but still giving me the same error message.

    – Asogwa Chukwuemeka Martins
    Jan 13 '16 at 2:39











  • This is because there is no module named gdbm any more. Use _gdbm.

    – Matthias Urlichs
    Dec 13 '18 at 7:00



















2














I have python 3.6 install and working i have tried many things but



sudo apt-get install python3.6-gdbm


This command worked for me






share|improve this answer































    2














    I had the same issue and got it solved by:



    sudo apt install python3-gdbm=3.5.1-1
    dpkg -L python3-gdbm


    running synaptic, for something else, displayed that python3-gdbm needed an update. I allowed synaptic to make the update and:
    Now I get the same issue back.



    When running above commands again I get as message, in the terminal, for the first command: The following packages will be DOWNGRADED : python3-gdbm.
    After answering Y to the question if I want to continue, traceback works again.



    So there is clearly something wrong (bug) in the latest version of python3-gdbm.






    share|improve this answer


























    • this worked for me!

      – wolfgang
      May 17 '18 at 14:25



















    1














    sudo apt install python3-django


    helped me






    share|improve this answer



















    • 3





      Hi zxdc, you might want to explain your answer. Does installing django also install gdbm somehow?

      – Hee Jin
      May 8 '18 at 15:37



















    0














    I had this error when I had forgot to activate a Python virtual environment that was used with the command I was trying to run (The tx command in my case).






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f720416%2fno-module-named-gdbm%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      7 Answers
      7






      active

      oldest

      votes








      7 Answers
      7






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      24














      In my case, if I tried running any command that doesn't exist in a bash shell I would get this gross error:



      $ programthatdoesntexist
      Traceback (most recent call last):
      File "/usr/lib/python3.5/dbm/gnu.py", line 4, in <module>
      from _gdbm import *
      ImportError: No module named '_gdbm'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 7, in <module>
      import dbm.gnu as gdbm
      File "/usr/lib/python3.5/dbm/gnu.py", line 6, in <module>
      raise ImportError(str(msg) + ', please install the python3-gdbm package')
      ImportError: No module named '_gdbm', please install the python3-gdbm package

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "/usr/lib/command-not-found", line 27, in <module>
      from CommandNotFound.util import crash_guard
      File "/usr/lib/python3/dist-packages/CommandNotFound/__init__.py", line 3, in <module>
      from CommandNotFound.CommandNotFound import CommandNotFound
      File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 9, in <module>
      import gdbm
      ImportError: No module named 'gdbm'


      None of the answers above worked in my case. Although this problem has been solved, this might help someone. If you are still having this issue, maybe this will help:



      I had installed python3.6 from the repository ppa.launchpad.net/jonathonf/python-3.6/ubuntu , and apparently that broke some things.



      When tying to reinstall the packages command-not-found python3-commandnotfound python3-gdbm python3-gdbm-dbg sessioninstaller, I noticed that apt was pulling sources from here:



      Get:1 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 python3-gdbm amd64 3.6.5-3~16.04.york0.2 [14.6 kB]


      To fix the issue, I simply removed that repository:



      sed -i ' s/^/#/' /etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list


      And than re-ran this command (as root):



      apt update ; apt purge python3-gdbm ; apt install command-not-found python3-commandnotfound python3-gdbm python3-gdbm-dbg sessioninstaller


      Now, everything works again:



      $ lol
      No command 'lol' found, did you mean:
      Command 'sol' from package 'aisleriot' (main)
      Command 'col' from package 'bsdmainutils' (main)
      lol: command not found





      share|improve this answer



















      • 3





        I just had the same on 16.04 LTS. I think looking at the timing of your answer a new update either in the jonathonf repo or standard repos has a conflict. Since I moved to pyenv for my Python versions anyway, getting rid of the jonathonf repository is probably a good idea for me.

        – Phil
        May 10 '18 at 8:37











      • Thanks. Just a note that people might also notice the crash report app firing because command-not-found is failing.

        – jamesc
        May 12 '18 at 16:49






      • 2





        Had the same problem, and this solution worked. At the same time, python3.6 -m venv was broken for me. Changing to the deadsnakes repository solved all my issues. See also stackoverflow.com/a/50197283/7599943

        – Jonas Dahlbæk
        May 15 '18 at 10:23











      • sudo ppa-purge ppa:jonathonf/python-3.6 fixed it for me (it reinstalled the necessary packages automatically).

        – jfs
        May 16 '18 at 11:28
















      24














      In my case, if I tried running any command that doesn't exist in a bash shell I would get this gross error:



      $ programthatdoesntexist
      Traceback (most recent call last):
      File "/usr/lib/python3.5/dbm/gnu.py", line 4, in <module>
      from _gdbm import *
      ImportError: No module named '_gdbm'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 7, in <module>
      import dbm.gnu as gdbm
      File "/usr/lib/python3.5/dbm/gnu.py", line 6, in <module>
      raise ImportError(str(msg) + ', please install the python3-gdbm package')
      ImportError: No module named '_gdbm', please install the python3-gdbm package

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "/usr/lib/command-not-found", line 27, in <module>
      from CommandNotFound.util import crash_guard
      File "/usr/lib/python3/dist-packages/CommandNotFound/__init__.py", line 3, in <module>
      from CommandNotFound.CommandNotFound import CommandNotFound
      File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 9, in <module>
      import gdbm
      ImportError: No module named 'gdbm'


      None of the answers above worked in my case. Although this problem has been solved, this might help someone. If you are still having this issue, maybe this will help:



      I had installed python3.6 from the repository ppa.launchpad.net/jonathonf/python-3.6/ubuntu , and apparently that broke some things.



      When tying to reinstall the packages command-not-found python3-commandnotfound python3-gdbm python3-gdbm-dbg sessioninstaller, I noticed that apt was pulling sources from here:



      Get:1 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 python3-gdbm amd64 3.6.5-3~16.04.york0.2 [14.6 kB]


      To fix the issue, I simply removed that repository:



      sed -i ' s/^/#/' /etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list


      And than re-ran this command (as root):



      apt update ; apt purge python3-gdbm ; apt install command-not-found python3-commandnotfound python3-gdbm python3-gdbm-dbg sessioninstaller


      Now, everything works again:



      $ lol
      No command 'lol' found, did you mean:
      Command 'sol' from package 'aisleriot' (main)
      Command 'col' from package 'bsdmainutils' (main)
      lol: command not found





      share|improve this answer



















      • 3





        I just had the same on 16.04 LTS. I think looking at the timing of your answer a new update either in the jonathonf repo or standard repos has a conflict. Since I moved to pyenv for my Python versions anyway, getting rid of the jonathonf repository is probably a good idea for me.

        – Phil
        May 10 '18 at 8:37











      • Thanks. Just a note that people might also notice the crash report app firing because command-not-found is failing.

        – jamesc
        May 12 '18 at 16:49






      • 2





        Had the same problem, and this solution worked. At the same time, python3.6 -m venv was broken for me. Changing to the deadsnakes repository solved all my issues. See also stackoverflow.com/a/50197283/7599943

        – Jonas Dahlbæk
        May 15 '18 at 10:23











      • sudo ppa-purge ppa:jonathonf/python-3.6 fixed it for me (it reinstalled the necessary packages automatically).

        – jfs
        May 16 '18 at 11:28














      24












      24








      24







      In my case, if I tried running any command that doesn't exist in a bash shell I would get this gross error:



      $ programthatdoesntexist
      Traceback (most recent call last):
      File "/usr/lib/python3.5/dbm/gnu.py", line 4, in <module>
      from _gdbm import *
      ImportError: No module named '_gdbm'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 7, in <module>
      import dbm.gnu as gdbm
      File "/usr/lib/python3.5/dbm/gnu.py", line 6, in <module>
      raise ImportError(str(msg) + ', please install the python3-gdbm package')
      ImportError: No module named '_gdbm', please install the python3-gdbm package

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "/usr/lib/command-not-found", line 27, in <module>
      from CommandNotFound.util import crash_guard
      File "/usr/lib/python3/dist-packages/CommandNotFound/__init__.py", line 3, in <module>
      from CommandNotFound.CommandNotFound import CommandNotFound
      File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 9, in <module>
      import gdbm
      ImportError: No module named 'gdbm'


      None of the answers above worked in my case. Although this problem has been solved, this might help someone. If you are still having this issue, maybe this will help:



      I had installed python3.6 from the repository ppa.launchpad.net/jonathonf/python-3.6/ubuntu , and apparently that broke some things.



      When tying to reinstall the packages command-not-found python3-commandnotfound python3-gdbm python3-gdbm-dbg sessioninstaller, I noticed that apt was pulling sources from here:



      Get:1 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 python3-gdbm amd64 3.6.5-3~16.04.york0.2 [14.6 kB]


      To fix the issue, I simply removed that repository:



      sed -i ' s/^/#/' /etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list


      And than re-ran this command (as root):



      apt update ; apt purge python3-gdbm ; apt install command-not-found python3-commandnotfound python3-gdbm python3-gdbm-dbg sessioninstaller


      Now, everything works again:



      $ lol
      No command 'lol' found, did you mean:
      Command 'sol' from package 'aisleriot' (main)
      Command 'col' from package 'bsdmainutils' (main)
      lol: command not found





      share|improve this answer













      In my case, if I tried running any command that doesn't exist in a bash shell I would get this gross error:



      $ programthatdoesntexist
      Traceback (most recent call last):
      File "/usr/lib/python3.5/dbm/gnu.py", line 4, in <module>
      from _gdbm import *
      ImportError: No module named '_gdbm'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 7, in <module>
      import dbm.gnu as gdbm
      File "/usr/lib/python3.5/dbm/gnu.py", line 6, in <module>
      raise ImportError(str(msg) + ', please install the python3-gdbm package')
      ImportError: No module named '_gdbm', please install the python3-gdbm package

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "/usr/lib/command-not-found", line 27, in <module>
      from CommandNotFound.util import crash_guard
      File "/usr/lib/python3/dist-packages/CommandNotFound/__init__.py", line 3, in <module>
      from CommandNotFound.CommandNotFound import CommandNotFound
      File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 9, in <module>
      import gdbm
      ImportError: No module named 'gdbm'


      None of the answers above worked in my case. Although this problem has been solved, this might help someone. If you are still having this issue, maybe this will help:



      I had installed python3.6 from the repository ppa.launchpad.net/jonathonf/python-3.6/ubuntu , and apparently that broke some things.



      When tying to reinstall the packages command-not-found python3-commandnotfound python3-gdbm python3-gdbm-dbg sessioninstaller, I noticed that apt was pulling sources from here:



      Get:1 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 python3-gdbm amd64 3.6.5-3~16.04.york0.2 [14.6 kB]


      To fix the issue, I simply removed that repository:



      sed -i ' s/^/#/' /etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list


      And than re-ran this command (as root):



      apt update ; apt purge python3-gdbm ; apt install command-not-found python3-commandnotfound python3-gdbm python3-gdbm-dbg sessioninstaller


      Now, everything works again:



      $ lol
      No command 'lol' found, did you mean:
      Command 'sol' from package 'aisleriot' (main)
      Command 'col' from package 'bsdmainutils' (main)
      lol: command not found






      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered May 9 '18 at 23:02









      Chev_603Chev_603

      95621128




      95621128








      • 3





        I just had the same on 16.04 LTS. I think looking at the timing of your answer a new update either in the jonathonf repo or standard repos has a conflict. Since I moved to pyenv for my Python versions anyway, getting rid of the jonathonf repository is probably a good idea for me.

        – Phil
        May 10 '18 at 8:37











      • Thanks. Just a note that people might also notice the crash report app firing because command-not-found is failing.

        – jamesc
        May 12 '18 at 16:49






      • 2





        Had the same problem, and this solution worked. At the same time, python3.6 -m venv was broken for me. Changing to the deadsnakes repository solved all my issues. See also stackoverflow.com/a/50197283/7599943

        – Jonas Dahlbæk
        May 15 '18 at 10:23











      • sudo ppa-purge ppa:jonathonf/python-3.6 fixed it for me (it reinstalled the necessary packages automatically).

        – jfs
        May 16 '18 at 11:28














      • 3





        I just had the same on 16.04 LTS. I think looking at the timing of your answer a new update either in the jonathonf repo or standard repos has a conflict. Since I moved to pyenv for my Python versions anyway, getting rid of the jonathonf repository is probably a good idea for me.

        – Phil
        May 10 '18 at 8:37











      • Thanks. Just a note that people might also notice the crash report app firing because command-not-found is failing.

        – jamesc
        May 12 '18 at 16:49






      • 2





        Had the same problem, and this solution worked. At the same time, python3.6 -m venv was broken for me. Changing to the deadsnakes repository solved all my issues. See also stackoverflow.com/a/50197283/7599943

        – Jonas Dahlbæk
        May 15 '18 at 10:23











      • sudo ppa-purge ppa:jonathonf/python-3.6 fixed it for me (it reinstalled the necessary packages automatically).

        – jfs
        May 16 '18 at 11:28








      3




      3





      I just had the same on 16.04 LTS. I think looking at the timing of your answer a new update either in the jonathonf repo or standard repos has a conflict. Since I moved to pyenv for my Python versions anyway, getting rid of the jonathonf repository is probably a good idea for me.

      – Phil
      May 10 '18 at 8:37





      I just had the same on 16.04 LTS. I think looking at the timing of your answer a new update either in the jonathonf repo or standard repos has a conflict. Since I moved to pyenv for my Python versions anyway, getting rid of the jonathonf repository is probably a good idea for me.

      – Phil
      May 10 '18 at 8:37













      Thanks. Just a note that people might also notice the crash report app firing because command-not-found is failing.

      – jamesc
      May 12 '18 at 16:49





      Thanks. Just a note that people might also notice the crash report app firing because command-not-found is failing.

      – jamesc
      May 12 '18 at 16:49




      2




      2





      Had the same problem, and this solution worked. At the same time, python3.6 -m venv was broken for me. Changing to the deadsnakes repository solved all my issues. See also stackoverflow.com/a/50197283/7599943

      – Jonas Dahlbæk
      May 15 '18 at 10:23





      Had the same problem, and this solution worked. At the same time, python3.6 -m venv was broken for me. Changing to the deadsnakes repository solved all my issues. See also stackoverflow.com/a/50197283/7599943

      – Jonas Dahlbæk
      May 15 '18 at 10:23













      sudo ppa-purge ppa:jonathonf/python-3.6 fixed it for me (it reinstalled the necessary packages automatically).

      – jfs
      May 16 '18 at 11:28





      sudo ppa-purge ppa:jonathonf/python-3.6 fixed it for me (it reinstalled the necessary packages automatically).

      – jfs
      May 16 '18 at 11:28













      22














      sudo apt-get install python3.5-gdbm


      helped me






      share|improve this answer



















      • 3





        Of course, the same pattern applies for python 3.6.

        – SteveJ
        Dec 14 '17 at 21:56
















      22














      sudo apt-get install python3.5-gdbm


      helped me






      share|improve this answer



















      • 3





        Of course, the same pattern applies for python 3.6.

        – SteveJ
        Dec 14 '17 at 21:56














      22












      22








      22







      sudo apt-get install python3.5-gdbm


      helped me






      share|improve this answer













      sudo apt-get install python3.5-gdbm


      helped me







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Apr 20 '16 at 6:31









      Artur KlesunArtur Klesun

      33127




      33127








      • 3





        Of course, the same pattern applies for python 3.6.

        – SteveJ
        Dec 14 '17 at 21:56














      • 3





        Of course, the same pattern applies for python 3.6.

        – SteveJ
        Dec 14 '17 at 21:56








      3




      3





      Of course, the same pattern applies for python 3.6.

      – SteveJ
      Dec 14 '17 at 21:56





      Of course, the same pattern applies for python 3.6.

      – SteveJ
      Dec 14 '17 at 21:56











      7














      Have you tried installing the package python3-gdbm



      sudo apt-get install python3-gdbm





      share|improve this answer



















      • 4





        Yes, I did that, but still giving me the same error message.

        – Asogwa Chukwuemeka Martins
        Jan 13 '16 at 2:39











      • This is because there is no module named gdbm any more. Use _gdbm.

        – Matthias Urlichs
        Dec 13 '18 at 7:00
















      7














      Have you tried installing the package python3-gdbm



      sudo apt-get install python3-gdbm





      share|improve this answer



















      • 4





        Yes, I did that, but still giving me the same error message.

        – Asogwa Chukwuemeka Martins
        Jan 13 '16 at 2:39











      • This is because there is no module named gdbm any more. Use _gdbm.

        – Matthias Urlichs
        Dec 13 '18 at 7:00














      7












      7








      7







      Have you tried installing the package python3-gdbm



      sudo apt-get install python3-gdbm





      share|improve this answer













      Have you tried installing the package python3-gdbm



      sudo apt-get install python3-gdbm






      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jan 13 '16 at 0:12









      0x7c00x7c0

      7,32612328




      7,32612328








      • 4





        Yes, I did that, but still giving me the same error message.

        – Asogwa Chukwuemeka Martins
        Jan 13 '16 at 2:39











      • This is because there is no module named gdbm any more. Use _gdbm.

        – Matthias Urlichs
        Dec 13 '18 at 7:00














      • 4





        Yes, I did that, but still giving me the same error message.

        – Asogwa Chukwuemeka Martins
        Jan 13 '16 at 2:39











      • This is because there is no module named gdbm any more. Use _gdbm.

        – Matthias Urlichs
        Dec 13 '18 at 7:00








      4




      4





      Yes, I did that, but still giving me the same error message.

      – Asogwa Chukwuemeka Martins
      Jan 13 '16 at 2:39





      Yes, I did that, but still giving me the same error message.

      – Asogwa Chukwuemeka Martins
      Jan 13 '16 at 2:39













      This is because there is no module named gdbm any more. Use _gdbm.

      – Matthias Urlichs
      Dec 13 '18 at 7:00





      This is because there is no module named gdbm any more. Use _gdbm.

      – Matthias Urlichs
      Dec 13 '18 at 7:00











      2














      I have python 3.6 install and working i have tried many things but



      sudo apt-get install python3.6-gdbm


      This command worked for me






      share|improve this answer




























        2














        I have python 3.6 install and working i have tried many things but



        sudo apt-get install python3.6-gdbm


        This command worked for me






        share|improve this answer


























          2












          2








          2







          I have python 3.6 install and working i have tried many things but



          sudo apt-get install python3.6-gdbm


          This command worked for me






          share|improve this answer













          I have python 3.6 install and working i have tried many things but



          sudo apt-get install python3.6-gdbm


          This command worked for me







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 29 '17 at 7:31









          Vishal PatelVishal Patel

          1212




          1212























              2














              I had the same issue and got it solved by:



              sudo apt install python3-gdbm=3.5.1-1
              dpkg -L python3-gdbm


              running synaptic, for something else, displayed that python3-gdbm needed an update. I allowed synaptic to make the update and:
              Now I get the same issue back.



              When running above commands again I get as message, in the terminal, for the first command: The following packages will be DOWNGRADED : python3-gdbm.
              After answering Y to the question if I want to continue, traceback works again.



              So there is clearly something wrong (bug) in the latest version of python3-gdbm.






              share|improve this answer


























              • this worked for me!

                – wolfgang
                May 17 '18 at 14:25
















              2














              I had the same issue and got it solved by:



              sudo apt install python3-gdbm=3.5.1-1
              dpkg -L python3-gdbm


              running synaptic, for something else, displayed that python3-gdbm needed an update. I allowed synaptic to make the update and:
              Now I get the same issue back.



              When running above commands again I get as message, in the terminal, for the first command: The following packages will be DOWNGRADED : python3-gdbm.
              After answering Y to the question if I want to continue, traceback works again.



              So there is clearly something wrong (bug) in the latest version of python3-gdbm.






              share|improve this answer


























              • this worked for me!

                – wolfgang
                May 17 '18 at 14:25














              2












              2








              2







              I had the same issue and got it solved by:



              sudo apt install python3-gdbm=3.5.1-1
              dpkg -L python3-gdbm


              running synaptic, for something else, displayed that python3-gdbm needed an update. I allowed synaptic to make the update and:
              Now I get the same issue back.



              When running above commands again I get as message, in the terminal, for the first command: The following packages will be DOWNGRADED : python3-gdbm.
              After answering Y to the question if I want to continue, traceback works again.



              So there is clearly something wrong (bug) in the latest version of python3-gdbm.






              share|improve this answer















              I had the same issue and got it solved by:



              sudo apt install python3-gdbm=3.5.1-1
              dpkg -L python3-gdbm


              running synaptic, for something else, displayed that python3-gdbm needed an update. I allowed synaptic to make the update and:
              Now I get the same issue back.



              When running above commands again I get as message, in the terminal, for the first command: The following packages will be DOWNGRADED : python3-gdbm.
              After answering Y to the question if I want to continue, traceback works again.



              So there is clearly something wrong (bug) in the latest version of python3-gdbm.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited May 16 '18 at 6:17









              muru

              1




              1










              answered May 16 '18 at 6:14









              defossezdefossez

              515




              515













              • this worked for me!

                – wolfgang
                May 17 '18 at 14:25



















              • this worked for me!

                – wolfgang
                May 17 '18 at 14:25

















              this worked for me!

              – wolfgang
              May 17 '18 at 14:25





              this worked for me!

              – wolfgang
              May 17 '18 at 14:25











              1














              sudo apt install python3-django


              helped me






              share|improve this answer



















              • 3





                Hi zxdc, you might want to explain your answer. Does installing django also install gdbm somehow?

                – Hee Jin
                May 8 '18 at 15:37
















              1














              sudo apt install python3-django


              helped me






              share|improve this answer



















              • 3





                Hi zxdc, you might want to explain your answer. Does installing django also install gdbm somehow?

                – Hee Jin
                May 8 '18 at 15:37














              1












              1








              1







              sudo apt install python3-django


              helped me






              share|improve this answer













              sudo apt install python3-django


              helped me







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered May 7 '18 at 6:03









              zxdczxdc

              112




              112








              • 3





                Hi zxdc, you might want to explain your answer. Does installing django also install gdbm somehow?

                – Hee Jin
                May 8 '18 at 15:37














              • 3





                Hi zxdc, you might want to explain your answer. Does installing django also install gdbm somehow?

                – Hee Jin
                May 8 '18 at 15:37








              3




              3





              Hi zxdc, you might want to explain your answer. Does installing django also install gdbm somehow?

              – Hee Jin
              May 8 '18 at 15:37





              Hi zxdc, you might want to explain your answer. Does installing django also install gdbm somehow?

              – Hee Jin
              May 8 '18 at 15:37











              0














              I had this error when I had forgot to activate a Python virtual environment that was used with the command I was trying to run (The tx command in my case).






              share|improve this answer




























                0














                I had this error when I had forgot to activate a Python virtual environment that was used with the command I was trying to run (The tx command in my case).






                share|improve this answer


























                  0












                  0








                  0







                  I had this error when I had forgot to activate a Python virtual environment that was used with the command I was trying to run (The tx command in my case).






                  share|improve this answer













                  I had this error when I had forgot to activate a Python virtual environment that was used with the command I was trying to run (The tx command in my case).







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Oct 8 '18 at 17:54









                  OrienteerixOrienteerix

                  1036




                  1036






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f720416%2fno-module-named-gdbm%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Human spaceflight

                      Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                      File:DeusFollowingSea.jpg