You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error is occurring because async is a reserved keyword in Python (since Python 3.7), and it cannot be used as a function name or decorator name. The VisiData code appears to be using async as a decorator name, which is causing the syntax error during installation.
This is likely an older version of VisiData (version 0.41) that was written before async became a keyword. The modern way to handle this would be to rename the decorator to something like async_def, asynchronous, or run_async.
You have a few options:
Install an older version of Python (pre-3.7) if you absolutely need this specific version of VisiData
Install a newer version of VisiData that has fixed this syntax issue
If you need to modify the code locally, you could patch the file to rename the async decorator
Would you like me to help you with any of these approaches?
I went with the renaming solution, and as a proof of concept ran:
sed -i 's|@async|@async2|' $(grep -rl '@async' .)
sed -i 's|def async|def async2|' $(grep -rl 'def async' .)
After which the error was gone, and vd works as expected. I suppose someone can improve on my brutal handiwork, being a mere mortal sysadmin.
The text was updated successfully, but these errors were encountered:
Claude's idea with that:
I went with the renaming solution, and as a proof of concept ran:
After which the error was gone, and
vd
works as expected. I suppose someone can improve on my brutal handiwork, being a mere mortal sysadmin.The text was updated successfully, but these errors were encountered: