CyberHosting

i am getting error Unable to install DJANGO

Collecting django==1.11
Downloading https://files.pythonhosted.org/packages/47/a6/078ebcbd49b19e22fd56 0a2348cfc5cec9e5dcfe3c4fad8e64c9865135bb/Django-1.11-py2.py3-none-any.whl (6.9MB )
99% |████████████████████████████████| 6.9MB 39.4MB/s eta 0:00:01Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 403, in run
requirement_set.cleanup_files()
File "/usr/lib/python2.7/dist-packages/pip/utils/build.py", line 38, in __exit __
self.cleanup()
File "/usr/lib/python2.7/dist-packages/pip/utils/build.py", line 42, in cleanu p
rmtree(self.name)
File "/usr/share/python-wheels/retrying-1.3.3-py2.py3-none-any.whl/retrying.py ", line 49, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "/usr/share/python-wheels/retrying-1.3.3-py2.py3-none-any.whl/retrying.py ", line 212, in call
raise attempt.get()
File "/usr/share/python-wheels/retrying-1.3.3-py2.py3-none-any.whl/retrying.py ", line 247, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "/usr/share/python-wheels/retrying-1.3.3-py2.py3-none-any.whl/retrying.py ", line 200, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "/usr/lib/python2.7/dist-packages/pip/utils/__init__.py", line 102, in rm tree
onerror=rmtree_errorhandler)
File "/usr/lib/python2.7/shutil.py", line 270, in rmtree
onerror(os.rmdir, path, sys.exc_info())
File "/usr/lib/python2.7/dist-packages/pip/utils/__init__.py", line 112, in rm tree_errorhandler
os.chmod(path, stat.S_IWRITE)
OSError: [Errno 30] Read-only file system: '/tmp/pip-build-Frp8MP'



[05-15-49-Wed-Sep-2019] ######################################################## #################

[05-15-49-Wed-Sep-2019] Unable to install DJANGO, trying again, try number: 1

[05-15-49-Wed-Sep-2019] ######################################################## #################

Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 307, in run
delete=build_delete) as build_dir:
File "/usr/lib/python2.7/dist-packages/pip/utils/build.py", line 22, in __init __
name = os.path.realpath(tempfile.mkdtemp(prefix="pip-build-"))
File "/usr/lib/python2.7/tempfile.py", line 331, in mkdtemp
dir = gettempdir()
File "/usr/lib/python2.7/tempfile.py", line 275, in gettempdir
tempdir = _get_default_tempdir()
File "/usr/lib/python2.7/tempfile.py", line 217, in _get_default_tempdir
("No usable temporary directory found in %s" % dirlist))
IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', ' /usr/tmp', '/etc/cyberpanel']



[05-15-50-Wed-Sep-2019] ######################################################## #################

[05-15-50-Wed-Sep-2019] Unable to install DJANGO, trying again, try number: 2

[05-15-50-Wed-Sep-2019] ######################################################## #################

Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 307, in run
delete=build_delete) as build_dir:
File "/usr/lib/python2.7/dist-packages/pip/utils/build.py", line 22, in __init __
name = os.path.realpath(tempfile.mkdtemp(prefix="pip-build-"))
File "/usr/lib/python2.7/tempfile.py", line 331, in mkdtemp
dir = gettempdir()
File "/usr/lib/python2.7/tempfile.py", line 275, in gettempdir
tempdir = _get_default_tempdir()
File "/usr/lib/python2.7/tempfile.py", line 217, in _get_default_tempdir
("No usable temporary directory found in %s" % dirlist))
IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', ' /usr/tmp', '/etc/cyberpanel']



[05-15-51-Wed-Sep-2019] ######################################################## #################

[05-15-51-Wed-Sep-2019] Unable to install DJANGO, trying again, try number: 3

[05-15-51-Wed-Sep-2019] ######################################################## #################




[05-15-51-Wed-Sep-2019] ######################################################## #################

[05-15-51-Wed-Sep-2019] Installation failed, consult: /var/log/installLogs.txt

[05-15-51-Wed-Sep-2019] ######################################################## #################


Something went wrong...
root@ubuntu-s-1vcpu-1gb-blr1-01:~# systemctl status gunicorn.socket
Unit gunicorn.socket could not be found.
root@ubuntu-s-1vcpu-1gb-blr1-01:~# systemctl status gunicorn.socket
Unit gunicorn.socket could not be found.
root@ubuntu-s-1vcpu-1gb-blr1-01:~# systemctl start gunicorn.socket
Failed to start gunicorn.socket: Unit gunicorn.socket not found.
root@ubuntu-s-1vcpu-1gb-blr1-01:~# systemctl start gunicorn.socket
Failed to start gunicorn.socket: Unit gunicorn.socket not found.
root@ubuntu-s-1vcpu-1gb-blr1-01:~# ^C
root@ubuntu-s-1vcpu-1gb-blr1-01:~# ^C
root@ubuntu-s-1vcpu-1gb-blr1-01:~#

Comments

  • Provider: Digital Oceanc

    Virtualization Type: KVM

    System: Centos 7.6 , Ubuntu 18.04 both tried

    Installation option: since during the installation.
    there will be few option to choose,so please provide it as well.

    OLS or Enterprise?
    Enterprise

    Installing from official server or mirror server?
    official


    Replace JS/CSS files to JS Delivr?
    no/yes tried both

    Install Memcached extension for PHP?
    yes

    Install LiteSpeed Memcached?
    yes

    Install Memcached?
    no/yes tried both

    Install Redis extension for PHP?
    yes/no tried both

    Install Redis?
    yes/no tried both


    Problem:
    error Unable to install DJANGO

    Collecting django==1.11
    Downloading https://files.pythonhosted.org/packages/47/a6/078ebcbd49b19e22fd56 0a2348cfc5cec9e5dcfe3c4fad8e64c9865135bb/Django-1.11-py2.py3-none-any.whl (6.9MB )
    99% |████████████████████████████████| 6.9MB 39.4MB/s eta 0:00:01Exception:
    Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
    File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 403, in run
    requirement_set.cleanup_files()
    File "/usr/lib/python2.7/dist-packages/pip/utils/build.py", line 38, in __exit __
    self.cleanup()
    File "/usr/lib/python2.7/dist-packages/pip/utils/build.py", line 42, in cleanu p
    rmtree(self.name)
    File "/usr/share/python-wheels/retrying-1.3.3-py2.py3-none-any.whl/retrying.py ", line 49, in wrapped_f
    return Retrying(*dargs, **dkw).call(f, *args, **kw)
    File "/usr/share/python-wheels/retrying-1.3.3-py2.py3-none-any.whl/retrying.py ", line 212, in call
    raise attempt.get()
    File "/usr/share/python-wheels/retrying-1.3.3-py2.py3-none-any.whl/retrying.py ", line 247, in get
    six.reraise(self.value[0], self.value[1], self.value[2])
    File "/usr/share/python-wheels/retrying-1.3.3-py2.py3-none-any.whl/retrying.py ", line 200, in call
    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
    File "/usr/lib/python2.7/dist-packages/pip/utils/__init__.py", line 102, in rm tree
    onerror=rmtree_errorhandler)
    File "/usr/lib/python2.7/shutil.py", line 270, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
    File "/usr/lib/python2.7/dist-packages/pip/utils/__init__.py", line 112, in rm tree_errorhandler
    os.chmod(path, stat.S_IWRITE)
    OSError: [Errno 30] Read-only file system: '/tmp/pip-build-Frp8MP'



    [05-15-49-Wed-Sep-2019] ######################################################## #################

    [05-15-49-Wed-Sep-2019] Unable to install DJANGO, trying again, try number: 1

    [05-15-49-Wed-Sep-2019] ######################################################## #################

    Exception:
    Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
    File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 307, in run
    delete=build_delete) as build_dir:
    File "/usr/lib/python2.7/dist-packages/pip/utils/build.py", line 22, in __init __
    name = os.path.realpath(tempfile.mkdtemp(prefix="pip-build-"))
    File "/usr/lib/python2.7/tempfile.py", line 331, in mkdtemp
    dir = gettempdir()
    File "/usr/lib/python2.7/tempfile.py", line 275, in gettempdir
    tempdir = _get_default_tempdir()
    File "/usr/lib/python2.7/tempfile.py", line 217, in _get_default_tempdir
    ("No usable temporary directory found in %s" % dirlist))
    IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', ' /usr/tmp', '/etc/cyberpanel']



    [05-15-50-Wed-Sep-2019] ######################################################## #################

    [05-15-50-Wed-Sep-2019] Unable to install DJANGO, trying again, try number: 2

    [05-15-50-Wed-Sep-2019] ######################################################## #################

    Exception:
    Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
    File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 307, in run
    delete=build_delete) as build_dir:
    File "/usr/lib/python2.7/dist-packages/pip/utils/build.py", line 22, in __init __
    name = os.path.realpath(tempfile.mkdtemp(prefix="pip-build-"))
    File "/usr/lib/python2.7/tempfile.py", line 331, in mkdtemp
    dir = gettempdir()
    File "/usr/lib/python2.7/tempfile.py", line 275, in gettempdir
    tempdir = _get_default_tempdir()
    File "/usr/lib/python2.7/tempfile.py", line 217, in _get_default_tempdir
    ("No usable temporary directory found in %s" % dirlist))
    IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', ' /usr/tmp', '/etc/cyberpanel']



    [05-15-51-Wed-Sep-2019] ######################################################## #################

    [05-15-51-Wed-Sep-2019] Unable to install DJANGO, trying again, try number: 3

    [05-15-51-Wed-Sep-2019] ######################################################## #################




    [05-15-51-Wed-Sep-2019] ######################################################## #################

    [05-15-51-Wed-Sep-2019] Installation failed, consult: /var/log/installLogs.txt

    [05-15-51-Wed-Sep-2019] ######################################################## #################


    Something went wrong...
    root@ubuntu-s-1vcpu-1gb-blr1-01:~# systemctl status gunicorn.socket
    Unit gunicorn.socket could not be found.
    root@ubuntu-s-1vcpu-1gb-blr1-01:~# systemctl status gunicorn.socket
    Unit gunicorn.socket could not be found.
    root@ubuntu-s-1vcpu-1gb-blr1-01:~# systemctl start gunicorn.socket
    Failed to start gunicorn.socket: Unit gunicorn.socket not found.
    root@ubuntu-s-1vcpu-1gb-blr1-01:~# systemctl start gunicorn.socket
    Failed to start gunicorn.socket: Unit gunicorn.socket not found.
    root@ubuntu-s-1vcpu-1gb-blr1-01:~# ^C
    root@ubuntu-s-1vcpu-1gb-blr1-01:~# ^C
    root@ubuntu-s-1vcpu-1gb-blr1-01:~#
  • what happens if you do pip install django ?
  • getting this

    root@ubuntu-s-1vcpu-1gb-blr1-01:~# pip install django
    Exception:
    Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
    File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 307, in run
    delete=build_delete) as build_dir:
    File "/usr/lib/python2.7/dist-packages/pip/utils/build.py", line 22, in __init__
    name = os.path.realpath(tempfile.mkdtemp(prefix="pip-build-"))
    File "/usr/lib/python2.7/tempfile.py", line 331, in mkdtemp
    dir = gettempdir()
    File "/usr/lib/python2.7/tempfile.py", line 275, in gettempdir
    tempdir = _get_default_tempdir()
    File "/usr/lib/python2.7/tempfile.py", line 217, in _get_default_tempdir
    ("No usable temporary directory found in %s" % dirlist))
    IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/root']
    root@ubuntu-s-1vcpu-1gb-blr1-01:~#
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!