I'm just learning both xonsh and Python. Can I use pysed in xonsh? I tried and got this error.
➤ xpip install pysed
Collecting pysed
Downloading pysed-0.7.8.tar.gz (22 kB)
Using legacy 'setup.py install' for pysed, since package 'wheel' is not installed.
Installing collected packages: pysed
Running setup.py install for pysed ... done
Successfully installed pysed-0.7.8
➤ echo "This is my cat, whose name is Betty" | pysed -r "cat" "dog"
Traceback (most recent call last):
File "/usr/bin/pysed", line 34, in <module>
from pysed.main import main
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 846, in exec_module
File "<frozen importlib._bootstrap_external>", line 982, in get_code
File "<frozen importlib._bootstrap_external>", line 1039, in get_data
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.9/site-packages/pysed/__init__.py'
The permissions on that file are:
-rw-r----- 1 root root 0 Jul 3 2015 /usr/lib/python3.9/site-packages/pysed/__init__.py
It seems those are not the correct permissions, but it also seems like simply changing the permission for that one file is not the right approach. Suggestions?