Git Product home page Git Product logo

Comments (8)

JohannesTK avatar JohannesTK commented on April 27, 2024 1

You have most likely missed compiling the gRPC interface for the Environment Server.

chmod +x compile_protos.sh; ./compile_protos.sh

from active-qa.

marcoaleixo avatar marcoaleixo commented on April 27, 2024

Me too.

from active-qa.

TomLaMantia avatar TomLaMantia commented on April 27, 2024

I seem to be getting this as well. If I comment out from px.proto import aqa_pb2 from active-qa/px/nmt/environment_client.py, then I get a different error: A server address must be provided.

I don't see anything related to aqa_pb2 in the commit history either.

I'm using Python 3 (same issue with Python 2)

from active-qa.

bvnagaraju avatar bvnagaraju commented on April 27, 2024

trying just do re-formulator inferences ..
getting same import error ..maybe something to do with enums
from px.proto import aqa_pb2
ImportError: cannot import name 'aqa_pb2'

from active-qa.

bvnagaraju avatar bvnagaraju commented on April 27, 2024

thank you. I realized it last night:)

from active-qa.

christianbuck avatar christianbuck commented on April 27, 2024

Does this resolve the issue?

You have most likely missed compiling the gRPC interface for the Environment Server.

chmod +x compile_protos.sh; ./compile_protos.sh

from active-qa.

mady143 avatar mady143 commented on April 27, 2024

HI, @JohannesTK ,

Actually i Compiled the environment server but i could't resolve the issue like i am getting the error as
(my_name) manikantha@Manikantha-PC:~/Downloads/active-qa-master$ chmod +x compile_protos.sh; ./compile_protos.sh
WORK_DIR: ./px/
~/Downloads/active-qa-master/px ~/Downloads/active-qa-master
~/Downloads/active-qa-master

(my_name) manikantha@Manikantha-PC:/Downloads/active-qa-master$
(my_name) manikantha@Manikantha-PC:
/Downloads/active-qa-master$ python -m px.environments.bidaf_server --port=10000 --squad_data_dir=data/squad --bidaf_shared_file=data/bidaf/shared.json --bidaf_model_dir=data/bidaf/
/home/manikantha/my_name/local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:458: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/manikantha/my_name/local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:459: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/manikantha/my_name/local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:460: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/manikantha/my_name/local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:461: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/manikantha/my_name/local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:462: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/manikantha/my_name/local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:465: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
/home/manikantha/my_name/local/lib/python3.6/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/manikantha/Downloads/active-qa-master/px/environments/bidaf_server.py", line 38, in
from px.proto import aqa_pb2_grpc
File "/home/manikantha/Downloads/active-qa-master/px/proto/aqa_pb2_grpc.py", line 4, in
import aqa_pb2 as aqa__pb2
ModuleNotFoundError: No module named 'aqa_pb2'

can any one help me in resolving this issue
Note: I am using Python 3.6.9

Thanks And Regards,
Manikantha Sekhar.

Happy Codding..

from active-qa.

mady143 avatar mady143 commented on April 27, 2024

You have most likely missed compiling the gRPC interface for the Environment Server.

chmod +x compile_protos.sh; ./compile_protos.sh

Even though i am getting the same error no module aqa_pb2 error i was unbale to go forword without resolving this issue could any one help me

Thanks & Regards,
Manikantha Sekhar

from active-qa.

Related Issues (20)

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.