cancel
Showing results for 
Search instead for 
Did you mean: 

Getting 'pykx' has no attribute 'RawQConnection' error while running in Sandbox

Denakaran
New Contributor III
AttributeError: module 'pykx' has no attribute 'RawQConnection'

 hi guys, i was trying pykx in Sandbox environment. So when i am trying to run the subscribers.py file i am getting this error in Sandbox. Can someone help me to fix this? 

4 REPLIES 4

Michaela
Community Manager Community Manager
Community Manager

Hi @Denakaran 
Try 

 

conn = kx.QConnection('localhost', 5000)

 

as per https://code.kx.com/pykx/1.3/api/ipc.html as the Academy PyKX sandbox is running PyKX 1.3

Michaela_2-1676906976792.png

 


If this still does not work ensure you have initialised PyKX at the top of the Notebook first?

Michaela_0-1676906517740.png


I just tried it myself and its working ok 

Michaela_1-1676906555035.png

 

Denakaran
New Contributor III

Thanks @Michaela  QConnection is working but kx.RawQConnection  is showing the error.

Denakaran_1-1676910041218.png

Denakaran_2-1676910169764.png

 

 

when i am trying to run the subscriber.py file from zip archive folder using the link https://code.kx.com/pykx/1.4/examples/subsciber/readme.html i was getting this error

Yes, as in my screenshot above this is because RawQConnection is a 1.4 feature and the Academy PyKX sandbox is running PyKX 1.3. We have plans to upgrade the Academy sandbox shortly to 1.4 so I will notify when that happens so you try the above. Thanks

Denakaran
New Contributor III

Thanks @Michaela . For reference just attached the screenshots below.

After trying with the Qconnection  still i was facing the issue . When i updated the Qconnection with the AsyncQConnection i could able to see some results but it still throws error at some point.

Denakaran_0-1677675457244.png

 

Denakaran_1-1677675457241.png

 

Denakaran_2-1677675457281.png