V4yne opened a new issue, #2332:
URL: https://github.com/apache/fory/issues/2332

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/fory/issues) 
and found no similar issues.
   
   
   ### Version
   
   main
   
   ### Component(s)
   
   Python
   
   ### Minimal reproduce step
   
   After following the steps in the BUILD file to compile pyfory, I ran the 
Python demo from the Quickstart guide and encountered the error shown in the 
attached image. I noticed that the TypeInfo defined in both 
/fory/python/pyfory/_serialization.pyx and /fory/python/pyfory/_registry.py 
does not contain the namespace or typename fields. I would like to know whether 
this is a bug that needs to be fixed or if this behavior is expected.
   
   <img width="786" alt="Image" 
src="https://github.com/user-attachments/assets/c43b72a9-73ae-4965-b0c8-90ef938d9fe7";
 />
   
   
   Here are the steps I took:
   cd python
   pip uninstall -y numpy
   pip install pyarrow==15.0.0 Cython wheel pytest
   pip install -v -e .
   python3 test.py
   
   test.py:
   `from typing import Dict
   import pyfory
   
   class SomeClass:
       f1: "SomeClass"
       f2: Dict[str, str]
       f3: Dict[str, str]
   
   fory = pyfory.Fory(ref_tracking=True)
   fory.register_type(SomeClass, typename="example.SomeClass")
   obj = SomeClass()
   obj.f2 = {"k1": "v1", "k2": "v2"}
   obj.f1, obj.f3 = obj, obj.f2
   data = fory.serialize(obj)
   # bytes can be data serialized by other languages.
   print(fory.deserialize(data))`
   
   ### What did you expect to see?
   
   check whether it is a bug or bugfix
   
   ### What did you see instead?
   
   run test.py successly
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to