Hi all, Recently we had Python protobuf 3.3.0 dependencies checking failure when running on an Ubuntu-14 behind the firewall (with proxy).
We were running $path/python-protobuf-native/3.3.0-r0/temp/run.do_install and the shell failed at this command: $path/python-protobuf-native/3.3.0-r0/recipe-sysroot-native/usr/bin/python-native/python setup.py install >From the setup.py it has install_requires = ['six>=1.9', 'setuptools']. All of this build process is behind the firewall; we need to do 'pip install' from proxy server. With proper proxy configuration we can run 'sh $path/python-protobuf-native/3.3.0-r0/temp/run.do_install' script successfully and we can see the access log from proxy server. Just the script in the whole build package and it never checked proxy and always downloaded directly, thus it generated such a build code error: " Installed $path/python-protobuf-native/3.3.0-r0/image/home/rdbuild/build/VT410/le-2-2-r85/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/python-protobuf-native/3.3.0-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/protobuf-3.3.0-py2.7.egg Processing dependencies for protobuf==3.3.0 Searching for six>=1.9 Reading https://pypi.python.org/simple/six/ Download error on https://pypi.python.org/simple/six/: [Errno 101] Network is unreachable -- Some packages may not be found! Couldn't find index page for 'six' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.python.org/simple/ Download error on https://pypi.python.org/simple/: [Errno 101] Network is unreachable -- Some packages may not be found! No local packages or working download links found for six>=1.9 error: Could not find suitable distribution for Requirement.parse('six>=1.9') ERROR: python setup.py install execution failed. WARNING: $path/python-protobuf-native/3.3.0-r0/temp/run.do_install.42509:1 exit 1 from 'exit 1' " Since this is a poky yocto package, I've tried to apply Yocto proxy configurations (https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy) but still failed. Any idea why protobuf dependencies checking never goes with proxy ? proxy configurations under /etc/profile: $ env |grep proxy ftps_proxy=https://172.16.100.51:3128/ http_proxy=http://172.16.100.51:3128/ ftp_proxy=http://172.16.100.51:3128/ all_proxy=http://172.16.100.51:3128/ GIT_PROXY_COMMAND=oe-git-proxy https_proxy=https://172.16.100.51:3128/ ALL_PROXY=http://172.16.100.51:3128/ Thanks everyone who could give us some hints. -- 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 https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
