Open
Conversation
Raj725
reviewed
Oct 29, 2024
| ## How to use | ||
|
|
||
| ``` | ||
| from pebblo.topic_classifier.topic_classifier import TopicClassifier |
Collaborator
There was a problem hiding this comment.
@gr8nishan
This isn't directly related to your PR, but I wanted to let you know that the TopicClassifier used to work independently, as noted in this code snippet. However, it seems that some recent imports from another package have caused it to stop working properly.
As a result, this snippet isn't working as it did before.
cc: @srics
Python 3.9.6 (default, Aug 9 2024, 14:24:13)
[Clang 16.0.0 (clang-1600.0.26.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pebblo.entity_classifier.entity_classifier import EntityClassifier
/Users/raj/Projects/pebblo/venv/3.9/lib/python3.9/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
warnings.warn(
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/raj/Projects/pebblo/pebblo/entity_classifier/entity_classifier.py", line 8, in <module>
from pebblo.entity_classifier.custom_analyzer.private_key_analyzer import (
File "/Users/raj/Projects/pebblo/pebblo/entity_classifier/custom_analyzer/private_key_analyzer.py", line 17, in <module>
logger = get_logger(__name__)
File "/Users/raj/Projects/pebblo/pebblo/log/__init__.py", line 69, in get_logger
log_level = logging.getLevelName(g_config.logging.level.upper())
AttributeError: 'NoneType' object has no attribute 'logging'
>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.