type object 'SettingsFrame' has no attribute 'ENABLE_CONNECT_PROTOCOL' Error Message
Hi -
As of Monday morning I am unable to import eikon to a jupyter notebook, receiving an error:
type object 'SettingsFrame' has no attribute 'ENABLE_CONNECT_PROTOCOL'
This error appears to be generated from the h2 package.
I am aware of a similar question posted to this forum at some point.
My h2 package is version 4.0.0.
My httpx package is version 0.14.3.
My eikon package is version 1.1.8.
My hyperframe package is version 6.0.0.
Is there a version dependency problem here? I understand what the error message means but I'm not sure if one of my installed packages is not correct.
Any solution to this?
Thanks
Best Answer
-
It appears that a simple:
conda install h2==3.2.0
fixed the problem. For some reason it really wasn't liking h2 v4.0.0
1
Answers
-
Hello @michael-r.meyer,
Have not seen exact this issue.
As a sanity check, sometimes Jupyter gets into a faulty state. Have you had a chance to fully restart Jupiter, making sure via Task Manager that no instance of Jupyter process remains running, and if required, manually killing any zombied Jupyter processes?
Next, I would restart Eikon desktop, making sure via Task manager that no Eikon process survives, i.e. clean restart.
Next would try restarting Jupyter and testing, to confirm, if the issue with eikon import persists.
0 -
Hi -
Yes, I tried that to no avail.
Still receiving the error message.
0 -
Hello @michael-r.meyer,
Trying to narrow down the issue, and to see if it's correlated to Jupyter:
Is on DOS command shell, you run
python, and then
>>> import eikon
>>>Does it manifest the same issue? If it does, then the issue is unrelated to Jupyter.
(if you have many versions of Python installed, the test has to be conducted consistently, on the same python that Jupyter uses)
What version of python do you run?
If you see the same behavior with naked python, I would try uninstalling, and reinstalling eikon module.
0 -
Using version 3.7.9
It's definitely not Jupyter-related. That's just where I typically run my source.
If I run python from a command prompt and attempt to import eikon I get the same error. It's important to note that up until 2 days ago this all worked fine.
0 -
Here is part of the traceback (note the final error seemingly coming from the h2 package, which is version 4.0.0):
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "P:\myEnvs\lib\site-packages\h2\settings.py", line 55, in SettingCodes
ENABLE_CONNECT_PROTOCOL = SettingsFrame.ENABLE_CONNECT_PROTOCOL
AttributeError: type object 'SettingsFrame' has no attribute 'ENABLE_CONNECT_PROTOCOL'
0 -
I uninstalled and reinstalled eikon as well.
0 -
Hello @michael-r.meyer,
Do you see a stack trace?
Looking at this related discussion.
At this point in the elimination process, it looks like a module that eikon requires might have been removed or corrupted. And it is not one one of the dependencies of eikon that get reinstalled with eikon (you just reinstalled and I assume you reviewed the output on eikon installation and there were no errors, it installed cleanly)
So would install another, recent version of python, in addition the one(s) that you have already, run that python, install eikon on it, and see if it exhibits the same issue on eikon import. Hopefully, to determine if the issue originates with the python environment or with eikon, somehow.
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 370 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛