Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

IsADirectoryError: [Errno 21] Is a directory: '/' #206

Closed
5 tasks
lamby opened this issue Nov 2, 2017 · 0 comments
Closed
5 tasks

IsADirectoryError: [Errno 21] Is a directory: '/' #206

lamby opened this issue Nov 2, 2017 · 0 comments

Comments

@lamby
Copy link
Contributor

lamby commented Nov 2, 2017

interface_1      |   File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
interface_1      |     return view_func(*args, **kwargs)
interface_1      |   File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py", line 68, in view
interface_1      |     return self.dispatch(request, *args, **kwargs)
interface_1      |   File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 489, in dispatch
interface_1      |     response = self.handle_exception(exc)
interface_1      |   File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 449, in handle_exception
interface_1      |     self.raise_uncaught_exception(exc)
interface_1      |   File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 486, in dispatch
interface_1      |     response = handler(request, *args, **kwargs)
interface_1      |   File "/app/backend/api/views.py", line 58, in get
interface_1      |     ds = dicom.read_file(path, force=True)
interface_1      |   File "/usr/local/lib/python3.6/site-packages/dicom/filereader.py", line 589, in read_file
interface_1      |     fp = open(fp, 'rb')
interface_1      | IsADirectoryError: [Errno 21] Is a directory: '/'

Steps to Reproduce

  1. http://localhost:8080/#/
  2. See traceback in console

Checklist before submitting

  • I have confirmed this using the officially supported Docker Compose setup using the local.yml configuration and ensured that I built the containers again and they reflect the most recent version of the project at the HEAD commit on the master branch
  • I have searched through the other currently open issues and am confident this is not a duplicate of an existing bug
  • I provided a minimal code snippet or list of steps that reproduces the bug.
  • I provided screenshots where appropriate
  • I filled out all the relevant sections of this template
@lamby lamby added this to the 2-feature-building milestone Nov 2, 2017
@lamby lamby added the official label Nov 2, 2017
musale added a commit to musale/concept-to-clinic that referenced this issue Nov 14, 2017
The endpoint is called everytime the front end loads. Since the dicom.readfile method is an IO op, I do a try/catch and return an 'empty' response back so that the error is handled on the server-side safely, presenting the client side an opportunity to handle the same
musale added a commit to musale/concept-to-clinic that referenced this issue Nov 14, 2017
The endpoint is called everytime the front end loads. Since the dicom.readfile method is an IO op, I do a try/catch and return an 'empty' response back so that the error is handled on the server-side safely, presenting the client side an opportunity to handle the same
musale added a commit to musale/concept-to-clinic that referenced this issue Nov 16, 2017
Also, this fixes warning on .vue files with v-for and lacking :key declarations, it fixes hot-reloading of the vue app
@lamby lamby closed this as completed in 54ce001 Nov 17, 2017
Serhiy-Shekhovtsov pushed a commit to Serhiy-Shekhovtsov/concept-to-clinic that referenced this issue Nov 18, 2017
…g#206)

Also, this fixes warning on .vue files with v-for and lacking :key declarations, it fixes hot-reloading of the vue app
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant