Giter Site home page Giter Site logo

pysonic's Introduction

Hi there 👋 I'm Yunlong Feng. A student in HIT.

Stat Top-Langs

pysonic's People

Contributors

alongwy avatar dependabot[bot] avatar pleshevskiy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pleshevskiy

pysonic's Issues

TypeError: argument 'args': 'str' object cannot be converted to 'PyTuple'

Using ingestion code sample, using v0.1.2, I get:

OSError: Client cannot parse response from sonic server. Please write an issue to github (https://github.com/pleshevskiy/sonic-channel).

Then I commented out the ping line, I get:

Traceback (most recent call last):
  File "/home/mrloyal/Temp/xspeed_search/sample.py", line 5, in <module>
    ingestcl.push("wiki", "articles", "article-1", "for the love of god hell")
TypeError: argument 'args': 'str' object cannot be converted to 'PyTuple'

I rolled back to v0.1.1 and it works.

Cannot install on M1 / Python 3.11

❯ pip install pysonic-channel
ERROR: Could not find a version that satisfies the requirement pysonic-channel (from versions: 0.1.2)
ERROR: No matching distribution found for pysonic-channel

Python 3.11 packages

Hi, thanks for your great work! Can you provide packages for pip to be installed with 3.11? :)

OSError: Sonic response are wrong. Please write issue to github

hello. I'm not sure if it's a issue of the client library, of the sonic server or if my use case is not suitable for sonic.

I'm trying to push a longstring to sonic. And i recieve a "OSError: Sonic response are wrong. Please write issue to github." Error


from sonic import IngestChannel, SearchChannel, ControlChannel
ingestcl = IngestChannel("localhost:1491", "SecretPassword")
print(ingestcl.ping())
longstring = """ PRÈFET

DE LA
CHARENTE-
MARITIME

Liberté
Egalité
Fraternité

Arrêté n°2024/DS)DEN/SDTES /o1d
en date du 14 oetobee 2021

portant nomination de la déléguée départementale à la vie associative de la
Charente-Maritime

Le préfet de la Charente-Maritime,
Chevalier de la Légion d'honneur
Officier de l'Ordre national du Mérite

Vu le décret n° 2020-1542 du 9 décembre 2020 relatif aux compétences des autorités
académiques dans le domaine des politiques de la jeunesse, de l'éducation populaire, de la
vie associative, de l'engagement civique et des sports et à l'organisation des services chargés
de leur mise en œuvre :

Vu la circulaire du Premier ministre N° 425/SG du 28 juillet 1995 instituant la création d'un
délégué départemental à la vie associative ;

Vu la lettre du haut-commissaire à la jeunesse en date du 8 février 2010 relative à la
désignation des délégués départementaux à la vie associative :

Vu la circulaire du Premier ministre N° 5811/SG du 29 septembre 2015 relative aux nouvelles
relations entre les pouvoirs publics et les associations ;

Sur proposition de la directrice académique des services de l'Éducation nationale de la
Charente-Maritime :

ARRÊTE :

Article 1 : Madame Patricia BRESSANGE est nommée déléguée départementale à la vie
associative (DDVA) de la Charente-Maritime à compter de la date de publication du présent
arrêté.

Article 2 : Les missions de la déléguée départementale à la vie associative de la Charente-
Maritime sont notamment les suivantes :
+ Identifier les centres de ressources à la vie associative privés et publics membres ou
non de fédérations, Unions ou réseaux associatifs :

PREFECTURE DE LA CHARENTE-MARITIME -17-2021-10-14-00007 - Arrêté n° 2021/DSDES/SDJES/01 en date du 14 octobre 2021 portant 57
nomination de la déléguée départementale à la vie associative de la Charente-Maritime

"""
ingestcl.push("raaa", "pages" , "3ec9cb35-b897-4197-9320-d654cb36b55b",longstring)


My use case is to be able to make quick search in log string that came from a tesseracted ocr document.

Could you help me this this ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.