I am trying to use the radian package as alternative console for the R program.
I have installed following the suggestions:
pip3 install -U radian
however when I try to run I get the following error
-bash: radian: command not found
When I reinstall the radian package I get the following:
Defaulting to user installation because normal site-packages is not writeable
Requirement already up-to-date: radian in ./Library/Python/3.8/lib/python/site-packages (0.6.0)
Requirement already satisfied, skipping upgrade: pygments>=2.5.0 in ./Library/Python/3.8/lib/python/site-packages (from radian) (2.11.2)
Requirement already satisfied, skipping upgrade: prompt-toolkit<3.1,>=3.0 in ./Library/Python/3.8/lib/python/site-packages (from radian) (3.0.28)
Requirement already satisfied, skipping upgrade: rchitect<0.4.0,>=0.3.36 in ./Library/Python/3.8/lib/python/site-packages (from radian) (0.3.36)
Requirement already satisfied, skipping upgrade: wcwidth in ./Library/Python/3.8/lib/python/site-packages (from prompt-toolkit<3.1,>=3.0->radian) (0.2.5)
Requirement already satisfied, skipping upgrade: cffi>=1.10.0 in ./Library/Python/3.8/lib/python/site-packages (from rchitect<0.4.0,>=0.3.36->radian) (1.15.0)
Requirement already satisfied, skipping upgrade: six>=1.9.0 in /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages (from rchitect<0.4.0,>=0.3.36->radian) (1.15.0)
Requirement already satisfied, skipping upgrade: pycparser in ./Library/Python/3.8/lib/python/site-packages (from cffi>=1.10.0->rchitect<0.4.0,>=0.3.36->radian) (2.21)
Does anyone have a suggestion for how to get this up and running?
CodePudding user response:
The above was solved by uninstalling all radians dependencies and then running a fresh install.
CodePudding user response:
I found a solution to this using
python3.7 -m pip install [package_name]
However, now when I load radian I get this:
Traceback (most recent call last):
File "/opt/anaconda3/bin/radian", line 8, in <module>
sys.exit(main())
File "/opt/anaconda3/lib/python3.7/site-packages/radian/app.py", line 108, in main
RadianApplication(r_home, ver=__version__).run(options, cleanup=cleanup)
File "/opt/anaconda3/lib/python3.7/site-packages/radian/app.py", line 215, in run
self.session = create_radian_prompt_session(options, settings)
File "/opt/anaconda3/lib/python3.7/site-packages/radian/prompt_session.py", line 163, in create_radian_prompt_session
auto_suggest=AutoSuggestFromHistory() if settings.auto_suggest else None
File "/opt/anaconda3/lib/python3.7/site-packages/radian/lineedit/prompt.py", line 72, in __init__
super().__init__(*args, **kwargs)
File "/opt/anaconda3/lib/python3.7/site-packages/prompt_toolkit/shortcuts/prompt.py", line 463, in __init__
self.default_buffer = self._create_default_buffer()
File "/opt/anaconda3/lib/python3.7/site-packages/radian/lineedit/prompt.py", line 187, in _create_default_buffer
search_no_duplicates=self.search_no_duplicates
File "/opt/anaconda3/lib/python3.7/site-packages/radian/lineedit/buffer.py", line 185, in __init__
super().__init__(*args, **kwargs)
File "/opt/anaconda3/lib/python3.7/site-packages/radian/lineedit/buffer.py", line 22, in __init__
super().__init__(*args, **kwargs)
File "/opt/anaconda3/lib/python3.7/site-packages/prompt_toolkit/buffer.py", line 316, in __init__
self.history.load(new_history_item)
TypeError: load() takes 1 positional argument but 2 were given