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

ModuleNotFoundError: No module named 'nebula3.fbthrift.py3' in nebula3/fbthrift/util/converter.py #282

Closed
dsanmart opened this issue Aug 23, 2023 · 1 comment

Comments

@dsanmart
Copy link

Function execution of to_py_struct() from nebula3/fbthrift/util/converter.py is raising a ModuleNotFoundError. I believe this is happening due to the import of an inexistent module in version 3.4.0.

Steps to reproduce the behavior:

from nebula3.fbthrift.util.converter import to_py_struct

Expected behavior

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[53], line 1
----> 1 from nebula3.fbthrift.util.converter import to_py_struct

      1 #! [/usr/bin/python3](https://file+.vscode-resource.vscode-cdn.net/usr/bin/python3)
      2 # Copyright (c) Facebook, Inc. and its affiliates.
      3 #
   (...)
     15 
     16 # pyre-unsafe
     18 from typing import Any, Type, TypeVar
---> 20 from nebula3.fbthrift.py3.types import Enum, Struct
     21 from nebula3.fbthrift.Thrift import TType
     22 from nebula3.fbthrift.util import parse_struct_spec

ModuleNotFoundError: No module named 'nebula3.fbthrift.py3'
@wey-gu
Copy link
Contributor

wey-gu commented Aug 23, 2023

Interesting finding, @dsanmart

It was introduced via #98, but by following this, I still cannot generate this file, @Aiee do you have an idea on how this was introduced, and it's a generated file, right?

The thrift we are using in 3.x is v2021.11.29.00, and it seems it comes from https://github.com/facebook/fbthrift/blob/v2021.11.29.00/thrift/lib/py/util/converter.py

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