Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in ipdb setup command: Invalid environment marker: python_version >= "3.3" #38

Closed
JsHuang opened this issue Dec 29, 2017 · 3 comments

Comments

@JsHuang
Copy link

JsHuang commented Dec 29, 2017

I'm installing angr in development mode, hower, while after the step "./setup.sh -e driller" (I use the "-e" option to create a virtualenv),I got some error as below:

[+] Installing some other helpful stuff (logging to /tmp/setup-6381).
Collecting ipython
/home/jshuang/.virtualenvs/driller/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/home/jshuang/.virtualenvs/driller/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached ipython-5.5.0-py2-none-any.whl
Collecting pylint
  Using cached pylint-1.8.1-py2.py3-none-any.whl
Collecting ipdb
  Using cached ipdb-0.10.3.tar.gz
    Complete output from command python setup.py egg_info:
    error in ipdb setup command: Invalid environment marker: python_version >= "3.3"
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-nAD0Lf/ipdb/
[!!] Something failed to install. Check /tmp/setup-6381 for details, or read it here:

it seems like the python version is not correct ,but angr is bulid on pyhton2. The machine I build angr is a
64bit ubuntu(14.04 desktop).
How can I fix this?

@rhelmot
Copy link
Member

rhelmot commented Dec 29, 2017

This looks like an issue with your package cache being shared between a python2 and a python3 install. All it's trying to do is install ipdb but it's getting a version for python3 from the cache.

@JsHuang
Copy link
Author

JsHuang commented Dec 29, 2017

@rhelmot But if I using a python3 virtual env, the angr building also failed.

jshuang@ubuntu: ~/angr-dev$ mkvirtualenv -p python3 Driller
Running virtualenv with interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in Driller/bin/python3
Also creating executable in Driller/bin/python
Installing setuptools, pip...done.
virtualenvwrapper.user_scripts creating /home/jshuang/.virtualenvs/Driller/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/jshuang/.virtualenvs/Driller/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/jshuang/.virtualenvs/Driller/bin/preactivate
virtualenvwrapper.user_scripts creating /home/jshuang/.virtualenvs/Driller/bin/postactivate
virtualenvwrapper.user_scripts creating /home/jshuang/.virtualenvs/Driller/bin/get_env_details
(Driller)jshuang@ubuntu:~/angr-dev$ ./setup.sh

the error message is :

[+] Installing angr.
[-] pip-installing: unicorn.
Downloading/unpacking unicorn
  Ignoring link https://pypi.python.org/packages/76/62/9e420953d6442698691d515f68e959a93ac15dd855e143f3ed15af4618d6/unicorn-1.0.0rc3.tar.gz#md5=1a7f0c9b9ed5d4c9e1ef360b89fa65dc (from https://pypi.python.org/simple/unicorn/), version 1.0.0rc3 is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/af/35/5d17a778c8f96f38af3ad1926ab296b4e61c05154b1af6c58c7b20697890/unicorn-1.0.0rc2.tar.gz#md5=fac504392301483dd1df2fcec90b1714 (from https://pypi.python.org/simple/unicorn/), version 1.0.0rc2 is a pre-release (use --pre to allow).
  Using version 1.0.1 (newest of versions: 1.0.1, 1.0.0)
  Downloading from URL https://pypi.python.org/packages/7d/7f/47fe864fe967e91de2d57677618cffc91bee3918f0a3cdbaa6500b36855e/unicorn-1.0.1.tar.gz#md5=d49b9c08e991e2effb8711d83a77fcd5 (from https://pypi.python.org/simple/unicorn/)
  Running setup.py (path:/home/jshuang/.virtualenvs/Driller/build/unicorn/setup.py) egg_info for package unicorn
    running egg_info
    creating pip-egg-info/unicorn.egg-info
    writing dependency_links to pip-egg-info/unicorn.egg-info/dependency_links.txt
    writing pip-egg-info/unicorn.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/unicorn.egg-info/top_level.txt
    writing manifest file 'pip-egg-info/unicorn.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found
    
    reading manifest file 'pip-egg-info/unicorn.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/unicorn.egg-info/SOURCES.txt'
Installing collected packages: unicorn
  Running setup.py install for unicorn
    running install
    running build
    Building C extensions
    cd qemu && \
    	./configure --cc="cc" --extra-cflags="-DUNICORN_HAS_X86 -DUNICORN_HAS_ARM -DUNICORN_HAS_ARMEB -DUNICORN_HAS_M68K -DUNICORN_HAS_ARM64 -DUNICORN_HAS_MIPS -DUNICORN_HAS_MIPSEL -DUNICORN_HAS_MIPS64 -DUNICORN_HAS_MIPS64EL -DUNICORN_HAS_SPARC -fPIC -fvisibility=hidden" --target-list="x86_64-softmmu, arm-softmmu, armeb-softmmu, m68k-softmmu, aarch64-softmmu, mips-softmmu, mipsel-softmmu, mips64-softmmu, mips64el-softmmu, sparc-softmmu,sparc64-softmmu,"
    
    ERROR: Cannot use 'python', Python 2.4 or later is required.
           Note that Python 3 or later is not yet supported.
           Use --python=/path/to/python to specify a supported Python.
    
    make: *** [qemu/config-host.h-timestamp] Error 1

···

@rhelmot
Copy link
Member

rhelmot commented Dec 29, 2017

well... yes. angr doesn't work under python3. As far as I can tell the problem is with your environment being screwed up.

@JsHuang JsHuang closed this as completed Jan 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants