traitlets icon indicating copy to clipboard operation
traitlets copied to clipboard

BUG: potential attribute error

Open aburrell opened this issue 3 years ago • 4 comments

I encountered this after upgrading ipython. An AttributeError in traitlets has stopped ipython from opening. I am not quite sure what's going on in the code after a brief peak, so thought I would bring it to your attention.

File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/traitlets/config/loader.py", line 933, in __call__
    namespace._flags.append(self.flag)
AttributeError: 'Namespace' object has no attribute '_flags'

I am running OS X Mojave, python 3.9.8, and traitlets version 5.1.0. Please let me know if I can provide any more information or perform any tests that may be useful.

aburrell avatar Nov 09 '21 18:11 aburrell

I'm having the same error. It started after upgrading Python from 3.9.7 to 3.9.8

ktowen avatar Nov 17 '21 19:11 ktowen

Same issue. OS X Big Sur, launching notebooks inside VSCode on python 3.9.8 seems broken

mocurin avatar Nov 17 '21 22:11 mocurin

Did anyone have any luck with fixing this bug? I have the same problem.

Edit: This seems to be fixed in trailtlets version 5.1.1

pip install --upgrade traitlets

pmadhikar avatar Nov 18 '21 14:11 pmadhikar

@Carreau it looks like Jupyter should bump the minimum version of traitlets it depends on (assuming the upgrade does in fact fix this).

rmorshea avatar Nov 18 '21 21:11 rmorshea