Title: 'Error' object has no attribute 'get' · Issue #1177 · python-mode/python-mode · GitHub
Open Graph Title: 'Error' object has no attribute 'get' · Issue #1177 · python-mode/python-mode
X Title: 'Error' object has no attribute 'get' · Issue #1177 · python-mode/python-mode
Description: Hi, I get these errors recently from python-mode: 1 more line; before #1 5 seconds ago "lint.py" 105L, 3112B [w] Traceback (most recent call last): File "
Open Graph Description: Hi, I get these errors recently from python-mode: 1 more line; before #1 5 seconds ago "lint.py" 105L, 3112B [w] Traceback (most recent call last): File "
X Description: Hi, I get these errors recently from python-mode: 1 more line; before #1 5 seconds ago "lint.py" 105L, 3112B [w] Traceback (most recent call last): File "<string>", line 1...
Opengraph URL: https://github.com/python-mode/python-mode/issues/1177
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'Error' object has no attribute 'get'","articleBody":"Hi, I get these errors recently from python-mode:\r\n\r\n```\r\n1 more line; before #1 5 seconds ago\r\n\"lint.py\" 105L, 3112B [w]\r\nTraceback (most recent call last):\r\n File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/Users/user1/.vim/bundle/python-mode/pymode/lint.py\", line 91, in code_check\r\n errors = sorted(errors, key=__sort)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/user1/.vim/bundle/python-mode/pymode/lint.py\", line 85, in __sort\r\n return sort_rules.index(e.get('type'))\r\n ^^^^^\r\nAttributeError: 'Error' object has no attribute 'get'\r\n```\r\n\r\nWhen I omit/comment line with sorting there is no AttributeError, but errors from linter are not sorted. \r\nIs there some workaround, Could these be related to rope package version?\r\nMacOS Sonoma 14.1\r\n\r\n\r\n```\r\nVIM - Vi IMproved 9.0 (2022 Jun 28, compiled Oct 19 2023 08:52:34)\r\nmacOS version - x86_64\r\nIncluded patches: 1-2049\r\nCompiled by Homebrew\r\nHuge version without GUI. Features included (+) or not (-):\r\n+acl +file_in_path +mouse_urxvt -tag_any_white\r\n+arabic +find_in_path +mouse_xterm -tcl\r\n+autocmd +float +multi_byte +termguicolors\r\n+autochdir +folding +multi_lang +terminal\r\n-autoservername -footer -mzscheme +terminfo\r\n-balloon_eval +fork() +netbeans_intg +termresponse\r\n+balloon_eval_term +gettext +num64 +textobjects\r\n-browse -hangul_input +packages +textprop\r\n++builtin_terms +iconv +path_extra +timers\r\n+byte_offset +insert_expand +perl +title\r\n+channel +ipv6 +persistent_undo -toolbar\r\n+cindent +job +popupwin +user_commands\r\n-clientserver +jumplist +postscript +vartabs\r\n+clipboard +keymap +printer +vertsplit\r\n+cmdline_compl +lambda +profile +vim9script\r\n+cmdline_hist +langmap -python +viminfo\r\n+cmdline_info +libcall +python3 +virtualedit\r\n+comments +linebreak +quickfix +visual\r\n+conceal +lispindent +reltime +visualextra\r\n+cryptv +listcmds +rightleft +vreplace\r\n+cscope +localmap +ruby +wildignore\r\n+cursorbind +lua +scrollbind +wildmenu\r\n+cursorshape +menu +signs +windows\r\n+dialog_con +mksession +smartindent +writebackup\r\n+diff +modify_fname +sodium -X11\r\n+digraphs +mouse +sound -xattr\r\n-dnd -mouseshape +spell -xfontset\r\n-ebcdic +mouse_dec +startuptime -xim\r\n+emacs_tags -mouse_gpm +statusline -xpm\r\n+eval -mouse_jsbterm -sun_workshop -xsmp\r\n+ex_extra +mouse_netterm +syntax -xterm_clipboard\r\n+extra_search +mouse_sgr +tag_binary -xterm_save\r\n-farsi -mouse_sysmouse -tag_old_static \r\n system vimrc file: \"$VIM/vimrc\"\r\n user vimrc file: \"$HOME/.vimrc\"\r\n 2nd user vimrc file: \"~/.vim/vimrc\"\r\n user exrc file: \"$HOME/.exrc\"\r\n defaults file: \"$VIMRUNTIME/defaults.vim\"\r\n fall-back for $VIM: \"/usr/local/share/vim\"\r\nCompilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X -DMACOS_X_DARWIN -g -O2 -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 \r\nLinking: clang -L/usr/local/lib -o vim -lm -lncurses -lsodium -liconv -lintl -framework AppKit -L/usr/local/opt/lua/lib -llua5.4 -mmacosx-version-min=13.5 -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/perl/lib/perl5/5.38/darwin-thread-multi-2level/CORE -lperl -L/usr/local/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/lib/python3.12/config-3.12-darwin -lpython3.12 -framework CoreFoundation -lruby.3.2 -L/usr/local/Cellar/ruby/3.2.2_1/lib \r\n\r\n```\r\n\r\n","author":{"url":"https://github.com/PawelKra","@type":"Person","name":"PawelKra"},"datePublished":"2023-11-06T09:49:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1177/python-mode/issues/1177"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:827adfb1-d7dc-7287-04cf-60abec495175 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC06:1A4860:17113A7:2056F8E:69692137 |
| html-safe-nonce | b090e40dfd69093e29f224881718545ebac997131b47b754d53f6e8349238bf1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzA2OjFBNDg2MDoxNzExM0E3OjIwNTZGOEU6Njk2OTIxMzciLCJ2aXNpdG9yX2lkIjoiMjE4MjY3MDgzNTA2MDkwODM0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ac0d0cf3d85116d737ff6a24878ab3fa262066741abcae4df86a24d365e90f0e |
| hovercard-subject-tag | issue:1978723948 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-mode/python-mode/1177/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ec018f36996ef4004e52a618c469f99d1e43fefe1f84121218e99598257aa997/python-mode/python-mode/issues/1177 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ec018f36996ef4004e52a618c469f99d1e43fefe1f84121218e99598257aa997/python-mode/python-mode/issues/1177 |
| og:image:alt | Hi, I get these errors recently from python-mode: 1 more line; before #1 5 seconds ago "lint.py" 105L, 3112B [w] Traceback (most recent call last): File " |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PawelKra |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| go-import | github.com/python-mode/python-mode git https://github.com/python-mode/python-mode.git |
| octolytics-dimension-user_id | 13965098 |
| octolytics-dimension-user_login | python-mode |
| octolytics-dimension-repository_id | 2408911 |
| octolytics-dimension-repository_nwo | python-mode/python-mode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2408911 |
| octolytics-dimension-repository_network_root_nwo | python-mode/python-mode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width