PySyft icon indicating copy to clipboard operation
PySyft copied to clipboard

[CRITICAL][logger]][29360] UnknownPrivateException has been triggered at the point ptr.get()

Open Crazynovatech opened this issue 3 years ago • 6 comments

Hi, Getting below error [CRITICAL][logger]][29360] UnknownPrivateException has been triggered at the point ptr.get()

Getting this issue only when we append multiple field values into the tensor.

  • OS: Ubuntu
  • OS Version: 20.04
  • Language Version: Python 3.9
  • Package Manager Version: conda 4.11.0

Whether the budget will create any issues? Attached the screenshot. image

Crazynovatech avatar Feb 16 '22 07:02 Crazynovatech

@Crazynovatech are you able to provide more example code and the version of Grid / Syft you are using?

madhavajay avatar Jun 08 '22 06:06 madhavajay

Hi @madhavajay and @Crazynovatech, I have faced the same issue when I try to run this example DEPLOYING A SINGLE DOMAIN NODE at the final step to calculate the total number of Covid cases.

I'm using PySyft version 0.6.0, Python 3.9

Hope you can give me some clues to fix this. Thank you so much

linhnt31 avatar Aug 22 '22 05:08 linhnt31

# Calculate the total number of COVID cases 
results = [dataset[f'{i}'] for i in range(10)]

from time import sleep
total_cases = 0

for result in results:
    ptr = result.publish()
#  print(ptr.get())
    sleep(1)
    total_cases += ptr.get()

print('The total number of COVID19 cases are: {}'.format(total_cases))

linhnt31 avatar Aug 22 '22 05:08 linhnt31

I am trying to follow the tutorial in L2C6 - Remote Data Science and I get the same error.

hadjipantelis avatar Aug 25 '22 14:08 hadjipantelis

Hello, I was having the same error in L2C6. Here's the exception showed in the celery worker: image

The problem went away after restarting the celeryworker container:

  • In Docker, go to the "Container / Apps" menu on the upper left
  • Expand "local_node"
  • In "local_node-celeryworker-1" on the bottom right, click on restart

See image below.

image

After doing this, the code from L2C6 worked without changing anything.

ricardocarvalhods avatar Sep 06 '22 02:09 ricardocarvalhods

@ricardocarvalhods In Slack it has been suggested to try pip install syft —pre and hagrid launch domain —tag=latest.

hadjipantelis avatar Sep 07 '22 15:09 hadjipantelis

Yes as per @hadjipantelis suggestion 0.6 is a bit dated now we have the course3 code here which is compatible with dev / 0.7.0 betas: https://github.com/OpenMined/courses/tree/introduction-to-remote-data-science-dev

madhavajay avatar Nov 14 '22 04:11 madhavajay