On Wed, Nov 5, 2014 at 11:32 AM, satyanarayan rao <
[email protected]> wrote:

> Thanks for the reply!
> I do not see the solution related to my problem.
>
> One thing that is bothering me is, i am not able to use setuptools that I
> have locally installed.
> It always tries to download the older version mentioned in "ez_setup.py".
> Even I am using virtualenv
>
This is a known issue of protobuf's setup.py. We tried to find a better
solution but haven't succeeded before the targeted release date of 2.6. You
are welcome to send us a patch if you know how to fix the problem.


>
> I hope I am making sense.
>
> Thanks,
> Satya
>
>
> Satyanarayan Rao
> Research Scholar, USC LA (http://www.usc.edu/)
> Los Angeles USA
>
> Woked at SCFBio IIT Delhi (http://www.scfbio-iitd.res.in/)
> Education ABV-IIITM Gwalior (http://www.iiitm.ac.in/)
>
> On Wed, Nov 5, 2014 at 8:18 AM, Feng Xiao <[email protected]> wrote:
>
>> Can you follow the suggestion from gps on this thread and see if it works
>> for you?
>> https://github.com/google/protobuf/issues/7
>>
>> On Wed, Nov 5, 2014 at 10:50 AM, satyanarayan rao <
>> [email protected]> wrote:
>>
>>>
>>> Hi All,
>>>
>>> I am not able to install protobuf (the python version).
>>> I am getting the following error.
>>> ========================================================================
>>> Traceback (most recent call last):
>>>   File "/opt/env/bin/easy_install", line 11, in <module>
>>>     sys.exit(main())
>>>   File
>>> "/opt/env/lib/python3.4/site-packages/setuptools/command/easy_install.py",
>>> line 1943, in main
>>>     with_ei_usage(lambda:
>>>   File
>>> "/opt/env/lib/python3.4/site-packages/setuptools/command/easy_install.py",
>>> line 1930, in with_ei_usage
>>>     return f()
>>>   File
>>> "/opt/env/lib/python3.4/site-packages/setuptools/command/easy_install.py",
>>> line 1947, in <lambda>
>>>     distclass=DistributionWithoutHelpCommands, **kw
>>>   File "/usr/local/lib/python3.4/distutils/core.py", line 149, in setup
>>>     dist.run_commands()
>>>   File "/usr/local/lib/python3.4/distutils/dist.py", line 955, in
>>> run_commands
>>>     self.run_command(cmd)
>>>   File "/usr/local/lib/python3.4/distutils/dist.py", line 974, in
>>> run_command
>>>     cmd_obj.run()
>>>   File
>>> "/opt/env/lib/python3.4/site-packages/setuptools/command/easy_install.py",
>>> line 360, in run
>>>     self.easy_install(spec, not self.no_deps)
>>>   File
>>> "/opt/env/lib/python3.4/site-packages/setuptools/command/easy_install.py",
>>> line 595, in easy_install
>>>     return self.install_item(spec, dist.location, tmpdir, deps)
>>>   File
>>> "/opt/env/lib/python3.4/site-packages/setuptools/command/easy_install.py",
>>> line 625, in install_item
>>>     dists = self.install_eggs(spec, download, tmpdir)
>>>   File
>>> "/opt/env/lib/python3.4/site-packages/setuptools/command/easy_install.py",
>>> line 822, in install_eggs
>>>     return self.build_and_install(setup_script, setup_base)
>>>   File
>>> "/opt/env/lib/python3.4/site-packages/setuptools/command/easy_install.py",
>>> line 1028, in build_and_install
>>>     self.run_setup(setup_script, setup_base, args)
>>>   File
>>> "/opt/env/lib/python3.4/site-packages/setuptools/command/easy_install.py",
>>> line 1013, in run_setup
>>>     run_setup(setup_script, args)
>>>   File "/opt/env/lib/python3.4/site-packages/setuptools/sandbox.py",
>>> line 50, in run_setup
>>>     lambda: execfile(
>>>   File "/opt/env/lib/python3.4/site-packages/setuptools/sandbox.py",
>>> line 100, in run
>>>     return func()
>>>   File "/opt/env/lib/python3.4/site-packages/setuptools/sandbox.py",
>>> line 52, in <lambda>
>>>     {'__file__':setup_script, '__name__':'__main__'}
>>>   File "/opt/env/lib/python3.4/site-packages/setuptools/compat.py", line
>>> 78, in execfile
>>>     exec(compile(source, fn, 'exec'), globs, locs)
>>>   File "setup.py", line 200, in <module>
>>>   File "/usr/local/lib/python3.4/distutils/core.py", line 109, in setup
>>>     _setup_distribution = dist = klass(attrs)
>>>   File "/opt/env/lib/python3.4/site-packages/setuptools/dist.py", line
>>> 260, in __init__
>>>     self.fetch_build_eggs(attrs.pop('setup_requires'))
>>>   File "/opt/env/lib/python3.4/site-packages/setuptools/dist.py", line
>>> 285, in fetch_build_eggs
>>>     replace_conflicting=True
>>>   File "/opt/env/lib/python3.4/site-packages/pkg_resources.py", line
>>> 631, in resolve
>>>     dist = best[req.key] = env.best_match(req, ws, installer)
>>>   File "/opt/env/lib/python3.4/site-packages/pkg_resources.py", line
>>> 871, in best_match
>>>     return self.obtain(req, installer)
>>>   File "/opt/env/lib/python3.4/site-packages/pkg_resources.py", line
>>> 883, in obtain
>>>     return installer(requirement)
>>>   File "/opt/env/lib/python3.4/site-packages/setuptools/dist.py", line
>>> 335, in fetch_build_egg
>>>     return cmd.easy_install(req)
>>>   File
>>> "/opt/env/lib/python3.4/site-packages/setuptools/command/easy_install.py",
>>> line 595, in easy_install
>>>     return self.install_item(spec, dist.location, tmpdir, deps)
>>>   File
>>> "/opt/env/lib/python3.4/site-packages/setuptools/command/easy_install.py",
>>> line 625, in install_item
>>>     dists = self.install_eggs(spec, download, tmpdir)
>>>   File
>>> "/opt/env/lib/python3.4/site-packages/setuptools/command/easy_install.py",
>>> line 822, in install_eggs
>>>     return self.build_and_install(setup_script, setup_base)
>>>   File
>>> "/opt/env/lib/python3.4/site-packages/setuptools/command/easy_install.py",
>>> line 1028, in build_and_install
>>>     self.run_setup(setup_script, setup_base, args)
>>>   File
>>> "/opt/env/lib/python3.4/site-packages/setuptools/command/easy_install.py",
>>> line 1013, in run_setup
>>>     run_setup(setup_script, args)
>>>   File "/opt/env/lib/python3.4/site-packages/setuptools/sandbox.py",
>>> line 50, in run_setup
>>>     lambda: execfile(
>>>   File "/opt/env/lib/python3.4/site-packages/setuptools/sandbox.py",
>>> line 100, in run
>>>     return func()
>>>   File "/opt/env/lib/python3.4/site-packages/setuptools/sandbox.py",
>>> line 52, in <lambda>
>>>     {'__file__':setup_script, '__name__':'__main__'}
>>>   File "/opt/env/lib/python3.4/site-packages/setuptools/compat.py", line
>>> 78, in execfile
>>>     exec(compile(source, fn, 'exec'), globs, locs)
>>>   File "setup.py", line 18, in <module>
>>>   File "/tmp/easy_install-4w8xf1rk/protobuf-2.6.1/ez_setup.py", line 112
>>>     except pkg_resources.VersionConflict, e:
>>>                                         ^
>>> SyntaxError: invalid syntax
>>>
>>>
>>> ==========================================================================
>>>
>>> I tried downloading and local installation, but it did not work.
>>> I see that its 2to3 problem. Is there any way out?
>>>
>>> Thanks,
>>> Satya
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Protocol Buffers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/protobuf.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to