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.

'PathObject' object has no attribute 'text'

See original GitHub issue

Hello,

I got this error immediately after trying clicking on “new file” or “open file” (on the splash screen or menu bar). Version 1.12 release candidate.

python3 -m nodezator

Traceback (most recent call last):
  File "[...]/nodezator/fileman/dirpanel/main.py", line 351, in update_path_objs_appearance
    try: index = self.selectable_paths.index(
ValueError: None is not in list

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "[...]/nodezator/__main__.py", line 113, in <module>
    main(args.filepath)
  File "[...]/nodezator/__main__.py", line 72, in main
    run_app(filepath)
  File "[...]/nodezator/mainloop.py", line 208, in run_app
    raise err
  File "[...]/nodezator/mainloop.py", line 97, in run_app
    loop_holder.handle_input()
  File "[...]/nodezator/splashscreen/op.py", line 134, in handle_input
    self.on_mouse_release(event)
  File "[...]/nodezator/splashscreen/op.py", line 175, in on_mouse_action
    else: method(event)
  File "[...]/nodezator/ourstdlibs/behaviour.py", line 559, in execute
    return func()
  File "[...]/nodezator/winman/fileop.py", line 78, in new
    paths = create_path(caption=NEW_FILE_CAPTION)
  File "[...]/nodezator/fileman/op.py", line 117, in browse_paths
    self.dir_panel.load_current_dir_contents()
  File "[...]/nodezator/fileman/dirpanel/loadop.py", line 93, in load_current_dir_contents
    self.update_path_objs_appearance()
  File "[...]/nodezator/fileman/dirpanel/main.py", line 367, in update_path_objs_appearance
    if path_obj.text == PATH_OBJ_PARENT_TEXT:
AttributeError: 'PathObject' object has no attribute 'text'

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
matthieu-lapeyrecommented, Aug 5, 2022

no more problem, thanks

0reactions
KennedyRichardcommented, Aug 5, 2022

Neat! I still got it!

kermit dancing

Closing the issue now. Have a nice weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'NoneType' object has no attribute 'text' - Stack ...
soup.find() can return None , and the NoneType object doesn't have a text attribute. You can get around this by splitting up soup.find(....
Read more >
nonetype' object has no attribute 'text' - You.com - You.com
The API failed to parse fields from some twbx files with the following error. 'NoneType' object has no attribute 'text'. Open side panel....
Read more >
pathlib — Object-oriented filesystem paths — Python 3.11.1 ...
This module offers classes representing filesystem paths with semantics appropriate for different operating systems. Path classes are divided between pure ...
Read more >
'NoneType' object has no attribute 'text' · Issue #41 - GitHub
I have set up this plugin and the django3-auth-saml2 plugin and am getting this error when ... 'NoneType' object has no attribute 'text'...
Read more >
OpenAPI Specification - Version 3.0.3 - Swagger
Holds a set of reusable objects for different aspects of the OAS. All objects defined within the components object will have no effect...
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