question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

deid identifiers --action all fails with NoneType object has no attribute get_actions

See original GitHub issue

I have pulled the current master branch and tried the following:

(deid) ➜  deid git:(master) ✗ cd examples/dicom 
(deid) ➜  dicom git:(master) ✗ python deid-dicom-example.py 
Found 1 valid dicom files
Found 1 valid dicom files
Found 1 valid dicom files
Found 1 valid dicom files
Found 1 valid dicom files
Found 1 valid dicom files
Found 1 valid dicom files
WARNING No specification, loading default base deid.dicom
WARNING No specification, loading default base deid.dicom
WARNING No specification, loading default base deid.dicom
Traceback (most recent call last):
  File "deid-dicom-example.py", line 214, in <module>
    output_folder='/home/vanessa/Desktop')
  File "/home/peter/code/deid/deid/dicom/header.py", line 272, in replace_identifiers
    for action in deid.get_actions():
AttributeError: 'NoneType' object has no attribute 'get_actions'

Some information about my environment:

(deid) ➜  dicom git:(master) ✗ python --version
Python 3.6.2
(deid) ➜  dicom git:(master) ✗ pip list
certifi (2018.4.16)
chardet (3.0.4)
cycler (0.10.0)
deid (0.1.13, /home/peter/code/deid)
idna (2.6)
kiwisolver (1.0.1)
matplotlib (2.2.2)
numpy (1.14.3)
pip (9.0.1)
pydicom (1.0.2)
Pygments (2.2.0)
pyparsing (2.2.0)
python-dateutil (2.7.3)
pytz (2018.4)
requests (2.18.4)
retrying (1.3.3)
setuptools (28.8.0)
simplejson (3.15.0)
six (1.11.0)
urllib3 (1.22)
validator.py (1.2.5)

Any ideas what might be wrong?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
vsochcommented, May 21, 2018

Awesome! Just merged 😃 Let me know if you have any more issues, I’ll close the issue if you are resolved (reopen if needed!)

0reactions
petkazecommented, May 21, 2018

I finally got it working after looking at the code. Made a PR with some small corrections: https://github.com/pydicom/deid/pull/55

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do I get AttributeError: 'NoneType' object has no attribute ...
None is a Null variable in python. This type of error is occure de to your code is something like this. x1 =...
Read more >
AttributeError: 'NoneType' object has no attribute ... - GitHub
I am facing the same issue while training my YOLOV5 model. Exception ignored in: <function StorageWeakRef.__del__ at 0x00000248E64DF700> ...
Read more >
qgis plugin: 'NoneType' object has no attribute 'attributeList'
The initGui() function is executed before your run() function which defines the actual dockwidget. Instead, you could place ...
Read more >
AttributeError: 'NoneType' object has no attribute 'call' on ...
Hello, I'm at a loss to explain why this flow fails and succeeds at the same time… It only consists in triggering a...
Read more >
AttributeError: 'NoneType' object has no attribute '_name' | Odoo
Hello,. I am a French student. I want test mymod, for workflow. But I have this error : AttributeError: 'NoneType' object has no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found