[GH-ISSUE #161] After installing the latest new problems #109

Closed
opened 2026-02-27 15:57:22 +03:00 by kerem · 7 comments
Owner

Originally created by @ssbaksa on GitHub (Jul 6, 2018).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/161

I hate to be the one to bring "bad news" but ...

  1. There is missing lxml package in pip install requirements.
  2. When I have added lxml new error was shown:

Environment:

Request Method: GET
Request URL: http://172.17.252.166:80/

Django Version: 1.8.11
Python Version: 2.7.12
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'computes',
'console',
'networks',
'storages',
'interfaces',
'instances',
'secrets',
'logs',
'accounts',
'create',
'datasource')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.RemoteUserMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')

Traceback:
File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
119. resolver_match = resolver.resolve(request.path_info)
File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve
365. for pattern in self.url_patterns:
File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in url_patterns
401. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in urlconf_module
395. self._urlconf_module = import_module(self.urlconf_name)
File "/usr/lib/python2.7/importlib/init.py" in import_module
37. import(name)
File "/srv/webvirtcloud/webvirtcloud/urls.py" in
17. url(r'^accounts/', include('accounts.urls')),
File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/conf/urls/init.py" in include
33. urlconf_module = import_module(urlconf_module)
File "/usr/lib/python2.7/importlib/init.py" in import_module
37. import(name)
File "/srv/webvirtcloud/accounts/urls.py" in
7. url(r'^login/$', auth_views.LoginView.as_view(template_name='login.html'), name='login'),

Exception Type: AttributeError at /
Exception Value: 'module' object has no attribute 'LoginView'

Originally created by @ssbaksa on GitHub (Jul 6, 2018). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/161 I hate to be the one to bring "bad news" but ... 1. There is missing lxml package in pip install requirements. 2. When I have added lxml new error was shown: Environment: Request Method: GET Request URL: http://172.17.252.166:80/ Django Version: 1.8.11 Python Version: 2.7.12 Installed Applications: ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'computes', 'console', 'networks', 'storages', 'interfaces', 'instances', 'secrets', 'logs', 'accounts', 'create', 'datasource') Installed Middleware: ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.RemoteUserMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware') Traceback: File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 119. resolver_match = resolver.resolve(request.path_info) File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve 365. for pattern in self.url_patterns: File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in url_patterns 401. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in urlconf_module 395. self._urlconf_module = import_module(self.urlconf_name) File "/usr/lib/python2.7/importlib/__init__.py" in import_module 37. __import__(name) File "/srv/webvirtcloud/webvirtcloud/urls.py" in <module> 17. url(r'^accounts/', include('accounts.urls')), File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/conf/urls/__init__.py" in include 33. urlconf_module = import_module(urlconf_module) File "/usr/lib/python2.7/importlib/__init__.py" in import_module 37. __import__(name) File "/srv/webvirtcloud/accounts/urls.py" in <module> 7. url(r'^login/$', auth_views.LoginView.as_view(template_name='login.html'), name='login'), Exception Type: AttributeError at / Exception Value: 'module' object has no attribute 'LoginView'
kerem closed this issue 2026-02-27 15:57:22 +03:00
Author
Owner

@lord-kyron commented on GitHub (Jul 6, 2018):

Yes I saw that. Currently working on that.
You can install lxml with:
pip install lxml

Also, the issue that you have is because of the Django version.
Do:
pip install Django=1.11.14

and then:
service supervisor restart

Should be ok after that.

<!-- gh-comment-id:403039046 --> @lord-kyron commented on GitHub (Jul 6, 2018): Yes I saw that. Currently working on that. You can install lxml with: pip install lxml Also, the issue that you have is because of the Django version. Do: pip install Django=1.11.14 and then: service supervisor restart Should be ok after that.
Author
Owner

@ssbaksa commented on GitHub (Jul 6, 2018):

True and I did that but then problem with view arises.
I am not able to found LoginView in django.contrib.auth module so ...

<!-- gh-comment-id:403041335 --> @ssbaksa commented on GitHub (Jul 6, 2018): True and I did that but then problem with view arises. I am not able to found LoginView in django.contrib.auth module so ...
Author
Owner

@lord-kyron commented on GitHub (Jul 6, 2018):

Can you try my build from here:
https://github.com/Bandic007/WebVirtCloud-B7

It should be working with latest fixes

<!-- gh-comment-id:403043604 --> @lord-kyron commented on GitHub (Jul 6, 2018): Can you try my build from here: https://github.com/Bandic007/WebVirtCloud-B7 It should be working with latest fixes
Author
Owner

@ssbaksa commented on GitHub (Jul 7, 2018):

Hi bandic007,

It works now with your repo cloned.

Bandic? HR? ZG? :-)

Lp

Sasa

On Fri, 6 Jul 2018 at 16:02, Bandic007 notifications@github.com wrote:

Can you try my build from here:
https://github.com/Bandic007/WebVirtCloud-B7

It should be working with latest fixes


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/retspen/webvirtcloud/issues/161#issuecomment-403043604,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATCLsAHY8rkyx0Yib0Vs4aEJNXW-YDFYks5uD24CgaJpZM4VFdP8
.

<!-- gh-comment-id:403207390 --> @ssbaksa commented on GitHub (Jul 7, 2018): Hi bandic007, It works now with your repo cloned. Bandic? HR? ZG? :-) Lp Sasa On Fri, 6 Jul 2018 at 16:02, Bandic007 <notifications@github.com> wrote: > Can you try my build from here: > https://github.com/Bandic007/WebVirtCloud-B7 > > It should be working with latest fixes > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/retspen/webvirtcloud/issues/161#issuecomment-403043604>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/ATCLsAHY8rkyx0Yib0Vs4aEJNXW-YDFYks5uD24CgaJpZM4VFdP8> > . >
Author
Owner

@lord-kyron commented on GitHub (Jul 7, 2018):

BG actually, but it comes from Bandicoot - character from an old SEGA video game. Crash Bandicoot

<!-- gh-comment-id:403232957 --> @lord-kyron commented on GitHub (Jul 7, 2018): BG actually, but it comes from Bandicoot - character from an old SEGA video game. Crash Bandicoot
Author
Owner

@lord-kyron commented on GitHub (Jul 7, 2018):

@ssbaksa - actually @retspen merged my changes in his official repo so now the official one is also working with my latest fixes :)

<!-- gh-comment-id:403232990 --> @lord-kyron commented on GitHub (Jul 7, 2018): @ssbaksa - actually @retspen merged my changes in his official repo so now the official one is also working with my latest fixes :)
Author
Owner

@ssbaksa commented on GitHub (Jul 9, 2018):

BG! Great. Bandić iz a surname of HR Capital city mayor so I assumed ... but you know what they say about assumptions.

Thank you for great contributions and quick fixes.
I have one suggestion. When comes to sorting instances and compute nodes by name (by example), it would be better (to me looks more logical) to have sorted in a way that you sort 1. compute then under it sorted instances then 2. compute under it second compute instances etc.

Br

Sasa

<!-- gh-comment-id:403394987 --> @ssbaksa commented on GitHub (Jul 9, 2018): BG! Great. Bandić iz a surname of HR Capital city mayor so I assumed ... but you know what they say about assumptions. Thank you for great contributions and quick fixes. I have one suggestion. When comes to sorting instances and compute nodes by name (by example), it would be better (to me looks more logical) to have sorted in a way that you sort 1. compute then under it sorted instances then 2. compute under it second compute instances etc. Br Sasa
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#109
No description provided.