Eikon Error "code -1 (Port numober was not identified. Check if Eikon Desktop API Proxy is running"

This is on behalf of a client:

Can you directly respond to Barry via email?

Barry had Eikon installed and had no issues, but after installing Workspace (leaving Eikon installed. So currently have both installed), getting below error:


The code that seems to be causing the issue:


eikon_key = open("eikon.txt","r")

ek.set_app_key(str(eikon_key.read()))

# It is best to close the files we opened in order to make sure that we don't stop any other services/programs from accessing them if they need to:

eikon_key.close()


image


I had Barry check the app key, and no problems there.

Works in this environment:

(env) G:\Equities\Quant\Projects\2021\2020-02 Redflag multistock\BeneshAltmanPython>pip list

But doesn’t work in this environment:

The eikon.txt file is the same in both. I thought the eikon package would be enough. I can’t find anything on this in the getting started guide.


1701227273938.png

(.venv) G:\Equities\Quant\Projects\_Automation\Python>pip list


Best Answer

Answers