GithubHelp home page GithubHelp logo

Comments (24)

jinq0123 avatar jinq0123 commented on July 1, 2024

Please install readline:

yum install readline-devel.x86_64 readline-devel.i386 ncurses-devel.i386 ncurses-devel.x86_64  

from grpc-lua.

1923982924 avatar 1923982924 commented on July 1, 2024

@jinq0123
Thanks. But it cann't work. It has wrong message.
ERROR: gRPC/1.8.3@inexorgame/stable: Error in source() method, line 30
self.run("git clone -b v{} --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-{}".format(self.version, self.version))
ConanException: Error 256 while executing git clone -b v1.8.3 --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-1.8.3

from grpc-lua.

jinq0123 avatar jinq0123 commented on July 1, 2024

Error message?

from grpc-lua.

1923982924 avatar 1923982924 commented on July 1, 2024

@jinq0123 only this.
ERROR: gRPC/1.8.3@inexorgame/stable: Error in source() method, line 30
self.run("git clone -b v{} --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-{}".format(self.version, self.version))
ConanException: Error 256 while executing git clone -b v1.8.3 --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-1.8.3

from grpc-lua.

jinq0123 avatar jinq0123 commented on July 1, 2024

Please give full output.

from grpc-lua.

1923982924 avatar 1923982924 commented on July 1, 2024

this‘s output message.

remote: Enumerating objects: 57, done.
remote: Counting objects: 100% (57/57), done.
remote: Compressing objects: 100% (36/36), done.
remote: Total 16411 (delta 23), reused 32 (delta 18), pack-reused 16354
Receiving objects: 100% (16411/16411), 5.82 MiB | 1.46 MiB/s, done.
Resolving deltas: 100% (12081/12081), done.
Submodule path 'third_party/googletest': checked out 'ec44c6c1675c25b9827aacd08c02433cccde7780'
Cloning into 'third_party/protobuf'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 60097 (delta 1), reused 1 (delta 1), pack-reused 60093
Receiving objects: 100% (60097/60097), 50.06 MiB | 897.00 KiB/s, done.
Resolving deltas: 100% (40678/40678), done.
Submodule path 'third_party/protobuf': checked out '2761122b810fe8861004ae785cc3ab39f384d342'
Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/benchmark'
Cloning into 'third_party/benchmark'...
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 4983 (delta 3), reused 6 (delta 2), pack-reused 4973
Receiving objects: 100% (4983/4983), 1.57 MiB | 629.00 KiB/s, done.
Resolving deltas: 100% (3269/3269), done.
Submodule path 'third_party/protobuf/third_party/benchmark': checked out '360e66c1c4777c99402cf8cd535aa510fee16573'
Cloning into 'third_party/zlib'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5129 (delta 2), reused 3 (delta 1), pack-reused 5123
Receiving objects: 100% (5129/5129), 3.62 MiB | 807.00 KiB/s, done.
Resolving deltas: 100% (3602/3602), done.
Submodule path 'third_party/zlib': checked out 'cacf7f1d4e3d44d871b605da3b647f07d718623f'
Failed to recurse into submodule path 'third_party/bloaty'
ERROR: gRPC/1.8.3@inexorgame/stable: Error in source() method, line 30
self.run("git clone -b v{} --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-{}".format(self.version, self.version))
ConanException: Error 256 while executing git clone -b v1.8.3 --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-1.8.3

from grpc-lua.

1923982924 avatar 1923982924 commented on July 1, 2024

in example,this's error message.

./lua-cpp: error while loading shared libraries: liblua-cpp.so: cannot open shared object file: No such file or directory

from grpc-lua.

jinq0123 avatar jinq0123 commented on July 1, 2024

Check if liblua-cpp.so exists. Maybe copy_from_conan.sh.example failed to copy this file. Try to copy manually.

from grpc-lua.

jinq0123 avatar jinq0123 commented on July 1, 2024

Not know why Failed to recurse into submodule path. Try to remove all and retry.

from grpc-lua.

1923982924 avatar 1923982924 commented on July 1, 2024

It‘s very nice, if you provide a simple way to call it

from grpc-lua.

1923982924 avatar 1923982924 commented on July 1, 2024

@jinq0123 It's also Error when remove all and retry or git submodule update --init or delete it.
This's message.

Receiving objects: 100% (60611/60611), 50.43 MiB | 121.00 KiB/s, done.
Resolving deltas: 100% (41162/41162), done.
Submodule path 'third_party/protobuf': checked out '2761122b810fe8861004ae785cc3ab39f384d342'
Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/benchmark'
Cloning into 'third_party/benchmark'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 4999 (delta 9), reused 26 (delta 9), pack-reused 4973
Receiving objects: 100% (4999/4999), 1.58 MiB | 240.00 KiB/s, done.
Resolving deltas: 100% (3275/3275), done.
Submodule path 'third_party/protobuf/third_party/benchmark': checked out '360e66c1c4777c99402cf8cd535aa510fee16573'
Cloning into 'third_party/zlib'...
remote: Enumerating objects: 5129, done.
remote: Total 5129 (delta 0), reused 0 (delta 0), pack-reused 5129
Receiving objects: 100% (5129/5129), 3.61 MiB | 1.40 MiB/s, done.
Resolving deltas: 100% (3604/3604), done.
Submodule path 'third_party/zlib': checked out 'cacf7f1d4e3d44d871b605da3b647f07d718623f'
Failed to recurse into submodule path 'third_party/bloaty'
ERROR: gRPC/1.8.3@inexorgame/stable: Error in source() method, line 30
self.run("git clone -b v{} --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-{}".format(self.version, self.version))
ConanException: Error 256 while executing git clone -b v1.8.3 --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-1.8.3

from grpc-lua.

jinq0123 avatar jinq0123 commented on July 1, 2024

Try to execute

git clone -b v1.8.3 --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-1.8.3

to find the error.

from grpc-lua.

1923982924 avatar 1923982924 commented on July 1, 2024

It‘s also error.But it hasn't detail error message.

Resolving deltas: 100% (3275/3275), done.
Submodule path 'third_party/protobuf/third_party/benchmark': checked out '360e66c1c4777c99402cf8cd535aa510fee16573'
Cloning into 'third_party/zlib'...
remote: Enumerating objects: 5129, done.
remote: Total 5129 (delta 0), reused 0 (delta 0), pack-reused 5129
Receiving objects: 100% (5129/5129), 3.61 MiB | 176.00 KiB/s, done.
Resolving deltas: 100% (3604/3604), done.
Submodule path 'third_party/zlib': checked out 'cacf7f1d4e3d44d871b605da3b647f07d718623f'
Failed to recurse into submodule path 'third_party/bloaty'

from grpc-lua.

jinq0123 avatar jinq0123 commented on July 1, 2024

Please give full input and output.

from grpc-lua.

1923982924 avatar 1923982924 commented on July 1, 2024

Execute
git clone -b v1.8.3 --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-1.8.3.

The result is this.

Submodule 'third_party/re2' (https://github.com/google/re2) registered for path 'third_party/re2'
Cloning into 'third_party/googletest'...
remote: Enumerating objects: 2, done.
remote: Counting objects: 100% (2/2), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 16411 (delta 0), reused 0 (delta 0), pack-reused 16409
Receiving objects: 100% (16411/16411), 5.65 MiB | 1.02 MiB/s, done.
Resolving deltas: 100% (12102/12102), done.
Submodule path 'third_party/bloaty/third_party/googletest': checked out 'a2b8a8e07628e5fd60644b6dd99c1b5e7d7f1f47'
Cloning into 'third_party/libFuzzer'...
fatal: unable to access 'https://chromium.googlesource.com/chromium/llvm-project/llvm/lib/Fuzzer/': Failed to connect to 2404:6800:4008:c06::52: Network is unreachable
Clone of 'https://chromium.googlesource.com/chromium/llvm-project/llvm/lib/Fuzzer' into submodule path 'third_party/libFuzzer' failed
Cloning into 'third_party/boringssl'...
remote: Enumerating objects: 161, done.
remote: Counting objects: 100% (161/161), done.
remote: Compressing objects: 100% (105/105), done.
remote: Total 68858 (delta 68), reused 105 (delta 44), pack-reused 68697
Receiving objects: 100% (68858/68858), 94.31 MiB | 789.00 KiB/s, done.
Resolving deltas: 100% (48104/48104), done.
Submodule path 'third_party/boringssl': checked out 'be2ee342d3781ddb954f91f8a7e660c6f59e87e5'
Cloning into 'third_party/boringssl-with-bazel'...
remote: Enumerating objects: 161, done.
remote: Counting objects: 100% (161/161), done.
remote: Compressing objects: 100% (105/105), done.
remote: Total 68858 (delta 68), reused 105 (delta 44), pack-reused 68697
Receiving objects: 100% (68858/68858), 94.31 MiB | 1.15 MiB/s, done.
Resolving deltas: 100% (48104/48104), done.
Submodule path 'third_party/boringssl-with-bazel': checked out '886e7d75368e3f4fab3f4d0d3584e4abfc557755'
Cloning into 'third_party/cares/cares'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 9009 (delta 0), reused 0 (delta 0), pack-reused 9008
Receiving objects: 100% (9009/9009), 5.38 MiB | 98.00 KiB/s, done.
Resolving deltas: 100% (5168/5168), done.
Submodule path 'third_party/cares/cares': checked out '3be1924221e1326df520f8498d704a5c4c8d0cce'
Cloning into 'third_party/gflags'...
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 2355 (delta 9), reused 22 (delta 9), pack-reused 2333
Receiving objects: 100% (2355/2355), 1.51 MiB | 110.00 KiB/s, done.
Resolving deltas: 100% (1374/1374), done.
Submodule path 'third_party/gflags': checked out '30dbc81fb5ffdc98ea9b14b1918bfe4e8779b26e'
Submodule 'doc' (https://github.com/gflags/gflags.git) registered for path 'doc'
Cloning into 'doc'...
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 2355 (delta 9), reused 22 (delta 9), pack-reused 2333
Receiving objects: 100% (2355/2355), 1.51 MiB | 335.00 KiB/s, done.
Resolving deltas: 100% (1374/1374), done.
Submodule path 'third_party/gflags/doc': checked out '971dd2a4fadac9cdab174c523c22df79efd63aa5'
Cloning into 'third_party/googletest'...
remote: Enumerating objects: 2, done.
remote: Counting objects: 100% (2/2), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 16411 (delta 0), reused 0 (delta 0), pack-reused 16409
Receiving objects: 100% (16411/16411), 5.65 MiB | 836.00 KiB/s, done.
Resolving deltas: 100% (12102/12102), done.
Submodule path 'third_party/googletest': checked out 'ec44c6c1675c25b9827aacd08c02433cccde7780'
Cloning into 'third_party/protobuf'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 60651 (delta 5), reused 3 (delta 1), pack-reused 60632
Receiving objects: 100% (60651/60651), 50.45 MiB | 297.00 KiB/s, done.
Resolving deltas: 100% (41177/41177), done.
Submodule path 'third_party/protobuf': checked out '2761122b810fe8861004ae785cc3ab39f384d342'
Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/benchmark'
Cloning into 'third_party/benchmark'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 4999 (delta 9), reused 26 (delta 9), pack-reused 4973
Receiving objects: 100% (4999/4999), 1.58 MiB | 90.00 KiB/s, done.
Resolving deltas: 100% (3275/3275), done.
Submodule path 'third_party/protobuf/third_party/benchmark': checked out '360e66c1c4777c99402cf8cd535aa510fee16573'
Cloning into 'third_party/zlib'...
remote: Enumerating objects: 5129, done.
remote: Total 5129 (delta 0), reused 0 (delta 0), pack-reused 5129
Receiving objects: 100% (5129/5129), 3.61 MiB | 176.00 KiB/s, done.
Resolving deltas: 100% (3604/3604), done.
Submodule path 'third_party/zlib': checked out 'cacf7f1d4e3d44d871b605da3b647f07d718623f'
Failed to recurse into submodule path 'third_party/bloaty'

from grpc-lua.

jinq0123 avatar jinq0123 commented on July 1, 2024

Need proxy to access 'https://chromium.googlesource.com'

from grpc-lua.

1923982924 avatar 1923982924 commented on July 1, 2024

If I want to write lua script ,i modify only lua script and proto in helloworld ,and recompile . Is't ok?

from grpc-lua.

jinq0123 avatar jinq0123 commented on July 1, 2024

Yes.

from grpc-lua.

1923982924 avatar 1923982924 commented on July 1, 2024

I write a lua script by modifing greeter_client.lua ,and the same as i modifing greeter_service.lua,then execute ./lua-cpp greeter_client.lua ,i get some error message

./lua-cpp: ../../src/lua/grpc_lua/client/service_stub/MethodInfo.lua:30: No such service: Register.doServiceRegister stack traceback: [C]: in function 'luapbintf.get_rpc_input_name' ../../src/lua/grpc_lua/client/service_stub/MethodInfo.lua:30: in function 'grpc_lua.client.service_stub.MethodInfo.new' ../../src/lua/grpc_lua/client/service_stub/ServiceStub.lua:231: in function 'grpc_lua.client.service_stub.ServiceStub._get_method_info' ../../src/lua/grpc_lua/client/service_stub/ServiceStub.lua:91: in function 'grpc_lua.client.service_stub.ServiceStub.sync_request' greeter_client.lua:20: in local 'main' greeter_client.lua:33: in main chunk [C]: in ?

greeter_client.lua
`
--- Hello world greeter example client.
-- greeter_client.lua

-- Current work dir: grpc-lua/examples/helloworld
package.path = "../../src/lua/?.lua;" .. package.path

local grpc = require("grpc_lua.grpc_lua")

local function main()
grpc.import_proto_file("register/Register.proto")
local stub = grpc.service_stub("x.x.x.x:80", "Register.doServiceRegister")

-- Sync request.


local services = {{serviceName="/test",tag={key="tag1",value=1},properties={key="pro",value=1}}}

local request = {services=services}
local response = assert(stub:sync_request("doServiceRegister", request))
print("Greeter received: " .. response)

-- Async request.
--  stub:async_request("SayYoo", request, function(resp)
--     print("Async greeter received: " .. resp.msg)
--     stub:shutdown()  -- to stop stub:run()
--  end)


stub:run()

end -- main()

main()

`

greeter_service.lua
`
--- Hello world greeter example server side service.
-- greeter_service.lua

local M = {}

local grpc = require("grpc_lua.grpc_lua")
grpc.import_proto_file("register/Register.proto")


--- Public functions.
-- @section public

function M.doServiceRegister(request, replier)
local response = {services={key = "Success",value=0}}
replier:reply(response);
end

return M
`

from grpc-lua.

jinq0123 avatar jinq0123 commented on July 1, 2024

No such service: Register.doServiceRegister

from grpc-lua.

1923982924 avatar 1923982924 commented on July 1, 2024

Thanks. What do i need to support lua 5.1? Can you help me?

from grpc-lua.

jinq0123 avatar jinq0123 commented on July 1, 2024

Sorry. I can't.

from grpc-lua.

1923982924 avatar 1923982924 commented on July 1, 2024

Do you have some good advices to let it support lua 5.1 ?

from grpc-lua.

jinq0123 avatar jinq0123 commented on July 1, 2024

No. I have no experience in lua51.

from grpc-lua.

Related Issues (14)

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.