ImportError: cannot import name _remove_dead_weakref in django virtualenvInstalling python-pygments, ImportErrorProblem with installing a python moduleI can't open software updater and unity tweak tool on Ubuntu14.04Error starting ipython?PlayOnLinux won't launchWhy can't I start onedrive-d?while creating module getting errorTypeError when running update-manager on ubuntu 17.10version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time referenceImportError: cannot import name _remove_dead_weakref?

What about the virus in 12 Monkeys?

Intersection Puzzle

Examples of smooth manifolds admitting inbetween one and a continuum of complex structures

Arrow those variables!

Why was the shrinking from 8″ made only to 5.25″ and not smaller (4″ or less)?

In 'Revenger,' what does 'cove' come from?

Why didn't Boeing produce its own regional jet?

Can the Meissner effect explain very large floating structures?

Alternative to sending password over mail?

How to tell a function to use the default argument values?

Can compressed videos be decoded back to their uncompresed original format?

What method can I use to design a dungeon difficult enough that the PCs can't make it through without killing them?

Why do bosons tend to occupy the same state?

CAST throwing error when run in stored procedure but not when run as raw query

What mechanic is there to disable a threat instead of killing it?

What reasons are there for a Capitalist to oppose a 100% inheritance tax?

Bullying boss launched a smear campaign and made me unemployable

iPad being using in wall mount battery swollen

Are there any examples of a variable being normally distributed that is *not* due to the Central Limit Theorem?

Avoiding the "not like other girls" trope?

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?

Extract rows of a table, that include less than x NULLs

How to prevent "they're falling in love" trope

Why does this cyclic subgroup have only 4 subgroups?



ImportError: cannot import name _remove_dead_weakref in django virtualenv


Installing python-pygments, ImportErrorProblem with installing a python moduleI can't open software updater and unity tweak tool on Ubuntu14.04Error starting ipython?PlayOnLinux won't launchWhy can't I start onedrive-d?while creating module getting errorTypeError when running update-manager on ubuntu 17.10version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time referenceImportError: cannot import name _remove_dead_weakref?













0















After upgrade to 18.04 from 16.04, my django's virtualenv refuses to start:



(.djangoenv) mw@desktop:~/theapp$ python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 10, in <module>
from django.apps import apps
File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/apps/__init__.py", line 1, in <module>
from .config import AppConfig # NOQA
File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/apps/config.py", line 4, in <module>
from django.core.exceptions import AppRegistryNotReady, ImproperlyConfigured
File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/core/exceptions.py", line 5, in <module>
from django.utils.encoding import force_text
File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/utils/encoding.py", line 10, in <module>
from django.utils.functional import Promise
File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/utils/functional.py", line 1, in <module>
import copy
File "/usr/lib/python2.7/copy.py", line 52, in <module>
import weakref
File "/usr/lib/python2.7/weakref.py", line 14, in <module>
from _weakref import (
ImportError: cannot import name _remove_dead_weakref


On the djangoenv and outside it



$ python --version : 
`Python 2.7.12`


Hoping to resolve the issue, I also install Python 2.7.16 on the desktop, so I get:



$ python2.7 --version
Python 2.7.16


Answers to the same error in other contexts did not help and my search led to no more clues.
So really appreciate your hints.










share|improve this question


























    0















    After upgrade to 18.04 from 16.04, my django's virtualenv refuses to start:



    (.djangoenv) mw@desktop:~/theapp$ python manage.py runserver
    Traceback (most recent call last):
    File "manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
    File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 10, in <module>
    from django.apps import apps
    File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/apps/__init__.py", line 1, in <module>
    from .config import AppConfig # NOQA
    File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/apps/config.py", line 4, in <module>
    from django.core.exceptions import AppRegistryNotReady, ImproperlyConfigured
    File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/core/exceptions.py", line 5, in <module>
    from django.utils.encoding import force_text
    File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/utils/encoding.py", line 10, in <module>
    from django.utils.functional import Promise
    File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/utils/functional.py", line 1, in <module>
    import copy
    File "/usr/lib/python2.7/copy.py", line 52, in <module>
    import weakref
    File "/usr/lib/python2.7/weakref.py", line 14, in <module>
    from _weakref import (
    ImportError: cannot import name _remove_dead_weakref


    On the djangoenv and outside it



    $ python --version : 
    `Python 2.7.12`


    Hoping to resolve the issue, I also install Python 2.7.16 on the desktop, so I get:



    $ python2.7 --version
    Python 2.7.16


    Answers to the same error in other contexts did not help and my search led to no more clues.
    So really appreciate your hints.










    share|improve this question
























      0












      0








      0








      After upgrade to 18.04 from 16.04, my django's virtualenv refuses to start:



      (.djangoenv) mw@desktop:~/theapp$ python manage.py runserver
      Traceback (most recent call last):
      File "manage.py", line 8, in <module>
      from django.core.management import execute_from_command_line
      File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 10, in <module>
      from django.apps import apps
      File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/apps/__init__.py", line 1, in <module>
      from .config import AppConfig # NOQA
      File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/apps/config.py", line 4, in <module>
      from django.core.exceptions import AppRegistryNotReady, ImproperlyConfigured
      File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/core/exceptions.py", line 5, in <module>
      from django.utils.encoding import force_text
      File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/utils/encoding.py", line 10, in <module>
      from django.utils.functional import Promise
      File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/utils/functional.py", line 1, in <module>
      import copy
      File "/usr/lib/python2.7/copy.py", line 52, in <module>
      import weakref
      File "/usr/lib/python2.7/weakref.py", line 14, in <module>
      from _weakref import (
      ImportError: cannot import name _remove_dead_weakref


      On the djangoenv and outside it



      $ python --version : 
      `Python 2.7.12`


      Hoping to resolve the issue, I also install Python 2.7.16 on the desktop, so I get:



      $ python2.7 --version
      Python 2.7.16


      Answers to the same error in other contexts did not help and my search led to no more clues.
      So really appreciate your hints.










      share|improve this question














      After upgrade to 18.04 from 16.04, my django's virtualenv refuses to start:



      (.djangoenv) mw@desktop:~/theapp$ python manage.py runserver
      Traceback (most recent call last):
      File "manage.py", line 8, in <module>
      from django.core.management import execute_from_command_line
      File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 10, in <module>
      from django.apps import apps
      File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/apps/__init__.py", line 1, in <module>
      from .config import AppConfig # NOQA
      File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/apps/config.py", line 4, in <module>
      from django.core.exceptions import AppRegistryNotReady, ImproperlyConfigured
      File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/core/exceptions.py", line 5, in <module>
      from django.utils.encoding import force_text
      File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/utils/encoding.py", line 10, in <module>
      from django.utils.functional import Promise
      File "/home/mw/.djangoenv/local/lib/python2.7/site-packages/django/utils/functional.py", line 1, in <module>
      import copy
      File "/usr/lib/python2.7/copy.py", line 52, in <module>
      import weakref
      File "/usr/lib/python2.7/weakref.py", line 14, in <module>
      from _weakref import (
      ImportError: cannot import name _remove_dead_weakref


      On the djangoenv and outside it



      $ python --version : 
      `Python 2.7.12`


      Hoping to resolve the issue, I also install Python 2.7.16 on the desktop, so I get:



      $ python2.7 --version
      Python 2.7.16


      Answers to the same error in other contexts did not help and my search led to no more clues.
      So really appreciate your hints.







      18.04 upgrade python django virtualenv






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      MilkywayMilkyway

      112




      112




















          0






          active

          oldest

          votes












          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%2f1131044%2fimporterror-cannot-import-name-remove-dead-weakref-in-django-virtualenv%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          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%2f1131044%2fimporterror-cannot-import-name-remove-dead-weakref-in-django-virtualenv%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

          Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

          Are there any comparative studies done between Ashtavakra Gita and Buddhim?How is it wrong to believe that a self exists, or that it doesn't?Can you criticise or improve Ven. Bodhi's description of MahayanaWas the doctrine of 'Anatta', accepted as doctrine by modern Buddhism, actually taught by the Buddha?Relationship between Buddhism, Hinduism and Yoga?Comparison of Nirvana, Tao and Brahman/AtmaIs there a distinction between “ego identity” and “craving/hating”?Are there many differences between Taoism and Buddhism?Loss of “faith” in buddhismSimilarity between creation in Abrahamic religions and beginning of life in Earth mentioned Agganna Sutta?Are there studies about the difference between meditating in the morning versus in the evening?Can one follow Hinduism and Buddhism at the same time?Are there any prohibitions on participating in other religion's practices?Psychology of 'flow'

          Where is the suspend/hibernate button in GNOME Shell? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)No suspend option in UI on Bionic BeaverHow can I set sleep mode in ubuntu18.04 LTS and what is the short cut key to do so?17.10 suspend not availableUbuntu 18.04 LTS missing sleep optionUbuntu 18.04 LTS - missing suspend option when power button is pressedHow to put Thinkpad X1 Extreme to sleep in Ubuntu 18.10?Suspend Button in interactive power button menu18.04 - Keep programs running after logging outway to disable Hibernate from within gconf-editor so button disappears?How can I hibernate from GNOME Shell?How can I hibernate/suspend from the command line and do so at a specific timeNo permission to suspend/hibernate after upgrading to 12.10MATE - Missing Suspend and Hibernate buttons, pressing power button shutdowns system immediatelyUbuntu 14.04: Suspend, Hibernate and Suspend-hybrid in the menu?Change “power-button-action” comand for “hibernate” option in GNOME 3.18Shutdown / Power off button does always go to suspend on 17.10Hibernate after suspend stopped working in 17.10Why doesn't the keyboard screenshot button work on Ubuntu with GNOME shell?