Skip to content

Instantly share code, notes, and snippets.

@JoaoVagner
Created January 15, 2019 19:36
Show Gist options
  • Save JoaoVagner/f3f21482a8806e8b514c789d72522655 to your computer and use it in GitHub Desktop.
Save JoaoVagner/f3f21482a8806e8b514c789d72522655 to your computer and use it in GitHub Desktop.
images path: [ '/application/uploads/imagesToConvert/pacs-1547580709349.jpeg',
'/application/uploads/imagesToConvert/geladeira-1547580709584.png',
'/application/uploads/imagesToConvert/comgas-1547580709722.png',
'/application/uploads/imagesToConvert/cha-bebe-1547580709871.jpg' ]
image: /application/uploads/imagesToConvert/pacs-1547580709349.jpeg outputDicomPath: /application/uploads/imagesToConvert/pacs-1547580709349.jpeg_1547580709900.dcm
image: /application/uploads/imagesToConvert/geladeira-1547580709584.png outputDicomPath: /application/uploads/imagesToConvert/geladeira-1547580709584.png_1547580709908.dcm
image: /application/uploads/imagesToConvert/comgas-1547580709722.png outputDicomPath: /application/uploads/imagesToConvert/comgas-1547580709722.png_1547580709912.dcm
image: /application/uploads/imagesToConvert/cha-bebe-1547580709871.jpg outputDicomPath: /application/uploads/imagesToConvert/cha-bebe-1547580709871.jpg_1547580709918.dcm
19:31:50 - error: Python script error message: message=/usr/local/lib/python2.7/dist-packages/dicom/__init__.py:53: UserWarning:
This code is using an older version of pydicom, which is no longer
maintained as of Jan 2017. You can access the new pydicom features and API
by installing `pydicom` from PyPI.
See 'Transitioning to pydicom 1.x' section at pydicom.readthedocs.org
for more information.
warnings.warn(msg)
, stack=Error: /usr/local/lib/python2.7/dist-packages/dicom/__init__.py:53: UserWarning:
This code is using an older version of pydicom, which is no longer
maintained as of Jan 2017. You can access the new pydicom features and API
by installing `pydicom` from PyPI.
See 'Transitioning to pydicom 1.x' section at pydicom.readthedocs.org
for more information.
warnings.warn(msg)
at PythonShell.parseError (/application/node_modules/python-shell/index.js:190:17)
at terminateIfNeeded (/application/node_modules/python-shell/index.js:98:28)
at ChildProcess.<anonymous> (/application/node_modules/python-shell/index.js:88:9)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12), executable=python, options=null, script=/application/node_modules/nuvem-core/kitchen/convertJPGtoDICOM.py, args=[2019/1/15, 193149, CT, Joao Teste, asdasdads, 1547580709895, 20121212, M, 1547580709891, asdadsdasdas, 6 ano(s), 1 mes(es) e 3 dia(s), asdadsdasads, asdasd, asdasdads, CRÂNIO, /application/uploads/imagesToConvert/pacs-1547580709349.jpeg, CRÂNIO, 2133221312, 0, /application/uploads/imagesToConvert/pacs-1547580709349.jpeg_1547580709900.dcm], exitCode=0
19:31:50 - error: message=ENOENT: no such file or directory, open '/application/uploads/imagesToConvert/pacs-1547580709349.jpeg_1547580709900.dcm', stack=Error: ENOENT: no such file or directory, open '/application/uploads/imagesToConvert/pacs-1547580709349.jpeg_1547580709900.dcm'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at PythonShell.run (/application/node_modules/nuvem-core/helpers/uploadToOrthancHelper.js:62:34)
at PythonShell._endCallback (/application/node_modules/python-shell/index.js:165:25)
at terminateIfNeeded (/application/node_modules/python-shell/index.js:116:35)
at ChildProcess.<anonymous> (/application/node_modules/python-shell/index.js:88:9)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12), errno=-2, code=ENOENT, syscall=open, path=/application/uploads/imagesToConvert/pacs-1547580709349.jpeg_1547580709900.dcm
(node:39) UnhandledPromiseRejectionWarning: ReferenceError: reject is not defined
at PythonShell.run (/application/node_modules/nuvem-core/helpers/uploadToOrthancHelper.js:66:11)
at PythonShell._endCallback (/application/node_modules/python-shell/index.js:165:25)
at terminateIfNeeded (/application/node_modules/python-shell/index.js:116:35)
at ChildProcess.<anonymous> (/application/node_modules/python-shell/index.js:88:9)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
(node:39) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 461)
19:31:50 - error: Python script error message: message=/usr/local/lib/python2.7/dist-packages/dicom/__init__.py:53: UserWarning:
This code is using an older version of pydicom, which is no longer
maintained as of Jan 2017. You can access the new pydicom features and API
by installing `pydicom` from PyPI.
See 'Transitioning to pydicom 1.x' section at pydicom.readthedocs.org
for more information.
warnings.warn(msg)
, stack=Error: /usr/local/lib/python2.7/dist-packages/dicom/__init__.py:53: UserWarning:
This code is using an older version of pydicom, which is no longer
maintained as of Jan 2017. You can access the new pydicom features and API
by installing `pydicom` from PyPI.
See 'Transitioning to pydicom 1.x' section at pydicom.readthedocs.org
for more information.
warnings.warn(msg)
at PythonShell.parseError (/application/node_modules/python-shell/index.js:190:17)
at terminateIfNeeded (/application/node_modules/python-shell/index.js:98:28)
at ChildProcess.<anonymous> (/application/node_modules/python-shell/index.js:88:9)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12), executable=python, options=null, script=/application/node_modules/nuvem-core/kitchen/convertJPGtoDICOM.py, args=[2019/1/15, 193149, CT, Joao Teste, asdasdads, 1547580709895, 20121212, M, 1547580709891, asdadsdasdas, 6 ano(s), 1 mes(es) e 3 dia(s), asdadsdasads, asdasd, asdasdads, CRÂNIO, /application/uploads/imagesToConvert/geladeira-1547580709584.png, CRÂNIO, 2133221312, 1, /application/uploads/imagesToConvert/geladeira-1547580709584.png_1547580709908.dcm], exitCode=0
19:31:50 - error: message=ENOENT: no such file or directory, open '/application/uploads/imagesToConvert/geladeira-1547580709584.png_1547580709908.dcm', stack=Error: ENOENT: no such file or directory, open '/application/uploads/imagesToConvert/geladeira-1547580709584.png_1547580709908.dcm'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at PythonShell.run (/application/node_modules/nuvem-core/helpers/uploadToOrthancHelper.js:62:34)
at PythonShell._endCallback (/application/node_modules/python-shell/index.js:165:25)
at terminateIfNeeded (/application/node_modules/python-shell/index.js:116:35)
at ChildProcess.<anonymous> (/application/node_modules/python-shell/index.js:88:9)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12), errno=-2, code=ENOENT, syscall=open, path=/application/uploads/imagesToConvert/geladeira-1547580709584.png_1547580709908.dcm
(node:39) UnhandledPromiseRejectionWarning: ReferenceError: reject is not defined
at PythonShell.run (/application/node_modules/nuvem-core/helpers/uploadToOrthancHelper.js:66:11)
at PythonShell._endCallback (/application/node_modules/python-shell/index.js:165:25)
at terminateIfNeeded (/application/node_modules/python-shell/index.js:116:35)
at ChildProcess.<anonymous> (/application/node_modules/python-shell/index.js:88:9)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
(node:39) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 462)
19:31:50 - error: Python script error message: message=/usr/local/lib/python2.7/dist-packages/dicom/__init__.py:53: UserWarning:
This code is using an older version of pydicom, which is no longer
maintained as of Jan 2017. You can access the new pydicom features and API
by installing `pydicom` from PyPI.
See 'Transitioning to pydicom 1.x' section at pydicom.readthedocs.org
for more information.
warnings.warn(msg)
, stack=Error: /usr/local/lib/python2.7/dist-packages/dicom/__init__.py:53: UserWarning:
This code is using an older version of pydicom, which is no longer
maintained as of Jan 2017. You can access the new pydicom features and API
by installing `pydicom` from PyPI.
See 'Transitioning to pydicom 1.x' section at pydicom.readthedocs.org
for more information.
warnings.warn(msg)
at PythonShell.parseError (/application/node_modules/python-shell/index.js:190:17)
at terminateIfNeeded (/application/node_modules/python-shell/index.js:98:28)
at ChildProcess.<anonymous> (/application/node_modules/python-shell/index.js:88:9)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12), executable=python, options=null, script=/application/node_modules/nuvem-core/kitchen/convertJPGtoDICOM.py, args=[2019/1/15, 193149, CT, Joao Teste, asdasdads, 1547580709895, 20121212, M, 1547580709891, asdadsdasdas, 6 ano(s), 1 mes(es) e 3 dia(s), asdadsdasads, asdasd, asdasdads, CRÂNIO, /application/uploads/imagesToConvert/comgas-1547580709722.png, CRÂNIO, 2133221312, 2, /application/uploads/imagesToConvert/comgas-1547580709722.png_1547580709912.dcm], exitCode=0
19:31:50 - error: message=ENOENT: no such file or directory, open '/application/uploads/imagesToConvert/comgas-1547580709722.png_1547580709912.dcm', stack=Error: ENOENT: no such file or directory, open '/application/uploads/imagesToConvert/comgas-1547580709722.png_1547580709912.dcm'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at PythonShell.run (/application/node_modules/nuvem-core/helpers/uploadToOrthancHelper.js:62:34)
at PythonShell._endCallback (/application/node_modules/python-shell/index.js:165:25)
at terminateIfNeeded (/application/node_modules/python-shell/index.js:116:35)
at ChildProcess.<anonymous> (/application/node_modules/python-shell/index.js:88:9)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12), errno=-2, code=ENOENT, syscall=open, path=/application/uploads/imagesToConvert/comgas-1547580709722.png_1547580709912.dcm
(node:39) UnhandledPromiseRejectionWarning: ReferenceError: reject is not defined
at PythonShell.run (/application/node_modules/nuvem-core/helpers/uploadToOrthancHelper.js:66:11)
at PythonShell._endCallback (/application/node_modules/python-shell/index.js:165:25)
at terminateIfNeeded (/application/node_modules/python-shell/index.js:116:35)
at ChildProcess.<anonymous> (/application/node_modules/python-shell/index.js:88:9)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
(node:39) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 463)
19:31:50 - error: Python script error message: message=/usr/local/lib/python2.7/dist-packages/dicom/__init__.py:53: UserWarning:
This code is using an older version of pydicom, which is no longer
maintained as of Jan 2017. You can access the new pydicom features and API
by installing `pydicom` from PyPI.
See 'Transitioning to pydicom 1.x' section at pydicom.readthedocs.org
for more information.
warnings.warn(msg)
, stack=Error: /usr/local/lib/python2.7/dist-packages/dicom/__init__.py:53: UserWarning:
This code is using an older version of pydicom, which is no longer
maintained as of Jan 2017. You can access the new pydicom features and API
by installing `pydicom` from PyPI.
See 'Transitioning to pydicom 1.x' section at pydicom.readthedocs.org
for more information.
warnings.warn(msg)
at PythonShell.parseError (/application/node_modules/python-shell/index.js:190:17)
at terminateIfNeeded (/application/node_modules/python-shell/index.js:98:28)
at ChildProcess.<anonymous> (/application/node_modules/python-shell/index.js:88:9)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12), executable=python, options=null, script=/application/node_modules/nuvem-core/kitchen/convertJPGtoDICOM.py, args=[2019/1/15, 193149, CT, Joao Teste, asdasdads, 1547580709895, 20121212, M, 1547580709891, asdadsdasdas, 6 ano(s), 1 mes(es) e 3 dia(s), asdadsdasads, asdasd, asdasdads, CRÂNIO, /application/uploads/imagesToConvert/cha-bebe-1547580709871.jpg, CRÂNIO, 2133221312, 3, /application/uploads/imagesToConvert/cha-bebe-1547580709871.jpg_1547580709918.dcm], exitCode=0
19:31:50 - error: message=ENOENT: no such file or directory, open '/application/uploads/imagesToConvert/cha-bebe-1547580709871.jpg_1547580709918.dcm', stack=Error: ENOENT: no such file or directory, open '/application/uploads/imagesToConvert/cha-bebe-1547580709871.jpg_1547580709918.dcm'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at PythonShell.run (/application/node_modules/nuvem-core/helpers/uploadToOrthancHelper.js:62:34)
at PythonShell._endCallback (/application/node_modules/python-shell/index.js:165:25)
at terminateIfNeeded (/application/node_modules/python-shell/index.js:116:35)
at ChildProcess.<anonymous> (/application/node_modules/python-shell/index.js:88:9)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12), errno=-2, code=ENOENT, syscall=open, path=/application/uploads/imagesToConvert/cha-bebe-1547580709871.jpg_1547580709918.dcm
(node:39) UnhandledPromiseRejectionWarning: ReferenceError: reject is not defined
at PythonShell.run (/application/node_modules/nuvem-core/helpers/uploadToOrthancHelper.js:66:11)
at PythonShell._endCallback (/application/node_modules/python-shell/index.js:165:25)
at terminateIfNeeded (/application/node_modules/python-shell/index.js:116:35)
at ChildProcess.<anonymous> (/application/node_modules/python-shell/index.js:88:9)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
(node:39) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 464)
[2019-01-15T19:32:05.954Z] GET / 401 0.356 ms - -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment