Apparently you have touched your system's Python installation, which is a bad
idea. If this is a virtual server and you don't have anything else in it, your
best bet would be to reinstall it from scratch.

Antonis Christofides
http://djangodeployment.com

On 2016-12-05 17:14, ninos...@gmail.com wrote:
> Thanks for the dude but I think we have another problem. when I try to install
> it I get the following error :
>
> Reading package lists... Done
> Building dependency tree      
> Reading state information... Done
> python-sqlite is already the newest version.
> The following packages were automatically installed and are no longer 
> required:
>   hyphen-en-us libreoffice libreoffice-help-en-us mythes-en-us task-desktop
>   x11-apps x11-session-utils xinit xorg
> Use 'apt-get autoremove' to remove them.
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 1 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Do you want to continue? [Y/n] y
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site.py", line 563, in <module>
>     main()
>   File "/usr/lib/python2.7/site.py", line 545, in main
>     known_paths = addusersitepackages(known_paths)
>   File "/usr/lib/python2.7/site.py", line 278, in addusersitepackages
>     user_site = getusersitepackages()
>   File "/usr/lib/python2.7/site.py", line 253, in getusersitepackages
>     user_base = getuserbase() # this will also set USER_BASE
>   File "/usr/lib/python2.7/site.py", line 243, in getuserbase
>     USER_BASE = get_config_var('userbase')
>   File "/usr/lib/python2.7/sysconfig.py", line 521, in get_config_var
>     return get_config_vars().get(name)
>   File "/usr/lib/python2.7/sysconfig.py", line 420, in get_config_vars
>     _init_posix(_CONFIG_VARS)
>   File "/usr/lib/python2.7/sysconfig.py", line 288, in _init_posix
>     raise IOError(msg)
> IOError: invalid Python installation: unable to open
> /usr/lib/python2.7/config/Makefile (No such file or directory)
> Setting up python-sqlite (1.0.1-11) ...
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site.py", line 563, in <module>
>     main()
>   File "/usr/lib/python2.7/site.py", line 545, in main
>     known_paths = addusersitepackages(known_paths)
>   File "/usr/lib/python2.7/site.py", line 278, in addusersitepackages
>     user_site = getusersitepackages()
>   File "/usr/lib/python2.7/site.py", line 253, in getusersitepackages
>     user_base = getuserbase() # this will also set USER_BASE
>   File "/usr/lib/python2.7/site.py", line 243, in getuserbase
>     USER_BASE = get_config_var('userbase')
>   File "/usr/lib/python2.7/sysconfig.py", line 521, in get_config_var
>     return get_config_vars().get(name)
>   File "/usr/lib/python2.7/sysconfig.py", line 420, in get_config_vars
>     _init_posix(_CONFIG_VARS)
>   File "/usr/lib/python2.7/sysconfig.py", line 288, in _init_posix
>     raise IOError(msg)
> IOError: invalid Python installation: unable to open
> /usr/lib/python2.7/config/Makefile (No such file or directory)
> dpkg: error processing package python-sqlite (--configure):
>  subprocess installed post-installation script returned error exit status 1
> Errors were encountered while processing:
>  python-sqlite
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>
> On Monday, December 5, 2016 at 6:14:53 PM UTC+5:30, Antonis Christofides 
> wrote:
>
>     Install SQLite:
>
>     apt install python-sqlite
>
>     -- 
>     Antonis Christofides
>     http://djangodeployment.com/
>
>
>     On Mon, 5 Dec 2016 03:28:34 -0800 (PST), nino...@gmail.com <javascript:>
>     wrote:
>
>     > Hi,
>     > I deleted that project file and made a new one. Now I got the following
>     > error
>     > Unhandled exception in thread started by <function wrapper at
>     > 0x7f6b79390cf8>
>     > Traceback (most recent call last):
>     >   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py",
>     > line 226, in wrapper
>     >     fn(*args, **kwargs)
>     >   File
>     >
>     
> "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py",
>
>     > line 113, in inner_run
>     >     autoreload.raise_last_exception()
>     >   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py",
>     > line 249, in raise_last_exception
>     >     six.reraise(*_exception)
>     >   File 
> "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py",
>     > line 226, in wrapper
>     >     fn(*args, **kwargs)
>     >   File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line
>     > 27, in setup
>     >     apps.populate(settings.INSTALLED_APPS)
>     >   File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py",
>     > line 108, in populate
>     >     app_config.import_models(all_models)
>     >   File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", 
> line
>     > 199, in import_models
>     >     self.models_module = import_module(models_module_name)
>     >   File "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in
>     > import_module
>     >     __import__(name)
>     >   File
>     > "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/models.py",
>     > line 4, in <module>
>     >     from django.contrib.auth.base_user import AbstractBaseUser,
>     > BaseUserManager
>     >   File
>     > 
> "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/base_user.py",
>     > line 52, in <module>
>     >     class AbstractBaseUser(models.Model):
>     >   File 
> "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py",
>     > line 119, in __new__
>     >     new_class.add_to_class('_meta', Options(meta, app_label))
>     >   File 
> "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py",
>     > line 316, in add_to_class
>     >     value.contribute_to_class(cls, name)
>     >   File
>     > "/usr/local/lib/python2.7/dist-packages/django/db/models/options.py", 
> line
>     > 214, in contribute_to_class
>     >     self.db_table = truncate_name(self.db_table,
>     > connection.ops.max_name_length())
>     >   File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", 
> line
>     > 33, in __getattr__
>     >     return getattr(connections[DEFAULT_DB_ALIAS], item)
>     >   File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line
>     > 211, in __getitem__
>     >     backend = load_backend(db['ENGINE'])
>     >   File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line
>     > 115, in load_backend
>     >     return import_module('%s.base' % backend_name)
>     >   File "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in
>     > import_module
>     >     __import__(name)
>     >   File
>     >
>     
> "/usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py",
>     > line 39, in <module>
>     >     raise ImproperlyConfigured("Error loading either pysqlite2 or 
> sqlite3
>     > modules (tried in that order): %s" % exc)
>     > django.core.exceptions.ImproperlyConfigured: Error loading either 
> pysqlite2
>     > or sqlite3 modules (tried in that order): No module named _sqlite3
>     >
>     >
>     > On Sunday, December 4, 2016 at 8:30:47 PM UTC+5:30, pradam.programming
>     > wrote:
>     > >
>     > > Hi,
>     > > 1.Check any other file in directory by same name.
>     > > 2.check __init__.py file is their in Root Project folder..
>     > >
>     > > On 4 Dec 2016 8:04 pm, <nino...@gmail.com <javascript:>> wrote:
>     > >
>     > >> I started a new project in Django today (actually my first django
>     > >> project). Strangely when I run python manage.py runserver it does
>     > >> absolutely nothing. It just jumps to the next prompt. I'm using the 
> most
>     > >> resent release which I installed using pip. It doesn't show anything
>     when
>     > >> run. It doesn't show anything. NO error, No other messages, Nothing. 
> And
>     > >> nothing happens too. I don't know if what I'm going to say next is
>     useful
>     > >> or not. I initially had difficulty importing django, which I solved 
> by
>     > >> adding a .pth file in the site-packages directory. Thanks in advance
>     > >>
>     > >> --
>     > >> You received this message because you are subscribed to the Google
>     Groups
>     > >> "Django users" group.
>     > >> To unsubscribe from this group and stop receiving emails from it,
>     send an
>     > >> email to django-users...@googlegroups.com <javascript:>.
>     > >> To post to this group, send email to django...@googlegroups.com
>     > >> <javascript:>.
>     > >> Visit this group at https://groups.google.com/group/django-users
>     <https://groups.google.com/group/django-users>.
>     > >> To view this discussion on the web visit
>     > >>
>     
> https://groups.google.com/d/msgid/django-users/4a996171-5715-4f3c-8d0f-a89518f54183%40googlegroups.com
>     
> <https://groups.google.com/d/msgid/django-users/4a996171-5715-4f3c-8d0f-a89518f54183%40googlegroups.com>
>
>     > >>
>     
> <https://groups.google.com/d/msgid/django-users/4a996171-5715-4f3c-8d0f-a89518f54183%40googlegroups.com?utm_medium=email&utm_source=footer
>     
> <https://groups.google.com/d/msgid/django-users/4a996171-5715-4f3c-8d0f-a89518f54183%40googlegroups.com?utm_medium=email&utm_source=footer>>
>
>     > >> .
>     > >> For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>     > >>
>     > >
>     >
>     > --
>     > You received this message because you are subscribed to the Google
>     Groups "Django users" group.
>     > To unsubscribe from this group and stop receiving emails from it, send
>     an email to django-users...@googlegroups.com <javascript:>.
>     > To post to this group, send email to django...@googlegroups.com
>     <javascript:>.
>     > Visit this group at https://groups.google.com/group/django-users
>     <https://groups.google.com/group/django-users>.
>     > To view this discussion on the web visit
>     
> https://groups.google.com/d/msgid/django-users/46fef46e-f751-425f-9558-f4236d3fc2d6%40googlegroups.com
>     
> <https://groups.google.com/d/msgid/django-users/46fef46e-f751-425f-9558-f4236d3fc2d6%40googlegroups.com>.
>
>     > For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>
>
> -- 
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To post to this group, send email to django-users@googlegroups.com
> <mailto:django-users@googlegroups.com>.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/94ff656b-8302-433b-895a-bdb4028b0223%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/94ff656b-8302-433b-895a-bdb4028b0223%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d894f933-4b2b-cb9a-bbc5-e62dc784b9d1%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to