Select to view content in your preferred language

Unable to use 'spyder' in ArcGIS Pro 3.2.0

906
4
01-31-2024 02:58 PM
Labels (1)
SubramanianSankaranarayanan
New Contributor

New user to ArcGIS pro. I 

  1. installed 3.2.0
  2. opened Package Manager
  3. cloned the arcgispro-py3 environment as arcgispro-py3-clone
  4. click 'Add Packages'
  5. install 'Spyder'

and I am hit with the following error before installation is complete,

SubramanianSankaranarayanan_0-1706741569466.png

I click 'OK'. Spyder completes installation, but won't open.

I go to 'Python Command Prompt', it opens with the 'arcgispro-py3-clone' environment activated. I try to run spyder from there. I am hit with the following error(s).

Traceback (most recent call last):
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Scripts\spyder-script.py", line 10, in <module>
sys.exit(main())
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\spyder\app\start.py", line 256, in main
mainwindow.main(options, args)
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\spyder\app\mainwindow.py", line 1823, in main
mainwindow = create_window(MainWindow, app, splash, options, args)
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\spyder\app\utils.py", line 289, in create_window
main.setup()
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\spyder\app\mainwindow.py", line 732, in setup
internal_plugins = find_internal_plugins()
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\spyder\app\find_plugins.py", line 40, in find_internal_plugins
mod = importlib.import_module(entry_point.module_name)
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
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 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\spyder\plugins\ipythonconsole\plugin.py", line 24, in <module>
from spyder.plugins.ipythonconsole.widgets.main_widget import (
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\spyder\plugins\ipythonconsole\widgets\__init__.py", line 24, in <module>
from .shell import ShellWidget
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\spyder\plugins\ipythonconsole\widgets\shell.py", line 35, in <module>
from spyder.plugins.ipythonconsole.comms.kernelcomm import KernelComm
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\spyder\plugins\ipythonconsole\comms\kernelcomm.py", line 19, in <module>
from zmq.ssh import tunnel as zmqtunnel
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\zmq\ssh\__init__.py", line 1, in <module>
from zmq.ssh.tunnel import *
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\zmq\ssh\tunnel.py", line 24, in <module>
import paramiko
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\paramiko\__init__.py", line 22, in <module>
from paramiko.transport import SecurityOptions, Transport
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\paramiko\transport.py", line 129, in <module>
class Transport(threading.Thread, ClosingContextManager):
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\paramiko\transport.py", line 190, in Transport
if KexCurve25519.is_available():
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\paramiko\kex_curve25519.py", line 30, in is_available
X25519PrivateKey.generate()
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\cryptography\hazmat\primitives\asymmetric\x25519.py", line 59, in generate
from cryptography.hazmat.backends.openssl.backend import backend
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\cryptography\hazmat\backends\openssl\__init__.py", line 7, in <module>
from cryptography.hazmat.backends.openssl.backend import backend
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\cryptography\hazmat\backends\openssl\backend.py", line 27, in <module>
from cryptography.hazmat.bindings.openssl import binding
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 167, in <module>
Binding.init_static_locks()
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 134, in init_static_locks
cls._ensure_ffi_initialized()
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 123, in _ensure_ffi_initialized
_legacy_provider_error(cls._legacy_provider_loaded)
File "C:\Users\subramanians\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 43, in _legacy_provider_error
raise RuntimeError(
RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorithms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you have likely made a mistake with your OpenSSL configuration.

0 Kudos
4 Replies
WenyanXu
New Contributor

Same issue with GIS pro 3.2.2

0 Kudos
SeanMcLaughlin5
New Contributor

Same issue with ArcGIS Pro (3.2.1)

0 Kudos
JamesDoyle2
New Contributor

I set CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 as a System Variable and rebooted and it fixed the issue. 

0 Kudos
Jades1
by
Occasional Contributor

Hi, what code exactly did you use in the powershell line?

0 Kudos