Open pa111111 opened 1 month ago
Hi Pavel,
It seems odd that this code
if builder is None:
raise ValueError("Builder finalization failed")
passes and then in the next line it logs Builder finalized: None
. Are you sure you provided your source code as is?
Also, Builder
methods always return Builder
, never Builder | None
. Maybe you could run mypy through your code to check if you are missing something.
I am encountering an issue when trying to use the suppgram library in my Python project with Python 3.12. The builder creation process fails with the error "Builder finalization failed." Here are the details
Steps to Reproduce:
Observed Behavior: The process fails with the following error message: ValueError: Builder finalization failed
Logs: DEBUG:main:Starting to build the suppgram builder. DEBUG:main:Configuring SQLAlchemy storage. DEBUG:main:Configuring Telegram manager frontend. DEBUG:main:Configuring Telegram customer frontend. DEBUG:main:Configuring Telegram agent frontend. DEBUG:main:Finalizing the builder. INFO:suppgram.builder:Initializing Telegram customer frontend DEBUG:main:Builder finalized: None ERROR:main:Builder creation failed
Environment:
OS: Windows 10 Python Version: 3.12 Suppgram Version: [Specify the version you are using] Other relevant packages: httpx
Additional Information: I've checked the tokens and IDs multiple times, and they seem to be correct. I also tried running individual components separately, and they work fine. The issue seems to occur during the build() method.
Any guidance or suggestions to resolve this issue would be greatly appreciated.