Can not install , build failed

Issue #29 new
parahelox
created an issue

I have build libmongoc by mingw32 and 64.

env: - annocoda python3.6 - compiler=mingw32 (I found vc14 not support the .h mingw32 build )

I tried two

64bit

pip install --install-option="--default-libmongoc" --install-option="C:\Program Files\libmongoc" --install-option="--default-libbson" --install-option="C:\Program Files\libbson" monary

32bit

pip install --install-option="--default-libmongoc" --install-option="C:\Program Files (x86)\libmongoc" --install-option="--default-libbson" --install-option="C:\Program Files (x86)\libbson" monary

Both get error like (this is 32 bit error outout)

(py3) C:\Users\Kasim>pip install --install-option="--default-libmongoc" --install-option="C:\Program Files (x86)\libmongoc" --install-option="--default-libbson" --install-option="C:\Program Files (x86)\libbson" monary
D:\Anaconda3\envs\py3\lib\site-packages\pip\commands\install.py:194: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
  cmdoptions.check_install_build_global(options)
Collecting monary
  Downloading https://mirrors.aliyun.com/pypi/packages/35/b6/230a3ec114337e324f372106b83a88efe2043f9adda551292ff57cc1262d/Monary-0.5.0.tar.gz
Requirement already satisfied: pymongo in d:\anaconda3\envs\py3\lib\site-packages (from monary)
Requirement already satisfied: numpy in d:\anaconda3\envs\py3\lib\site-packages (from monary)
Skipping bdist_wheel for monary, due to binaries being disabled for it.
Installing collected packages: monary
  Running setup.py install for monary ... error
    Complete output from command D:\Anaconda3\envs\py3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Kasim\\AppData\\Local\\Temp\\pip-build-co5ot1jn\\monary\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n
', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Kasim\AppData\Local\Temp\pip-v3yuaiv2-record\install-record.txt --single-version-externally-managed --compile --default-libmongoc "C:\Program Files (x86)\libmongoc" --default-l
ibbson "C:\Program Files (x86)\libbson":
    C:\Users\Kasim\AppData\Local\Temp\pip-build-co5ot1jn\monary\setup.py:90: UserWarning: WARNING: the python package pkgconfig is not installed. If you have pkg-config installed on your system, please install the python's pkgconfig, e.g. "pip install pkgconfi
g". Will use libmongoc=C:\Program Files (x86)\libmongoc and libbson=C:\Program Files (x86)\libbson instead.
      % (mongoc_src, bson_src)))
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.6
    creating build\lib.win-amd64-3.6\monary
    copying monary\datehelper.py -> build\lib.win-amd64-3.6\monary
    copying monary\monary.py -> build\lib.win-amd64-3.6\monary
    copying monary\monary_param.py -> build\lib.win-amd64-3.6\monary
    copying monary\ordereddict.py -> build\lib.win-amd64-3.6\monary
    copying monary\write_concern.py -> build\lib.win-amd64-3.6\monary
    copying monary\__init__.py -> build\lib.win-amd64-3.6\monary
    running build_ext
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Kasim\AppData\Local\Temp\pip-build-co5ot1jn\monary\setup.py", line 160, in <module>
        test_suite=test_suite,
      File "D:\Anaconda3\envs\py3\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "D:\Anaconda3\envs\py3\lib\distutils\dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "D:\Anaconda3\envs\py3\lib\distutils\dist.py", line 974, in run_command
        cmd_obj.run()
      File "D:\Anaconda3\envs\py3\lib\site-packages\setuptools-27.2.0-py3.6.egg\setuptools\command\install.py", line 61, in run
      File "D:\Anaconda3\envs\py3\lib\distutils\command\install.py", line 545, in run
        self.run_command('build')
      File "D:\Anaconda3\envs\py3\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "D:\Anaconda3\envs\py3\lib\distutils\dist.py", line 974, in run_command
        cmd_obj.run()
      File "D:\Anaconda3\envs\py3\lib\distutils\command\build.py", line 135, in run
        self.run_command(cmd_name)
      File "D:\Anaconda3\envs\py3\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "D:\Anaconda3\envs\py3\lib\distutils\dist.py", line 974, in run_command
        cmd_obj.run()
      File "D:\Anaconda3\envs\py3\lib\site-packages\setuptools-27.2.0-py3.6.egg\setuptools\command\build_ext.py", line 77, in run
      File "D:\Anaconda3\envs\py3\lib\site-packages\Cython\Distutils\old_build_ext.py", line 185, in run
        _build_ext.build_ext.run(self)
      File "D:\Anaconda3\envs\py3\lib\distutils\command\build_ext.py", line 308, in run
        force=self.force)
      File "D:\Anaconda3\envs\py3\lib\distutils\ccompiler.py", line 1031, in new_compiler
        return klass(None, dry_run, force)
      File "D:\Anaconda3\envs\py3\lib\distutils\cygwinccompiler.py", line 285, in __init__
        CygwinCCompiler.__init__ (self, verbose, dry_run, force)
      File "D:\Anaconda3\envs\py3\lib\distutils\cygwinccompiler.py", line 129, in __init__
        if self.ld_version >= "2.10.90":
    TypeError: '>=' not supported between instances of 'NoneType' and 'str'

    ----------------------------------------
Command "D:\Anaconda3\envs\py3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Kasim\\AppData\\Local\\Temp\\pip-build-co5ot1jn\\monary\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(
compile(code, __file__, 'exec'))" install --record C:\Users\Kasim\AppData\Local\Temp\pip-v3yuaiv2-record\install-record.txt --single-version-externally-managed --compile --default-libmongoc "C:\Program Files (x86)\libmongoc" --default-libbson "C:\Program Files
 (x86)\libbson"" failed with error code 1 in C:\Users\Kasim\AppData\Local\Temp\pip-build-co5ot1jn\monary\

Comments (0)

  1. Log in to comment