-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conda
yields error: incomplete escape \U
#21894
Comments
Hey @OverLordGoldDragon, thanks for reporting. Quick question for you: are you trying to run |
That's right. |
Ok, thanks for the confirmation. That's not something that you should do in our consoles because they are not proper system terminals and conda/mamba actually expect that. So, please use Furthermore, we're planning to completely remove support to run conda, mamba or pip in our consoles because that can easily break users environments. |
I installed Spyder using the standalone installer on Linux and on Windows. On Linux, I was able to install seaborn using the following command in Spyders ipython console (and the conda-forge, spyder development channels were already selected as the default channels to search for packages): %conda install seaborn On Windows, I get Traceback%conda Cell In[1], line 1 File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\site-packages\IPython\core\interactiveshell.py:2480 in run_line_magic File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\site-packages\IPython\core\magics\packaging.py:30 in wrapper File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\site-packages\IPython\core\magics\packaging.py:128 in conda File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\site-packages\IPython\core\magics\packaging.py:53 in _get_conda_like_executable File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\re_init_.py:176 in search File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\re_init_.py:294 in _compile File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\re_compiler.py:745 in compile File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\re_parser.py:989 in parse File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\re_parser.py:464 in _parse_sub File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\re_parser.py:872 in _parse File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\re_parser.py:464 in _parse_sub File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\re_parser.py:548 in _parse File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\re_parser.py:402 in _escape error: incomplete escape \U I suspect this is an error with ipython itself because when I create a new conda environment using Anaconda and the command: conda create -n ipython-env ipython And then activate this environment using: conda activate ipython-env Then start a new ipython session using: ipython Then input:
I essentially get the same thing: TracebackIn [1]: %condaerror Traceback (most recent call last) File ~\anaconda3\envs\ipython-env\Lib\site-packages\IPython\core\interactiveshell.py:2480, in InteractiveShell.run_line_magic(self, magic_name, line, _stack_depth) File ~\anaconda3\envs\ipython-env\Lib\site-packages\IPython\core\magics\packaging.py:30, in is_conda_environment..wrapper(*args, **kwargs) File ~\anaconda3\envs\ipython-env\Lib\site-packages\IPython\core\magics\packaging.py:128, in PackagingMagics.conda(self, line) File ~\anaconda3\envs\ipython-env\Lib\site-packages\IPython\core\magics\packaging.py:53, in _get_conda_like_executable(command) File ~\anaconda3\envs\ipython-env\Lib\re_init_.py:177, in search(pattern, string, flags) File ~\anaconda3\envs\ipython-env\Lib\re_init_.py:307, in _compile(pattern, flags) File ~\anaconda3\envs\ipython-env\Lib\re_compiler.py:745, in compile(p, flags) File ~\anaconda3\envs\ipython-env\Lib\re_parser.py:979, in parse(str, flags, state) File ~\anaconda3\envs\ipython-env\Lib\re_parser.py:460, in _parse_sub(source, state, verbose, nested) File ~\anaconda3\envs\ipython-env\Lib\re_parser.py:862, in _parse(source, state, verbose, nested, first) File ~\anaconda3\envs\ipython-env\Lib\re_parser.py:460, in _parse_sub(source, state, verbose, nested) File ~\anaconda3\envs\ipython-env\Lib\re_parser.py:544, in _parse(source, state, verbose, nested, first) File ~\anaconda3\envs\ipython-env\Lib\re_parser.py:398, in _escape(source, escape, state) error: incomplete escape \U at position 28 In [2]: Seems to be ipython issue #14350 |
conda
yields said error,pip
doesn't, latest Spyder on miniforge3. On earlier Spyder versions with Anaconda,conda
worked fine.Steps to reproduce
conda list
into terminal, or anything starting withconda
ormamba
.environment.yml
expand
Full error trace
expand
The text was updated successfully, but these errors were encountered: