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

Unsupported Node type: 27 python3.9 has a class decompilation problem. #396

Closed
ddouworld opened this issue Nov 4, 2023 · 0 comments · Fixed by #397
Closed

Unsupported Node type: 27 python3.9 has a class decompilation problem. #396

ddouworld opened this issue Nov 4, 2023 · 0 comments · Fixed by #397

Comments

@ddouworld
Copy link
Contributor

python3.9 has a class decompilation problem.

import torch
class MyNet(torch.nn.Module):
        pass

pycdc does not work in this format.
Such as

import TEST
class MyNet(TEST.a):
        pass

Decompilation result

# Source Generated with Decompyle++
# File: test2.pyc (Python 3.9)

import TEST

def MyNet():
    '''MyNet'''
    pass

MyNet = <NODE:27>Unsupported Node type: 27
(MyNet, 'MyNet', TEST.a)
ddouworld added a commit to ddouworld/pycdc that referenced this issue Nov 4, 2023
@zrax zrax closed this as completed in #397 Nov 11, 2023
zrax added a commit that referenced this issue Nov 11, 2023
* fix #396 Unsupported Node type: 27

* Add test file

* Modify a little comment

* Modify the test pyc file name

* Delete redundant pyc files

* retest

* Add newline at EOF

---------

Co-authored-by: Michael Hansen <zrax0111@gmail.com>
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

Successfully merging a pull request may close this issue.

1 participant