Issue 235 in protobuf: ImportError: No module named google.protobuf

1,045 views
Skip to first unread message

prot...@googlecode.com

unread,
Nov 13, 2010, 4:00:05 PM11/13/10
to prot...@googlegroups.com
Status: New
Owner: ken...@google.com
Labels: Type-Defect Priority-Medium

New issue 235 by 0xioerror: ImportError: No module named google.protobuf
http://code.google.com/p/protobuf/issues/detail?id=235

What steps will reproduce the problem?

1. Get protobuf-2.3.0

2. ./configure && make && cd python && python setup.py test && python
setup.py install && cd /tmp

3.

$ python
[...]
>>> import google.protobuf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named google.protobuf

$ tree -L 3 /usr/lib/python2.7/site-packages/protobuf-2.3.0-py2.7.egg/
/usr/lib/python2.7/site-packages/protobuf-2.3.0-py2.7.egg/
├── EGG-INFO
│   ├── dependency_links.txt
│   ├── namespace_packages.txt
│   ├── PKG-INFO
│   ├── SOURCES.txt
│   ├── top_level.txt
│   └── zip-safe
└── google
├── __init__.py
├── __init__.pyc
└── protobuf
├── descriptor_pb2.py
├── descriptor_pb2.pyc
├── descriptor.py
├── descriptor.pyc
├── __init__.py
├── __init__.pyc
├── internal
├── message.py
├── message.pyc
├── reflection.py
├── reflection.pyc
├── service.py
├── service.pyc
├── service_reflection.py
├── service_reflection.pyc
├── text_format.py
└── text_format.pyc


What is the expected output? What do you see instead?

It should work.


What version of the product are you using? On what operating system?

protobuf-2.3.0

python-2.7-3

Arch Linux


prot...@googlecode.com

unread,
Nov 16, 2010, 11:09:38 PM11/16/10
to prot...@googlegroups.com
Updates:
Status: CannotReproduce

Comment #1 on issue 235 by ken...@google.com: ImportError: No module named
google.protobuf
http://code.google.com/p/protobuf/issues/detail?id=235

I am not able to reproduce this with Python 2.6.5. You'll have to provide
more information.

prot...@googlecode.com

unread,
Jun 12, 2013, 2:20:09 AM6/12/13
to prot...@googlegroups.com

Comment #2 on issue 235 by ravishan...@gmail.com: ImportError: No module
named google.protobuf
http://code.google.com/p/protobuf/issues/detail?id=235

Traceback (most recent call last):
File "C:\Python27\Scripts\mercury", line 44, in <module>
__import__("mwr.mercury.%s" % (sys.argv[1]))
File "C:\Python27\lib\site-packages\mwr\mercury\console.py", line 7, in
<module>
from mwr.droidhg.console import Console
File "C:\Python27\lib\site-packages\mwr\droidhg\__init__.py", line 1, in
<module>
from mwr.droidhg.device import Device, Devices
File "C:\Python27\lib\site-packages\mwr\droidhg\device.py", line 1, in
<module>
from mwr.cinnibar.api.builders import SystemRequestFactory
File "C:\Python27\lib\site-packages\mwr\cinnibar\api\__init__.py", line
9, in <module>
from frame import Frame
File "C:\Python27\lib\site-packages\mwr\cinnibar\api\frame.py", line 3,
in <module>
from mwr.cinnibar.api.protobuf_pb2 import Message
File "C:\Python27\lib\site-packages\mwr\cinnibar\api\protobuf_pb2.py",
line 3, in <module>
from google.protobuf import descriptor


can you guys please help me ?????

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages