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

          Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

          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

          Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»