{"action":"created","issue":{"url":"https://api.github.com/repos/openai/universe/issues/51","repository_url":"https://api.github.com/repos/openai/universe","labels_url":"https://api.github.com/repos/openai/universe/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/openai/universe/issues/51/comments","events_url":"https://api.github.com/repos/openai/universe/issues/51/events","html_url":"https://github.com/openai/universe/issues/51","id":194846207,"number":51,"title":"fastzbarlight build failed on MacOSX 10.11.6","user":{"login":"duguyue100","id":939553,"avatar_url":"https://avatars.githubusercontent.com/u/939553?v=3","gravatar_id":"","url":"https://api.github.com/users/duguyue100","html_url":"https://github.com/duguyue100","followers_url":"https://api.github.com/users/duguyue100/followers","following_url":"https://api.github.com/users/duguyue100/following{/other_user}","gists_url":"https://api.github.com/users/duguyue100/gists{/gist_id}","starred_url":"https://api.github.com/users/duguyue100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duguyue100/subscriptions","organizations_url":"https://api.github.com/users/duguyue100/orgs","repos_url":"https://api.github.com/users/duguyue100/repos","events_url":"https://api.github.com/users/duguyue100/events{/privacy}","received_events_url":"https://api.github.com/users/duguyue100/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-11T18:08:01Z","updated_at":"2016-12-11T18:15:13Z","closed_at":null,"body":"Hi,\r\n\r\nI'm here to report a potential bug. When I use `pip install -e .` to install universe on my mac, it doesn't work when the package `fastzbarlight` tried to compile it's own `zbar` source. There are actually not much to tell in the error message, it simply says\r\n\r\n```\r\nCould not build fastzbarlight: Command '['./configure', '--disable-dependency-tracking', '--without-python', '--without-qt', '--disable-video', '--without-gtk', '--without-imagemagick', '--with-x=no', 'CFLAGS=-Wall -Wno-parentheses -D_FORTIFY_SOURCE=0 -O3 -fPIC']' returned non-zero exit status 1.\r\n```\r\n\r\nSo I ended up pulling `fastzbarlight`'s source, install `zbar` from homebrew, disabled `Build` class in the `setup.py`, changing `include` and `lib` folder to homebrew's `zbar` build.\r\n\r\nI hope this will help people who runs into the similar situation."},"comment":{"url":"https://api.github.com/repos/openai/universe/issues/comments/266297543","html_url":"https://github.com/openai/universe/issues/51#issuecomment-266297543","issue_url":"https://api.github.com/repos/openai/universe/issues/51","id":266297543,"user":{"login":"duguyue100","id":939553,"avatar_url":"https://avatars.githubusercontent.com/u/939553?v=3","gravatar_id":"","url":"https://api.github.com/users/duguyue100","html_url":"https://github.com/duguyue100","followers_url":"https://api.github.com/users/duguyue100/followers","following_url":"https://api.github.com/users/duguyue100/following{/other_user}","gists_url":"https://api.github.com/users/duguyue100/gists{/gist_id}","starred_url":"https://api.github.com/users/duguyue100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duguyue100/subscriptions","organizations_url":"https://api.github.com/users/duguyue100/orgs","repos_url":"https://api.github.com/users/duguyue100/repos","events_url":"https://api.github.com/users/duguyue100/events{/privacy}","received_events_url":"https://api.github.com/users/duguyue100/received_events","type":"User","site_admin":false},"created_at":"2016-12-11T18:15:13Z","updated_at":"2016-12-11T18:15:13Z","body":"I'm not sure I can identify them or reproduce it anymore, but here is the complete message when universe tried to install `fastzbarlight`, I'm installing universe with Anaconda by the way.\r\n\r\n```\r\nRunning setup.py install for fastzbarlight ... error\r\n    Complete output from command /Users/dgyHome/anaconda/bin/python -u -c \"import setuptools, tokenize;__file__='/private/var/folders/ps/zj4v30916pjd6zt21kc3793h0000gn/T/pip-build-3Y8iLK/fastzbarlight/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" install --record /var/folders/ps/zj4v30916pjd6zt21kc3793h0000gn/T/pip-b0VbT1-record/install-record.txt --single-version-externally-managed --compile:\r\n    /Users/dgyHome/anaconda/lib/python2.7/distutils/extension.py:133: UserWarning: Unknown Extension options: 'optional'\r\n      warnings.warn(msg)\r\n    running install\r\n    running build\r\n    checking for a BSD-compatible install... /usr/bin/install -c\r\n    checking whether build environment is sane... yes\r\n    checking for a thread-safe mkdir -p... config/install-sh -c -d\r\n    checking for gawk... no\r\n    checking for mawk... no\r\n    checking for nawk... no\r\n    checking for awk... awk\r\n    checking whether make sets $(MAKE)... yes\r\n    checking build system type... i386-apple-darwin15.6.0\r\n    checking host system type... i386-apple-darwin15.6.0\r\n    checking for style of include used by make... GNU\r\n    checking for gcc... gcc\r\n    checking for C compiler default output file name... a.out\r\n    checking whether the C compiler works... yes\r\n    checking whether we are cross compiling... no\r\n    checking for suffix of executables...\r\n    checking for suffix of object files... o\r\n    checking whether we are using the GNU C compiler... yes\r\n    checking whether gcc accepts -g... yes\r\n    checking for gcc option to accept ISO C89... none needed\r\n    checking dependency style of gcc... none\r\n    checking for a sed that does not truncate output... /usr/bin/sed\r\n    checking for grep that handles long lines and -e... /usr/bin/grep\r\n    checking for egrep... /usr/bin/grep -E\r\n    checking for fgrep... /usr/bin/grep -F\r\n    checking for ld used by gcc... /opt/local/bin/ld\r\n    checking if the linker (/opt/local/bin/ld) is GNU ld... no\r\n    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B\r\n    checking the name lister (/usr/bin/nm -B) interface... BSD nm\r\n    checking whether ln -s works... yes\r\n    checking the maximum length of command line arguments... 196608\r\n    checking whether the shell understands some XSI constructs... yes\r\n    checking whether the shell understands \"+=\"... yes\r\n    checking for /opt/local/bin/ld option to reload object files... -r\r\n    checking for objdump... no\r\n    checking how to recognize dependent libraries... pass_all\r\n    checking for ar... ar\r\n    checking for strip... strip\r\n    checking for ranlib... ranlib\r\n    checking command to parse /usr/bin/nm -B output from gcc object... ok\r\n    checking for dsymutil... dsymutil\r\n    checking for nmedit... nmedit\r\n    checking for lipo... lipo\r\n    checking for otool... otool\r\n    checking for otool64... no\r\n    checking for -single_module linker flag... yes\r\n    checking for -exported_symbols_list linker flag... yes\r\n    checking how to run the C preprocessor... gcc -E\r\n    checking for ANSI C header files... yes\r\n    checking for sys/types.h... yes\r\n    checking for sys/stat.h... yes\r\n    checking for stdlib.h... yes\r\n    checking for string.h... yes\r\n    checking for memory.h... yes\r\n    checking for strings.h... yes\r\n    checking for inttypes.h... yes\r\n    checking for stdint.h... yes\r\n    checking for unistd.h... yes\r\n    checking for dlfcn.h... yes\r\n    checking for objdir... .libs\r\n    checking if gcc supports -fno-rtti -fno-exceptions... no\r\n    checking for gcc option to produce PIC... -fno-common -DPIC\r\n    checking if gcc PIC flag -fno-common -DPIC works... yes\r\n    checking if gcc static flag -static works... no\r\n    checking if gcc supports -c -o file.o... yes\r\n    checking if gcc supports -c -o file.o... (cached) yes\r\n    checking whether the gcc linker (/opt/local/bin/ld) supports shared libraries... yes\r\n    checking dynamic linker characteristics... darwin15.6.0 dyld\r\n    checking how to hardcode library paths into programs... immediate\r\n    checking for dlopen in -ldl... yes\r\n    checking whether a program can dlopen itself... yes\r\n    checking whether a statically linked program can dlopen itself... yes\r\n    checking whether stripping libraries is possible... yes\r\n    checking if libtool supports shared libraries... yes\r\n    checking whether to build shared libraries... yes\r\n    checking whether to build static libraries... yes\r\n    checking for windres... no\r\n    checking host system type... (cached) i386-apple-darwin15.6.0\r\n    checking for gcc... (cached) gcc\r\n    checking whether we are using the GNU C compiler... (cached) yes\r\n    checking whether gcc accepts -g... (cached) yes\r\n    checking for gcc option to accept ISO C89... (cached) none needed\r\n    checking dependency style of gcc... (cached) none\r\n    checking whether gcc and cc understand -c and -o together... yes\r\n    checking for g++... g++\r\n    checking whether we are using the GNU C++ compiler... yes\r\n    checking whether g++ accepts -g... yes\r\n    checking dependency style of g++... none\r\n    checking whether we are using the GNU C++ compiler... (cached) yes\r\n    checking whether g++ accepts -g... (cached) yes\r\n    checking dependency style of g++... (cached) none\r\n    checking how to run the C++ preprocessor... g++ -E\r\n    checking for ld used by g++... /opt/local/bin/ld\r\n    checking if the linker (/opt/local/bin/ld) is GNU ld... no\r\n    checking whether the g++ linker (/opt/local/bin/ld) supports shared libraries... yes\r\n    checking for g++ option to produce PIC... -fno-common -DPIC\r\n    checking if g++ PIC flag -fno-common -DPIC works... yes\r\n    checking if g++ static flag -static works... no\r\n    checking if g++ supports -c -o file.o... yes\r\n    checking if g++ supports -c -o file.o... (cached) yes\r\n    checking whether the g++ linker (/opt/local/bin/ld) supports shared libraries... yes\r\n    checking dynamic linker characteristics... darwin15.6.0 dyld\r\n    checking how to hardcode library paths into programs... immediate\r\n    checking for pkg-config... /opt/local/bin/pkg-config\r\n    checking pkg-config is at least version 0.9.0... yes\r\n    checking for xmlto... no\r\n    checking whether to build EAN symbologies... yes\r\n    checking whether to build Code 128 symbology... yes\r\n    checking whether to build Code 39 symbology... yes\r\n    checking whether to build PDF417 symbology... no\r\n    checking whether to build Interleaved 2 of 5 symbology... yes\r\n    checking whether to build QR Code... yes\r\n    checking for library containing clock_gettime... no\r\n    checking for ld used by GCC... /opt/local/bin/ld\r\n    checking if the linker (/opt/local/bin/ld) is GNU ld... no\r\n    checking for shared library run path origin... done\r\n    checking for iconv... no, consider installing GNU libiconv\r\n    checking poll.h usability... yes\r\n    checking poll.h presence... yes\r\n    checking for poll.h... yes\r\n    checking pthread.h usability... yes\r\n    checking pthread.h presence... yes\r\n    checking for pthread.h... yes\r\n    checking for pthread_create in -lpthread... yes\r\n    checking for X... disabled\r\n    checking for X11/extensions/XShm.h... yes\r\n    checking for XShmQueryVersion in -lXext... no\r\n    configure: error: in `/private/var/folders/ps/zj4v30916pjd6zt21kc3793h0000gn/T/pip-build-3Y8iLK/fastzbarlight/src/fastzbarlight/vendor/zbar-0.10':\r\n    configure: error: unable to find XShmQueryVersion in -lXext!\r\n    specify XSHM_LIBS or configure --without-xshm to disable the extension\r\n    See `config.log' for more details.\r\n    Could not build fastzbarlight: Command '['./configure', '--disable-dependency-tracking', '--without-python', '--without-qt', '--disable-video', '--without-gtk', '--without-imagemagick', '--with-x=no', 'CFLAGS=-Wall -Wno-parentheses -D_FORTIFY_SOURCE=0 -O3 -fPIC']' returned non-zero exit status 1.\r\n    Traceback (most recent call last):\r\n      File \"<string>\", line 1, in <module>\r\n      File \"/private/var/folders/ps/zj4v30916pjd6zt21kc3793h0000gn/T/pip-build-3Y8iLK/fastzbarlight/setup.py\", line 98, in <module>\r\n        cmdclass={'build': Build},\r\n      File \"/Users/dgyHome/anaconda/lib/python2.7/distutils/core.py\", line 151, in setup\r\n        dist.run_commands()\r\n      File \"/Users/dgyHome/anaconda/lib/python2.7/distutils/dist.py\", line 953, in run_commands\r\n        self.run_command(cmd)\r\n      File \"/Users/dgyHome/anaconda/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n        cmd_obj.run()\r\n      File \"/Users/dgyHome/anaconda/lib/python2.7/site-packages/setuptools-27.2.0-py2.7.egg/setuptools/command/install.py\", line 61, in run\r\n      File \"/Users/dgyHome/anaconda/lib/python2.7/distutils/command/install.py\", line 563, in run\r\n        self.run_command('build')\r\n      File \"/Users/dgyHome/anaconda/lib/python2.7/distutils/cmd.py\", line 326, in run_command\r\n        self.distribution.run_command(command)\r\n      File \"/Users/dgyHome/anaconda/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n        cmd_obj.run()\r\n      File \"/private/var/folders/ps/zj4v30916pjd6zt21kc3793h0000gn/T/pip-build-3Y8iLK/fastzbarlight/setup.py\", line 31, in run\r\n        subprocess.check_call(cmd, cwd=zbar)\r\n      File \"/Users/dgyHome/anaconda/lib/python2.7/subprocess.py\", line 541, in check_call\r\n        raise CalledProcessError(retcode, cmd)\r\n    subprocess.CalledProcessError: Command '['./configure', '--disable-dependency-tracking', '--without-python', '--without-qt', '--disable-video', '--without-gtk', '--without-imagemagick', '--with-x=no', 'CFLAGS=-Wall -Wno-parentheses -D_FORTIFY_SOURCE=0 -O3 -fPIC']' returned non-zero exit status 1\r\n\r\n    ----------------------------------------\r\nCommand \"/Users/dgyHome/anaconda/bin/python -u -c \"import setuptools, tokenize;__file__='/private/var/folders/ps/zj4v30916pjd6zt21kc3793h0000gn/T/pip-build-3Y8iLK/fastzbarlight/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" install --record /var/folders/ps/zj4v30916pjd6zt21kc3793h0000gn/T/pip-b0VbT1-record/install-record.txt --single-version-externally-managed --compile\" failed with error code 1 in /private/var/folders/ps/zj4v30916pjd6zt21kc3793h0000gn/T/pip-build-3Y8iLK/fastzbarlight/\r\n```"}}
{"actor":{"display_login":"duguyue100"}}