[Openstack] problem in installing django-swiftbrowser

pragya jain prag_2648 at yahoo.co.in
Tue Feb 25 08:14:35 UTC 2014


Hi Lysander,

When I run sudo python setup.py install under django-swiftbrowser:
root at pragya-VirtualBox:~/django-swiftbrowser# sudo python setup.py install

I get the following error:
http://paste.openstack.org/show/68941/

Pragya Jain



On Tuesday, 25 February 2014 11:55 AM, Lysander David <Lysander_David at symantec.com> wrote:
 
This line indicates you ran 
>
>
>Python runtests.py 
>
>
>Under Django-1.6.2
>
>
>5. root at pragya-VirtualBox:~/Django-1.6.2# python runtests.py
>
>
>This link indicates you should run that command  here:
>
>
>django-swiftbrowser
>Why do you believe you should run that command underDjango-1.6.2
>
>
>?
>
>
>Thanks,
>Lysander
>
>
>
>
>From:  pragya jain <prag_2648 at yahoo.co.in>
>Reply-To:  pragya jain <prag_2648 at yahoo.co.in>
>Date:  Monday, February 24, 2014 8:02 PM
>To:  Lysander David <Lysander_David at symantec.com>, "openstack at lists.openstack.org" <openstack at lists.openstack.org>
>Subject:  Re: [Openstack] problem in installing django-swiftbrowser
>
>
>
>my only aim is to find a GUI for operating swift functionalities
>
>
>For this purpose, I want to install and run django swiftbrowser
>
>
>I am following the steps mentioned  at its github link https://github.com/cschwede/django-swiftbrowser
>
>
>Thanks
>
>
>Pragya jain
>
>
>
>On Tuesday, 25 February 2014 1:25 AM, Lysander David <Lysander_David at symantec.com> wrote:
>
>Why do you believe you have to run
>>
>>
>>python runtests.py
>>
>>
>>?
>>
>>
>>Thanks,
>>Lysander
>>
>>
>>From: pragya jain <prag_2648 at yahoo.co.in>
>>Reply-To: pragya jain <prag_2648 at yahoo.co.in>
>>Date: Sunday, February 23, 2014 9:49 PM
>>To: Lysander David <Lysander_David at symantec.com>, "openstack at lists.openstack.org" <openstack at lists.openstack.org>
>>Subject: Re: [Openstack] problem in installing django-swiftbrowser
>>
>>
>>
>>hi Lysander David,
>>
>>
>>thanks for the reply.
>>
>>
>>I follow following steps:
>>
>>
>>1. 
>>root at pragya-VirtualBox:~# wget https://pypi.python.org/packages/source/D/Django/Django-1.6.2.tar.gz#md5=45d974c623b3bfbf9976f3d808fe1ee9 -O Django-1.6.2.tar.gz 
>>
>>
>>
>>2. 
>>root at pragya-VirtualBox:~# tar zxvf Django-1.6.2.tar.gz
>>3. 
>>root at pragya-VirtualBox:~# cd Django-1.6.2
>>
>>
>>4. 
>>root at pragya-VirtualBox:~/Django-1.6.2# sudo python ./setup.py install
>>5. root at pragya-VirtualBox:~/Django-1.6.2# python runtests.py
>>
>>and get the following error:
>>
>>
>>ERROR 1:
>>python: can't open file 'runtests.py': [Errno 2] No such file or directory
>>
>>
>>
>>
>>On Wednesday, 19 February 2014 12:06 PM, Lysander David <Lysander_David at symantec.com> wrote:
>>
>>Please install django.
>>>
>>>
>>>wget https://pypi.python.org/packages/source/D/Django/Django-1.6.2.tar.gz#md5=45d974c623b3bfbf9976f3d808fe1ee9 -O Django-1.6.2.tar.gz
>>>tar zxvf Django-1.6.2.tar.gz
>>>cd Django-1.6.2
>>>sudo python ./setup.py install
>>>
>>>
>>>From: pragya jain <prag_2648 at yahoo.co.in>
>>>Reply-To: pragya jain <prag_2648 at yahoo.co.in>
>>>Date: Tuesday, February 18, 2014 9:48 PM
>>>To: "openstack at lists.openstack.org" <openstack at lists.openstack.org>, Lysander David <Lysander_David at symantec.com>
>>>Subject: Re: [Openstack] problem in installing django-swiftbrowser
>>>
>>>
>>>
>>>thanks Lysander David for the reply. 
>>>
>>>I again have some problem.
>>>
>>>I follow the following steps:
>>>1.  root at pragya-VirtualBox:~# git clone git://github.com/cschwede/django-swiftbrowser.git
>>>
>>>
>>>
>>>2.  root at pragya-VirtualBox:~# cd django-swiftbrowser
>>>
>>>3. 
>>>root at pragya-VirtualBox:~/django-swiftbrowser# wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-2.2.tar.gz#md5=04a7664538957b832710653fd7d5b4e6 -O setuptools-2.2.tar.gz 
>>>
>>>4.  
>>>root at pragya-VirtualBox:~/django-swiftbrowser# tar zxvf setuptools-2.2.tar.gz 
>>>5. 
>>>root at pragya-VirtualBox:~/django-swiftbrowser# cd setuptools-2.2
>>>
>>>
>>>6.  
>>>root at pragya-VirtualBox:~/django-swiftbrowser/setuptools-2.2# sudo python ./setup.py install 
>>>7.  
>>>root at pragya-VirtualBox:~/django-swiftbrowser# python runtests.py 
>>>
>>>
>>>and I got the following error :
>>>
>>>
>>>Traceback (most recent call last): 
>>>File "runtests.py", line 2, in <module> 
>>>from django.conf import settings 
>>>ImportError: No module named django.conf 
>>>
>>>
Please help to resolve it.
>>>
>>>Thanks again 
>>>
>>>pragya Jain
>>>
>>>
>>>
>>>
>>>
>>>
>>>On , pragya jain <prag_2648 at yahoo.co.in> wrote:
>>>
>>>
>>>>
>>>>
>>>>On Monday, 17 February 2014 11:39 AM, Lysander David <Lysander_David at symantec.com> wrote:
>>>>
>>>>Please consider installing the setuptools module.
>>>>>
>>>>>
>>>>>The latest archive can be found here:
>>>>>
>>>>>
>>>>>https://pypi.python.org/packages/source/s/setuptools/setuptools-2.2.tar.gz#md5=04a7664538957b832710653fd7d5b4e6
>>>>>
>>>>>
>>>>>You can install it with these commands:
>>>>>
>>>>>
>>>>>wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-2.2.tar.gz#md5=04a7664538957b832710653fd7d5b4e6 -O setuptools-2.2.tar.gz
>>>>>tar zxvf setuptools-2.2.tar.gz
>>>>>cd setuptools-2.2
>>>>>sudo python ./setup.py install
>>>>>
>>>>>
>>>>>From: pragya jain <prag_2648 at yahoo.co.in>
>>>>>Reply-To: pragya jain <prag_2648 at yahoo.co.in>
>>>>>Date: Sunday, February 16, 2014 9:55 PM
>>>>>To: pragya jain <prag_2648 at yahoo.co.in>, "openstack at lists.openstack.org" <openstack at lists.openstack.org>
>>>>>Subject: Re: [Openstack] problem in installing django-swiftbrowser
>>>>>
>>>>>
>>>>>
>>>>>please someody reply
>>>>>
>>>>>
>>>>>
>>>>>On Friday, 14 February 2014 2:20 PM, pragya jain <prag_2648 at yahoo.co.in> wrote:
>>>>>
>>>>>hello all,
>>>>>>
>>>>>>
>>>>>>I am installing django-swiftbrowser on a ubuntu desktop VM onmy system using the link https://github.com/cschwede/django-swiftbrowser
>>>>>>
>>>>>>
>>>>>>below are the steps which i follow:
>>>>>>-----------------
>>>>>>1. root at pragya-VirtualBox:~# git clone git://github.com/cschwede/django-swiftbrowser.git
>>>>>>
>>>>>>
>>>>>>
>>>>>>Cloning into 'django-swiftbrowser'...
>>>>>>remote: Reusing existing pack: 145, done.
>>>>>>remote: Total 145 (delta 0), reused 0 (delta 0)
>>>>>>Receiving objects: 100% (145/145), 261.34 KiB | 89 KiB/s, done.
>>>>>>Resolving deltas: 100% (72/72), done.
>>>>>>
>>>>>>
>>>>>>2. root at pragya-VirtualBox:~# cd django-swiftbrowser
>>>>>>
>>>>>>
>>>>>>
>>>>>>3. root at pragya-VirtualBox:~/django-swiftbrowser# sudo python setup.py install
>>>>>>Traceback (most recent call last):
>>>>>>  File "setup.py", line 2, in <module>
>>>>>>    from setuptools import setup
>>>>>>ImportError: No module named setuptools
>>>>>>------------
>>>>>>
>>>>>>
>>>>>>But I get the error.
>>>>>>Please help inresolving the error.
>>>>>>
>>>>>>
>>>>>>Thanks in advance 
>>>>>>
>>>>>>Pragya Jain
>>>>>>
>>>>>>_______________________________________________
>>>>>>Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>>>>Post to    : openstack at lists.openstack.org
>>>>>>Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>6. root at pragya-VirtualBox:~/Django-1.6.2# django-admin.py startproject myproj
>>
>>
>>7. root at pragya-VirtualBox:~/Django-1.6.2# cd myproj
>>
>>8. root at pragya-VirtualBox:~/Django-1.6.2/myproj# cp ~/django-swiftbrowser/example/settings.py myproj/settings.py
>>
>>9. root at pragya-VirtualBox:~/Django-1.6.2/myproj# pico myproj/urls.py
>>-------
>>from django.conf.urls import patterns, include, url
>>
>>from django.contrib import admin
>>admin.autodiscover()
>>
>>#urlpatterns = patterns('',
>>    # Examples:
>>    # url(r'^$', 'myproj.views.home', name='home'),
>>    # url(r'^blog/', include('blog.urls')),
>>
>> #   url(r'^admin/', include(admin.site.urls)),
>>#)
>>import swiftbrowser.urls
>>
>>urlpatterns = patterns('',
>>    url(r'^', include(swiftbrowser.urls)),
>>)
>>--------------
>>
>>10. root at pragya-VirtualBox:~/Django-1.6.2/myproj# python manage.py collectstatic
>>
>>ERROR 2:
>>
>>Traceback (most recent call last):
>>  File "manage.py", line 10, in <module>
>>    execute_from_command_line(sys.argv)
>>  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
>>    utility.execute()
>>  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
>>    self.fetch_command(subcommand).run_from_argv(self.argv)
>>  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
>>    self.execute(*args, **options.__dict__)
>>  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 280, in execute
>>    translation.activate('en-us')
>>  File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py", line 130, in activate
>>    return _trans.activate(language)
>>  File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 188, in activate
>>    _active.value = translation(language)
>>  File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 177, in translation
>>    default_translation = _fetch(settings.LANGUAGE_CODE)
>>  File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 159, in _fetch
>>    app = import_module(appname)
>>  File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module
>>    __import__(name)
>>ImportError: No module named swiftbrowser
>>
>>----------
>>
>>I am using the link https://github.com/cschwede/django-swiftbrowser
>>
>>please help me to resolve these two errors.
>>
>>Pragya Jain
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140225/0ef766f5/attachment.html>


More information about the Openstack mailing list