A server error occurred. Please contact the administrator.

61 views
Skip to first unread message

Leonardo Osti

unread,
Mar 6, 2020, 9:25:45 AM3/6/20
to OpenREM
[06/Mar/2020 15:24:14] "GET / HTTP/1.1" 500 59
Traceback (most recent call last):
  File "C:\Python27\lib\wsgiref\handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "C:\Python27\lib\site-packages\django\core\handlers\wsgi.py", line 189, in __call__
    response = self.get_response(request)
  File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 218, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 264, in handle_uncaught_exception
    if resolver.urlconf_module is None:
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 395, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "C:\Python27\lib\importlib\__init__.py", line 37, in import_module
    __import__(name)
  File "C:\Python27\Lib\site-packages\openrem\openremproject\urls.py", line 10, in <module>
    url(r'^{0}'.format(VIRTUAL_DIRECTORY), include('remapp.urls')),
  File "C:\Python27\lib\site-packages\django\conf\urls\__init__.py", line 33, in include
    urlconf_module = import_module(urlconf_module)
  File "C:\Python27\lib\importlib\__init__.py", line 37, in import_module
    __import__(name)
  File "C:\Python27\Lib\site-packages\openrem\remapp\urls.py", line 33, in <module>
    from remapp.views import DicomStoreCreate, DicomStoreUpdate, DicomStoreDelete
  File "C:\Python27\Lib\site-packages\openrem\remapp\views.py", line 64, in <module>
    from remapp.forms import SizeUploadForm
  File "C:\Python27\Lib\site-packages\openrem\remapp\forms.py", line 34, in <module>
    from crispy_forms.helper import FormHelper
  File "C:\Python27\lib\site-packages\crispy_forms\helper.py", line 3, in <module>
    from django.urls import NoReverseMatch, reverse
ImportError: No module named urls

Could you help me?
It's my first installation; i followed official howto

Ed McDonagh

unread,
Mar 6, 2020, 9:38:26 AM3/6/20
to Leonardo Osti, OpenREM
Hi Leonardo

What was the URL you were using? (http://...)
Which web server are you using - built-in runserver or IIS?
Are you making use of a virtual_directory for your webserver?

Kind regards

Ed

--
You received this message because you are subscribed to the Google Groups "OpenREM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrem+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openrem/2595452e-ddde-42cf-8cb8-7fadf2d903ef%40googlegroups.com.

Leonardo Osti

unread,
Mar 6, 2020, 10:45:09 AM3/6/20
to OpenREM
http://localhost:8000
i'm only testing if openrem installation could work.
I've not made any virtual directory
To unsubscribe from this group and stop receiving emails from it, send an email to ope...@googlegroups.com.

Leonardo Osti

unread,
Mar 6, 2020, 10:46:52 AM3/6/20
to OpenREM
I've the same error on windows 10 (linke in https://www.youtube.com/watch?v=MYhVXVzRsB8)  and ubuntu. I'm probably doing the same error

Ed McDonagh

unread,
Mar 6, 2020, 11:27:58 AM3/6/20
to Leonardo Osti, OpenREM
Have you followed the YouTube instructions then, rather than the instructions at  https://docs.openrem.org/ ?

Those instructions were put together by Daniel Carrion at The Imaging Physicist, independent of the OpenREM team. They are great, but they were done 2.5 years ago for a version that has been superceded a few times since then.

I wonder if you might be able to start again with the official documentation? I don't have the resources just now to check the differences to see where the problem lies; I don't know if anyone else might know? 

Right now I am working on packaging the next version in Docker, so once you have Docker installed the OpenREM install process will be very easy. But for now, for version 0.10 the best bet is to try and follow the official documentation at docs.openrem.org.

Kind regards

Ed


To unsubscribe from this group and stop receiving emails from it, send an email to openrem+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openrem/4689acba-322d-49d5-8905-1cb8fa8bb16a%40googlegroups.com.

margh...@gmail.com

unread,
Mar 24, 2020, 6:04:52 AM3/24/20
to OpenREM
Hi Ed,
I'm installing Openrem 0.10.0 on a pc with ubuntu 18.04. I'm following the online instructions plus the pdf docs. I have the same problem as Leonardo. I tried the istallation two times, but when I test the services (python mane.py runserver --insecure)
 -I'm trying to connect to  http://localhost:8000
- I'm using the internal server (runserver). If I'm right this should be the first step to check, from which to move to NGINX and Gunicorn
- I'm not using a virtual directory for the web server.

Traceback (most recent call last):
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "/var/dose2/veopenrem/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__
    return self.application(environ, start_response)
  File "/var/dose2/veopenrem/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 189, in __call__
    response = self.get_response(request)
  File "/var/dose2/veopenrem/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 218, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/var/dose2/veopenrem/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 264, in handle_uncaught_exception
    if resolver.urlconf_module is None:
  File "/var/dose2/veopenrem/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 395, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/var/dose/veopenrem/lib/python2.7/site-packages/openrem/openremproject/urls.py", line 10, in <module>
    url(r'^{0}'.format(VIRTUAL_DIRECTORY), include('remapp.urls')),
  File "/var/dose2/veopenrem/local/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 33, in include
    urlconf_module = import_module(urlconf_module)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/var/dose/veopenrem/lib/python2.7/site-packages/openrem/remapp/urls.py", line 33, in <module>
    from remapp.views import DicomStoreCreate, DicomStoreUpdate, DicomStoreDelete
  File "/var/dose/veopenrem/lib/python2.7/site-packages/openrem/remapp/views.py", line 64, in <module>
    from remapp.forms import SizeUploadForm
  File "/var/dose/veopenrem/lib/python2.7/site-packages/openrem/remapp/forms.py", line 34, in <module>
    from crispy_forms.helper import FormHelper
  File "/var/dose2/veopenrem/local/lib/python2.7/site-packages/crispy_forms/helper.py", line 3, in <module>
    from django.urls import NoReverseMatch, reverse
ImportError: No module named urls

Thank you very much and best regards,
Margherita

Ed McDonagh

unread,
Mar 24, 2020, 7:19:07 AM3/24/20
to marghe zani, OpenREM
Hi Margherita 

Are you using the https://docs.openrem.org docs?

There is a mix of /var/dose/ and /var/dose2/ paths in your traceback there - why is this?

Kind regards

Ed

--
You received this message because you are subscribed to the Google Groups "OpenREM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrem+u...@googlegroups.com.

margh...@gmail.com

unread,
Mar 26, 2020, 7:26:59 PM3/26/20
to OpenREM
Hi Ed, yes I'm using the docs at that link. 
The reason why there were both /var/dose/ and /var/dose2/ is that I tried the installation twice using first dose and then dose2 folders. Now I deleted the /var/dose/ folder, but the errors are exactly the same (except that now there is only the /var/dose2/ path indicated, as it should be)..

From the terminal:
(veopenrem) openrem@openrem-Celsius-W420:/var/dose2/veopenrem/lib/python2.7/site-packages/openrem$ python manage.py runserver --insecure
Performing system checks...

System check identified no issues (0 silenced).
March 27, 2020 - 00:23:10
Django version 1.8.19, using settings 'openremproject.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.


Now if i go to a web browser at http://127.0.0.1:8000/ I get the error:


Traceback (most recent call last):
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "/var/dose2/veopenrem/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__
    return self.application(environ, start_response)
  File "/var/dose2/veopenrem/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 189, in __call__
    response = self.get_response(request)
  File "/var/dose2/veopenrem/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 218, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/var/dose2/veopenrem/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 264, in handle_uncaught_exception
    if resolver.urlconf_module is None:
  File "/var/dose2/veopenrem/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 395, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/var/dose2/veopenrem/lib/python2.7/site-packages/openrem/openremproject/urls.py", line 10, in <module>

    url(r'^{0}'.format(VIRTUAL_DIRECTORY), include('remapp.urls')),
  File "/var/dose2/veopenrem/local/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 33, in include
    urlconf_module = import_module(urlconf_module)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/var/dose2/veopenrem/lib/python2.7/site-packages/openrem/remapp/urls.py", line 33, in <module>

    from remapp.views import DicomStoreCreate, DicomStoreUpdate, DicomStoreDelete
  File "/var/dose2/veopenrem/lib/python2.7/site-packages/openrem/remapp/views.py", line 64, in <module>
    from remapp.forms import SizeUploadForm
  File "/var/dose2/veopenrem/lib/python2.7/site-packages/openrem/remapp/forms.py", line 34, in <module>

    from crispy_forms.helper import FormHelper
  File "/var/dose2/veopenrem/local/lib/python2.7/site-packages/crispy_forms/helper.py", line 3, in <module>
    from django.urls import NoReverseMatch, reverse
ImportError: No module named urls
27/Mar/2020 00:26:32] "GET /favicon.ico HTTP/1.1" 500 59

I checked online for some help, but I could not find where the error could possibly be.. the istallation went fine without any error.

Ed McDonagh

unread,
Mar 27, 2020, 4:59:57 AM3/27/20
to marghe zani, OpenREM
Hello again. I think the problem is one of the libraries has been updated and doesn't support Python 2.7 anymore. 

Can you please try the following install in your virtenv?

pip install django-crispy-forms==1.8.1

and let me know how you get on.

--
You received this message because you are subscribed to the Google Groups "OpenREM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrem+u...@googlegroups.com.

margh...@gmail.com

unread,
Mar 27, 2020, 6:24:23 PM3/27/20
to OpenREM
Hi Ed, yes it worked! 

I've installed v.1.8.1 (automatically unistalling v. 1.9.0)  and now I have access to the Openrem page.

Thank you very very much, 

Margherita

Ed McDonagh

unread,
Mar 27, 2020, 6:40:00 PM3/27/20
to marghe zani, OpenREM
Thanks for feeding back. I'll update the docs - this is going to be more and more of an issue until version 1 with Python 3 support is released! See https://bitbucket.org/openrem/openrem/issues/825/django-crispy-forms-190-is-python-3-only

Leonardo - this is presumably the issue you hit as well. You might like to try the same fix too.

Kind regards

Ed

--
You received this message because you are subscribed to the Google Groups "OpenREM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrem+u...@googlegroups.com.

stuart...@gmail.com

unread,
Apr 2, 2020, 4:47:57 AM4/2/20
to OpenREM
Hi Ed,

Thanks for this, it worked and fixed a fresh install on Win 10 too.

Looking forward to v1 Python 3!

Kind regards

Stuart

On Friday, 27 March 2020 22:40:00 UTC, Ed McDonagh wrote:
Thanks for feeding back. I'll update the docs - this is going to be more and more of an issue until version 1 with Python 3 support is released! See https://bitbucket.org/openrem/openrem/issues/825/django-crispy-forms-190-is-python-3-only

Leonardo - this is presumably the issue you hit as well. You might like to try the same fix too.

Kind regards

Ed

On Fri, 27 Mar 2020 at 22:24, <margh...@gmail.com> wrote:
Hi Ed, yes it worked! 

I've installed v.1.8.1 (automatically unistalling v. 1.9.0)  and now I have access to the Openrem page.

Thank you very very much, 

Margherita

--
You received this message because you are subscribed to the Google Groups "OpenREM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ope...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages