Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unpickle Custom Class 會出 error #49

Open
helioz11 opened this issue Sep 5, 2022 · 0 comments
Open

Unpickle Custom Class 會出 error #49

helioz11 opened this issue Sep 5, 2022 · 0 comments
Assignees

Comments

@helioz11
Copy link

helioz11 commented Sep 5, 2022

SA code 裡面有 define _Model 卻執行時後有問題,error log:

Process DAI-1:
Traceback (most recent call last):
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/home/kevin/my-dummydevice-venv/lib/python3.9/site-packages/iottalkpy/dai.py", line 187, in run
    self.dan.register(
  File "/home/kevin/my-dummydevice-venv/lib/python3.9/site-packages/iottalkpy/dan.py", line 461, in register
    ctx.on_register(self)
  File "/home/kevin/dummydevice/dummy-sa.py", line 109, in on_register
    model = pickle.load(f)
AttributeError: Can't get attribute '_Model' on <module 'iottalkpy.dai' from '/home/kevin/my-dummydevice-venv/lib/python3.9/site-packages/iottalkpy/dai.py'>
@iblislin iblislin self-assigned this Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants