Giter Club home page Giter Club logo

contrail-sandesh's People

Stargazers

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

Watchers

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

contrail-sandesh's Issues

flex -t src/contrail-common/sandesh/compiler/sandeshy.ll > build/debug/tools/sandesh/compiler/sandeshy.cc src/contrail-common/sandesh/compiler/sandeshy.ll:64: unrecognized '%' directive

Dears,

Getting below exception while building sandesh packages from source , kindly advise, also note that we have renamed the file from .yy extension to ll because of error in while Configuring SConstruct file error was .yy file extension was not valid it should be ll or lm

Error while running scons

scons -j ${JOBS_COUNT:-$(grep -c processor /proc/cpuinfo || echo 1)} --without-dpdk
scons: Reading SConscript files ...
('Ubuntu', '20.04', 'focal')
('Ubuntu', '20.04', 'focal')
('Ubuntu', '20.04', 'focal')

scons: *** While building `['sandeshy.cc']' from `['/root/salim/src/contrail-common/sandesh/compiler/sandeshy.yy']': Don't know how to build from a source file with suffix `.yy'.  Expected a suffix in this list: ['.lm', '.ll'].
File "/root/salim/src/contrail-common/sandesh/compiler/SConscript", line 28, in <module>

after we change to ll extension error as-shown in below

`scons: done reading SConscript files.
scons: Building targets ...
scons: `build/lib/libsandesh-c.a' is up to date.
flex -t src/contrail-common/sandesh/compiler/sandeshy.ll > build/debug/tools/sandesh/compiler/sandeshy.cc
src/contrail-common/sandesh/compiler/sandeshy.ll:64: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:87: bad character: }
src/contrail-common/sandesh/compiler/sandeshy.ll:92: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:93: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:94: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:95: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:96: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:101: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:102: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:107: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:271: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:272: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:272: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:272: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:278: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:283: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:283: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:283: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:296: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:296: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:296: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:304: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:304: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:304: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:311: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:311: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:321: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:321: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:328: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:328: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:336: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:336: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:336: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:337: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:337: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:339: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:345: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:345: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:352: unrecognized rule
scons: *** [build/debug/tools/sandesh/compiler/sandeshy.cc] Error 1
scons: building terminated because of errors.

`

Optional arguments aren't hinted at in the arguments for SandeshSession

At https://github.com/Juniper/contrail-sandesh/blob/master/library/python/pysandesh/sandesh_session.py#L235 you can't infer that "event_handler" and
"sandesh_msg_handler" can be None. The test does set these to None, though, so I guess it's alright?

Would it be appropriate to make this more explicit by changing from:

 def __init__(self, sandesh_instance, server, event_handler, sandesh_msg_handler)

to

    def __init__(self, sandesh_instance, server, 
        event_handler=None, sandesh_msg_handler=None)

instead?

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.