python - google ad exchange request.py run error in eclipse -


When my "google dobule click exchange test script" is debugging, it runs successfully on a python terminal , but while doing this with the Eclipse Pid IDE , the following line gives me an error:

  Import realtime_bidding_pb2   

I get the error

importError: a module named realtime_bidding_pb2

I know That outsourced this module Land, but I do not know where it is or how it in eclipse pydev IDE Import.

If you use Unix like OS, then change directory to directory where files requester.py , Makefile, realtime-biding.proto (from requester.tar.gz) and execute 'make' command in shell. Realtime_bidding_pb2 file will be created.

Next you get "no import module" importError: google.protobuf. You must install Python-protobuf (command 'apt-get install python-protobuf' for Ubuntu, you must be root).

Use requester.py with the command like 'python requester.py --url =' -max_qps = 1 --seconds = 20 '.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -