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

Tartiflette fails to build libgraphqlparser on install #445

Closed
mazzi opened this issue Sep 29, 2020 · 1 comment
Closed

Tartiflette fails to build libgraphqlparser on install #445

mazzi opened this issue Sep 29, 2020 · 1 comment

Comments

@mazzi
Copy link
Contributor

mazzi commented Sep 29, 2020

Tartiflette fails to build libgraphqlparser on install using poetry install.
Looks similar to #331 but different.

  • Tartiflette version: 1.2.1
  • Python version: 3.8
  • Executed in docker: No
  • Bison: 3.7.2
  • Flex: 2.6.4
  • CMake: 3.18.3
  • libgraphqlparser: stable 0.7.0 (bottled)
[EnvCommandError]
Command ['/Users/mazzi/Library/Caches/pypoetry/virtualenvs/aratrum-SLTIR14w-py3.8/bin/pip', 'install', '--no-deps', 'tartiflette==1.2.1'] errored with the following return code 1, and output:
Collecting tartiflette==1.2.1
  Using cached tartiflette-1.2.1.tar.gz (179 kB)
Building wheels for collected packages: tartiflette
  Building wheel for tartiflette (setup.py): started
  Building wheel for tartiflette (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 255:
   command: /Users/mazzi/Library/Caches/pypoetry/virtualenvs/aratrum-SLTIR14w-py3.8/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/pw/39lpzqlx4d73zp5kn95wfgsw0000gn/T/pip-install-zapcin2z/tartiflette/setup.py'"'"'; __file__='"'"'/private/var/folders/pw/39lpzqlx4d73zp5kn95wfgsw0000gn/T/pip-install-zapcin2z/tartiflette/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/pw/39lpzqlx4d73zp5kn95wfgsw0000gn/T/pip-wheel-7r75nt5m
       cwd: /private/var/folders/pw/39lpzqlx4d73zp5kn95wfgsw0000gn/T/pip-install-zapcin2z/tartiflette/
  Complete output (19 lines):
  running bdist_wheel
  running build
  running build_py
  CMake Warning (dev):
    Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
    --help-policy CMP0042" for policy details.  Use the cmake_policy command to
    set the policy and suppress this warning.

    MACOSX_RPATH is not specified for the following targets:

     graphqlparser

  This warning is for project developers.  Use -Wno-dev to suppress it.

  make[2]: *** [lexer.cpp] Error 1
  make[2]: *** Deleting file `lexer.cpp'
  make[1]: *** [CMakeFiles/graphqlparser.dir/all] Error 2
  make: *** [all] Error 2
  Libgraphqlparser compilation has failed
  ----------------------------------------
  ERROR: Failed building wheel for tartiflette
  Running setup.py clean for tartiflette
Failed to build tartiflette
Installing collected packages: tartiflette
    Running setup.py install for tartiflette: started
    Running setup.py install for tartiflette: finished with status 'error'
    ERROR: Command errored out with exit status 255:
     command: /Users/mazzi/Library/Caches/pypoetry/virtualenvs/aratrum-SLTIR14w-py3.8/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/pw/39lpzqlx4d73zp5kn95wfgsw0000gn/T/pip-install-zapcin2z/tartiflette/setup.py'"'"'; __file__='"'"'/private/var/folders/pw/39lpzqlx4d73zp5kn95wfgsw0000gn/T/pip-install-zapcin2z/tartiflette/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/pw/39lpzqlx4d73zp5kn95wfgsw0000gn/T/pip-record-gjiileq8/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mazzi/Library/Caches/pypoetry/virtualenvs/aratrum-SLTIR14w-py3.8/include/site/python3.8/tartiflette
         cwd: /private/var/folders/pw/39lpzqlx4d73zp5kn95wfgsw0000gn/T/pip-install-zapcin2z/tartiflette/
    Complete output (19 lines):
    running install
    running build
    running build_py
    CMake Warning (dev):
      Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
      --help-policy CMP0042" for policy details.  Use the cmake_policy command to
      set the policy and suppress this warning.

      MACOSX_RPATH is not specified for the following targets:

       graphqlparser

    This warning is for project developers.  Use -Wno-dev to suppress it.

    make[2]: *** [lexer.cpp] Error 1
    make[2]: *** Deleting file `lexer.cpp'
    make[1]: *** [CMakeFiles/graphqlparser.dir/all] Error 2
    make: *** [all] Error 2
    Libgraphqlparser compilation has failed
    ----------------------------------------
ERROR: Command errored out with exit status 255: /Users/mazzi/Library/Caches/pypoetry/virtualenvs/aratrum-SLTIR14w-py3.8/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/pw/39lpzqlx4d73zp5kn95wfgsw0000gn/T/pip-install-zapcin2z/tartiflette/setup.py'"'"'; __file__='"'"'/private/var/folders/pw/39lpzqlx4d73zp5kn95wfgsw0000gn/T/pip-install-zapcin2z/tartiflette/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/pw/39lpzqlx4d73zp5kn95wfgsw0000gn/T/pip-record-gjiileq8/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mazzi/Library/Caches/pypoetry/virtualenvs/aratrum-SLTIR14w-py3.8/include/site/python3.8/tartiflette Check the logs for full command output.

Also in my ~/.bash_profile

export PATH="/usr/local/opt/bison/bin:$PATH"
export PATH="/usr/local/opt/flex/bin:$PATH"

export LDFLAGS="-L/usr/local/opt/flex/lib"
export CPPFLAGS="-I/usr/local/opt/flex/include"
export LDFLAGS="-L/usr/local/opt/bison/lib"

Thanks for your support!

@abusi
Copy link
Contributor

abusi commented Aug 3, 2021

Tartiflette 1.4.0 comes with wheels :) this should not be a problem anymore.

@abusi abusi closed this as completed Aug 3, 2021
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