Closed duguyue100 closed 7 years ago
Thanks! Do you know what the underlying error message was? It's usually somewhere in the backscroll.
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.
Running setup.py install for fastzbarlight ... error
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:
/Users/dgyHome/anaconda/lib/python2.7/distutils/extension.py:133: UserWarning: Unknown Extension options: 'optional'
warnings.warn(msg)
running install
running build
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... i386-apple-darwin15.6.0
checking host system type... i386-apple-darwin15.6.0
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /opt/local/bin/ld
checking if the linker (/opt/local/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /opt/local/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/opt/local/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin15.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for windres... no
checking host system type... (cached) i386-apple-darwin15.6.0
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) none
checking whether gcc and cc understand -c and -o together... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) none
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /opt/local/bin/ld
checking if the linker (/opt/local/bin/ld) is GNU ld... no
checking whether the g++ linker (/opt/local/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/opt/local/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin15.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for xmlto... no
checking whether to build EAN symbologies... yes
checking whether to build Code 128 symbology... yes
checking whether to build Code 39 symbology... yes
checking whether to build PDF417 symbology... no
checking whether to build Interleaved 2 of 5 symbology... yes
checking whether to build QR Code... yes
checking for library containing clock_gettime... no
checking for ld used by GCC... /opt/local/bin/ld
checking if the linker (/opt/local/bin/ld) is GNU ld... no
checking for shared library run path origin... done
checking for iconv... no, consider installing GNU libiconv
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking for X... disabled
checking for X11/extensions/XShm.h... yes
checking for XShmQueryVersion in -lXext... no
configure: error: in `/private/var/folders/ps/zj4v30916pjd6zt21kc3793h0000gn/T/pip-build-3Y8iLK/fastzbarlight/src/fastzbarlight/vendor/zbar-0.10':
configure: error: unable to find XShmQueryVersion in -lXext!
specify XSHM_LIBS or configure --without-xshm to disable the extension
See `config.log' for more details.
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.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/ps/zj4v30916pjd6zt21kc3793h0000gn/T/pip-build-3Y8iLK/fastzbarlight/setup.py", line 98, in <module>
cmdclass={'build': Build},
File "/Users/dgyHome/anaconda/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/Users/dgyHome/anaconda/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/Users/dgyHome/anaconda/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/Users/dgyHome/anaconda/lib/python2.7/site-packages/setuptools-27.2.0-py2.7.egg/setuptools/command/install.py", line 61, in run
File "/Users/dgyHome/anaconda/lib/python2.7/distutils/command/install.py", line 563, in run
self.run_command('build')
File "/Users/dgyHome/anaconda/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/Users/dgyHome/anaconda/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/private/var/folders/ps/zj4v30916pjd6zt21kc3793h0000gn/T/pip-build-3Y8iLK/fastzbarlight/setup.py", line 31, in run
subprocess.check_call(cmd, cwd=zbar)
File "/Users/dgyHome/anaconda/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
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
----------------------------------------
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" failed with error code 1 in /private/var/folders/ps/zj4v30916pjd6zt21kc3793h0000gn/T/pip-build-3Y8iLK/fastzbarlight/
Universe failed to build for me as well I am running Ubuntu 16.04
sudo pip install universe
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-Yfxfhr/fastzbarlight/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-739RGW-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-Yfxfhr/fastzbarlight/
@jdlester8 you need to install python-dev
The other error is interesting:
configure: error: in `/private/var/folders/ps/zj4v30916pjd6zt21kc3793h0000gn/T/pip-build-3Y8iLK/fastzbarlight/src/fastzbarlight/vendor/zbar-0.10':
configure: error: unable to find XShmQueryVersion in -lXext!
specify XSHM_LIBS or configure --without-xshm to disable the extension
Curious if any readers know what that implies :).
I'm getting a similar error on Ubuntu 16.04.
Running setup.py install for fastzbarlight ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ikGi5T/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 /tmp/pip-Mj7avy-record/install-record.txt --single-version-externally-managed --compile:
/usr/lib/python2.7/distutils/extension.py:133: UserWarning: Unknown Extension options: 'optional'
warnings.warn(msg)
running install
running build
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... config/config.guess: unable to guess system type
This script, last modified 2009-02-03, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
If the version you run (config/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.
config.guess timestamp = 2009-02-03
uname -m = aarch64
uname -r = 3.10.96-tegra
uname -s = Linux
uname -v = #1 SMP PREEMPT Wed Nov 9 19:42:57 PST 2016
/usr/bin/uname -p =
/bin/uname -X =
hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch =
/usr/bin/oslevel =
/usr/convex/getsysinfo =
UNAME_MACHINE = aarch64
UNAME_RELEASE = 3.10.96-tegra
UNAME_SYSTEM = Linux
UNAME_VERSION = #1 SMP PREEMPT Wed Nov 9 19:42:57 PST 2016
configure: error: cannot guess build type; you must specify one
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.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ikGi5T/fastzbarlight/setup.py", line 98, in <module>
cmdclass={'build': Build},
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/ubuntu/.local/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
self.run_command('build')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/pip-build-ikGi5T/fastzbarlight/setup.py", line 31, in run
subprocess.check_call(cmd, cwd=zbar)
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
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
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ikGi5T/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 /tmp/pip-Mj7avy-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ikGi5T/fastzbarlight/
`
@traw1234 that's a different situation: the build tools don't recognize the Tegra architecture. Try doing as the error message suggests: download a more recent config.guess into the zbar-0.10/config directory.
Pulled the package, changed the config.guess and config.sub files, and tried to install from source but now I'm getting these errors (still seems to be the Tegra architecture)... Any ideas for a fix?
Obtaining file:///home/ubuntu/Downloads/fastzbarlight-0.0.14
Requirement already satisfied: Pillow in /usr/local/lib/python2.7/dist-packages (from fastzbarlight==0.0.14)
Installing collected packages: fastzbarlight
Running setup.py develop for fastzbarlight
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/home/ubuntu/Downloads/fastzbarlight-0.0.14/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps:
/usr/lib/python2.7/distutils/extension.py:133: UserWarning: Unknown Extension options: 'optional'
warnings.warn(msg)
running develop
running egg_info
writing requirements to src/fastzbarlight.egg-info/requires.txt
writing src/fastzbarlight.egg-info/PKG-INFO
writing top-level names to src/fastzbarlight.egg-info/top_level.txt
writing dependency_links to src/fastzbarlight.egg-info/dependency_links.txt
reading manifest file 'src/fastzbarlight.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs'
no previously-included directories found matching 'tests'
warning: no previously-included files matching '.py[cod]' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
warning: no previously-included files found matching 'Makefile'
warning: no previously-included files found matching 'requirements-dev.txt'
warning: no previously-included files found matching 'tox.ini'
writing manifest file 'src/fastzbarlight.egg-info/SOURCES.txt'
running build_ext
building 'fastzbarlight._zbarlight' extension
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/home/ubuntu/Downloads/fastzbarlight-0.0.14/src/fastzbarlight/vendor/zbar-0.10/include -I/usr/include/python2.7 -c src/fastzbarlight/_zbarlight.c -o build/temp.linux-aarch64-2.7/src/fastzbarlight/_zbarlight.o -std=c99 -fPIC
aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-aarch64-2.7/src/fastzbarlight/_zbarlight.o -o build/lib.linux-aarch64-2.7/fastzbarlight/_zbarlight.so /home/ubuntu/Downloads/fastzbarlight-0.0.14/src/fastzbarlight/vendor/zbar-0.10/zbar/.libs/libzbar.a
aarch64-linux-gnu-gcc: error: /home/ubuntu/Downloads/fastzbarlight-0.0.14/src/fastzbarlight/vendor/zbar-0.10/zbar/.libs/libzbar.a: No such file or directory
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/home/ubuntu/Downloads/fastzbarlight-0.0.14/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 1 in /home/ubuntu/Downloads/fastzbarlight-0.0.14/
It's not clear if it's building libzbar.a under a different name, or not building it at all. I don't have a Tegra system handy. Are you using a cloud Tegra service that we could also test with?
You might also ask the zbar authors: http://zbar.sourceforge.net/support.html
fastzbarlight
contains a copy of zbar
if you install it through pip.
So if you got a zbar
compilation problem, I think the best way to deal with it is install zbar yourself and modify the setup.py
pointing to the zbar
installation. Then manually install fastzbarlight
with python setup.py install
...
I ended up installing zbarlight, commenting this line from setup.py
#extra_link_args=[os.path.join(os.path.dirname(__file__), 'src/fastzbarlight/vendor/zbar-0.10/zbar/.libs/libzbar.a')],
and changed the dependency in the __init__.py
file to zbarlight
instead of ._zbarlight.
Seems to be working fine now.
Also getting an error on OSX 10.12.1 but only with pip3 and a permission denied error - installing with pip worked. Tried running as sudo but that didn't fix it. Also did brew install zbar
which succeeded but didn't fix the problem.
Installing collected packages: fastzbarlight, go-vncdriver, gym, Pillow, twisted, ujson, universe, txaio, pyglet, zope.interface, constantly
Running setup.py install for fastzbarlight
error: Permission denied
Complete output from command /usr/local/Cellar/python3/3.3.3/bin/python3 -c "import setuptools;__file__='/private/tmp/pip_build_root/fastzbarlight/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-92es7s-record/install-record.txt --single-version-externally-managed:
running install
running build
error: Permission denied
----------------------------------------
Cleaning up...
Command /usr/local/Cellar/python3/3.3.3/bin/python3 -c "import setuptools;__file__='/private/tmp/pip_build_root/fastzbarlight/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-92es7s-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/tmp/pip_build_root/fastzbarlight
@dgobaud I'm confused, could you provide a complete log including your commands of what doesn't work?
pip3 install -e .
Obtaining file:///Users/davidgobaud/Desktop/Dropbox/Programming/OpenAI/universe
Running setup.py egg_info for package from file:///Users/davidgobaud/Desktop/Dropbox/Programming/OpenAI/universe
Requirement already satisfied (use --upgrade to upgrade): autobahn in /usr/local/lib/python3.3/site-packages (from universe==0.20.4)
Requirement already satisfied (use --upgrade to upgrade): docker-py==1.10.3 in /usr/local/lib/python3.3/site-packages (from universe==0.20.4)
Requirement already satisfied (use --upgrade to upgrade): docker-pycreds==0.2.1 in /usr/local/lib/python3.3/site-packages (from universe==0.20.4)
Downloading/unpacking fastzbarlight>=0.0.13 (from universe==0.20.4)
Downloading fastzbarlight-0.0.14.tar.gz (728kB): 728kB downloaded
Running setup.py egg_info for package fastzbarlight
no previously-included directories found matching 'docs'
no previously-included directories found matching 'tests'
warning: no previously-included files matching '.py[cod]' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
warning: no previously-included files found matching 'Makefile'
warning: no previously-included files found matching 'requirements-dev.txt'
warning: no previously-included files found matching 'tox.ini'
Downloading/unpacking go-vncdriver>=0.4.8 (from universe==0.20.4)
Downloading go_vncdriver-0.4.19.tar.gz (638kB): 638kB downloaded
Running setup.py egg_info for package go-vncdriver
no previously-included directories found matching '.build'
no previously-included directories found matching 'dist'
no previously-included directories found matching 'build'
Downloading/unpacking gym>=0.5.7 (from universe==0.20.4)
Downloading gym-0.5.7.tar.gz (147kB): 147kB downloaded
Running setup.py egg_info for package gym
Downloading/unpacking Pillow (from universe==0.20.4)
Downloading Pillow-3.4.2.tar.gz (10.8MB): 10.8MB downloaded
Running setup.py egg_info for package Pillow
warning: no files found matching '*.sh'
no previously-included directories found matching 'docs/_static'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching 'appveyor.yml'
warning: no previously-included files found matching 'build_children.sh'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Requirement already satisfied (use --upgrade to upgrade): PyYAML in /usr/local/lib/python3.3/site-packages (from universe==0.20.4)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python3.3/site-packages (from universe==0.20.4)
Downloading/unpacking twisted (from universe==0.20.4)
Downloading Twisted-16.6.0.tar.bz2 (3.0MB): 3.0MB downloaded
Running setup.py egg_info for package twisted
warning: no previously-included files matching '*.misc' found under directory 'src/twisted'
warning: no previously-included files matching '*.bugfix' found under directory 'src/twisted'
warning: no previously-included files matching '*.doc' found under directory 'src/twisted'
warning: no previously-included files matching '*.feature' found under directory 'src/twisted'
warning: no previously-included files matching '*.removal' found under directory 'src/twisted'
warning: no previously-included files matching 'NEWS' found under directory 'src/twisted'
warning: no previously-included files matching 'README' found under directory 'src/twisted'
warning: no previously-included files matching 'topfiles' found under directory 'src/twisted'
warning: no previously-included files found matching 'src/twisted/topfiles/CREDITS'
warning: no previously-included files found matching 'src/twisted/topfiles/ChangeLog.Old'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching 'appveyor.yml'
no previously-included directories found matching 'bin'
no previously-included directories found matching 'admin'
no previously-included directories found matching '.travis'
warning: no previously-included files found matching 'docs/historic/2003'
warning: no previously-included files matching '*' found under directory 'docs/historic/2003'
Downloading/unpacking ujson (from universe==0.20.4)
Downloading ujson-1.35.tar.gz (192kB): 192kB downloaded
Running setup.py egg_info for package ujson
Downloading/unpacking txaio>=2.5.2 (from autobahn->universe==0.20.4)
Downloading txaio-2.5.2.tar.gz (40kB): 40kB downloaded
Running setup.py egg_info for package txaio
Requirement already satisfied (use --upgrade to upgrade): requests<2.11,>=2.5.2 in /usr/local/lib/python3.3/site-packages (from docker-py==1.10.3->universe==0.20.4)
Requirement already satisfied (use --upgrade to upgrade): websocket-client>=0.32.0 in /usr/local/lib/python3.3/site-packages (from docker-py==1.10.3->universe==0.20.4)
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/local/lib/python3.3/site-packages (from go-vncdriver>=0.4.8->universe==0.20.4)
Downloading/unpacking pyglet>=1.2.0 (from gym>=0.5.7->universe==0.20.4)
Downloading pyglet-1.2.4.zip (2.3MB): 2.3MB downloaded
Running setup.py egg_info for package pyglet
no previously-included directories found matching 'examples/**/dist'
warning: no previously-included files matching '*.png' found under directory 'tests/regression/images'
warning: no previously-included files matching '*.log' found under directory 'tests'
no previously-included directories found matching '**/.svn'
warning: no previously-included files matching '*.pyc' found under directory '*'
warning: no previously-included files matching '*.pyo' found under directory '*'
Downloading/unpacking zope.interface>=4.0.2 (from twisted->universe==0.20.4)
Downloading zope.interface-4.3.3.tar.gz (150kB): 150kB downloaded
Running setup.py egg_info for package zope.interface
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
warning: no previously-included files matching 'appveyor.yml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
Downloading/unpacking constantly>=15.1 (from twisted->universe==0.20.4)
Downloading constantly-15.1.0.tar.gz
Running setup.py egg_info for package constantly
Requirement already satisfied (use --upgrade to upgrade): incremental>=16.10.1 in /usr/local/lib/python3.3/site-packages (from twisted->universe==0.20.4)
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/local/lib/python3.3/site-packages (from zope.interface>=4.0.2->twisted->universe==0.20.4)
Installing collected packages: fastzbarlight, go-vncdriver, gym, Pillow, twisted, ujson, universe, txaio, pyglet, zope.interface, constantly
Running setup.py install for fastzbarlight
error: Permission denied
Complete output from command /usr/local/Cellar/python3/3.3.3/bin/python3 -c "import setuptools;__file__='/private/var/folders/lc/j3p47jjn4p58ph95g91zbnl80000gn/T/pip_build_davidgobaud/fastzbarlight/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/lc/j3p47jjn4p58ph95g91zbnl80000gn/T/pip-vgblmq-record/install-record.txt --single-version-externally-managed:
running install
running build
error: Permission denied
----------------------------------------
Cleaning up...
Command /usr/local/Cellar/python3/3.3.3/bin/python3 -c "import setuptools;__file__='/private/var/folders/lc/j3p47jjn4p58ph95g91zbnl80000gn/T/pip_build_davidgobaud/fastzbarlight/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/lc/j3p47jjn4p58ph95g91zbnl80000gn/T/pip-vgblmq-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/var/folders/lc/j3p47jjn4p58ph95g91zbnl80000gn/T/pip_build_davidgobaud/fastzbarlight
Storing complete log in /Users/davidgobaud/.pip/pip.log
You definitely need sudo pip3 install -e .
I tried that same problem unfortunately
sudo pip3 install -e .
Password:
Obtaining file:///Users/davidgobaud/Desktop/Dropbox/Programming/OpenAI/universe
Running setup.py egg_info for package from file:///Users/davidgobaud/Desktop/Dropbox/Programming/OpenAI/universe
Requirement already satisfied (use --upgrade to upgrade): autobahn in /usr/local/lib/python3.3/site-packages (from universe==0.20.4)
Requirement already satisfied (use --upgrade to upgrade): docker-py==1.10.3 in /usr/local/lib/python3.3/site-packages (from universe==0.20.4)
Requirement already satisfied (use --upgrade to upgrade): docker-pycreds==0.2.1 in /usr/local/lib/python3.3/site-packages (from universe==0.20.4)
Downloading/unpacking fastzbarlight>=0.0.13 (from universe==0.20.4)
Downloading fastzbarlight-0.0.14.tar.gz (728kB): 728kB downloaded
Running setup.py egg_info for package fastzbarlight
no previously-included directories found matching 'docs'
no previously-included directories found matching 'tests'
warning: no previously-included files matching '.py[cod]' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
warning: no previously-included files found matching 'Makefile'
warning: no previously-included files found matching 'requirements-dev.txt'
warning: no previously-included files found matching 'tox.ini'
Downloading/unpacking go-vncdriver>=0.4.8 (from universe==0.20.4)
Downloading go_vncdriver-0.4.19.tar.gz (638kB): 638kB downloaded
Running setup.py egg_info for package go-vncdriver
no previously-included directories found matching '.build'
no previously-included directories found matching 'dist'
no previously-included directories found matching 'build'
Downloading/unpacking gym>=0.5.7 (from universe==0.20.4)
Downloading gym-0.5.7.tar.gz (147kB): 147kB downloaded
Running setup.py egg_info for package gym
Downloading/unpacking Pillow (from universe==0.20.4)
Downloading Pillow-3.4.2.tar.gz (10.8MB): 10.8MB downloaded
Running setup.py egg_info for package Pillow
warning: no files found matching '*.sh'
no previously-included directories found matching 'docs/_static'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching 'appveyor.yml'
warning: no previously-included files found matching 'build_children.sh'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Requirement already satisfied (use --upgrade to upgrade): PyYAML in /usr/local/lib/python3.3/site-packages (from universe==0.20.4)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python3.3/site-packages (from universe==0.20.4)
Downloading/unpacking twisted (from universe==0.20.4)
Downloading Twisted-16.6.0.tar.bz2 (3.0MB): 3.0MB downloaded
Running setup.py egg_info for package twisted
warning: no previously-included files matching '*.misc' found under directory 'src/twisted'
warning: no previously-included files matching '*.bugfix' found under directory 'src/twisted'
warning: no previously-included files matching '*.doc' found under directory 'src/twisted'
warning: no previously-included files matching '*.feature' found under directory 'src/twisted'
warning: no previously-included files matching '*.removal' found under directory 'src/twisted'
warning: no previously-included files matching 'NEWS' found under directory 'src/twisted'
warning: no previously-included files matching 'README' found under directory 'src/twisted'
warning: no previously-included files matching 'topfiles' found under directory 'src/twisted'
warning: no previously-included files found matching 'src/twisted/topfiles/CREDITS'
warning: no previously-included files found matching 'src/twisted/topfiles/ChangeLog.Old'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching 'appveyor.yml'
no previously-included directories found matching 'bin'
no previously-included directories found matching 'admin'
no previously-included directories found matching '.travis'
warning: no previously-included files found matching 'docs/historic/2003'
warning: no previously-included files matching '*' found under directory 'docs/historic/2003'
Downloading/unpacking ujson (from universe==0.20.4)
Downloading ujson-1.35.tar.gz (192kB): 192kB downloaded
Running setup.py egg_info for package ujson
Downloading/unpacking txaio>=2.5.2 (from autobahn->universe==0.20.4)
Downloading txaio-2.5.2.tar.gz (40kB): 40kB downloaded
Running setup.py egg_info for package txaio
Requirement already satisfied (use --upgrade to upgrade): requests<2.11,>=2.5.2 in /usr/local/lib/python3.3/site-packages (from docker-py==1.10.3->universe==0.20.4)
Requirement already satisfied (use --upgrade to upgrade): websocket-client>=0.32.0 in /usr/local/lib/python3.3/site-packages (from docker-py==1.10.3->universe==0.20.4)
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/local/lib/python3.3/site-packages (from go-vncdriver>=0.4.8->universe==0.20.4)
Downloading/unpacking pyglet>=1.2.0 (from gym>=0.5.7->universe==0.20.4)
Downloading pyglet-1.2.4.zip (2.3MB): 2.3MB downloaded
Running setup.py egg_info for package pyglet
no previously-included directories found matching 'examples/**/dist'
warning: no previously-included files matching '*.png' found under directory 'tests/regression/images'
warning: no previously-included files matching '*.log' found under directory 'tests'
no previously-included directories found matching '**/.svn'
warning: no previously-included files matching '*.pyc' found under directory '*'
warning: no previously-included files matching '*.pyo' found under directory '*'
Downloading/unpacking zope.interface>=4.0.2 (from twisted->universe==0.20.4)
Downloading zope.interface-4.3.3.tar.gz (150kB): 150kB downloaded
Running setup.py egg_info for package zope.interface
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
warning: no previously-included files matching 'appveyor.yml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
Downloading/unpacking constantly>=15.1 (from twisted->universe==0.20.4)
Downloading constantly-15.1.0.tar.gz
Running setup.py egg_info for package constantly
Requirement already satisfied (use --upgrade to upgrade): incremental>=16.10.1 in /usr/local/lib/python3.3/site-packages (from twisted->universe==0.20.4)
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/local/lib/python3.3/site-packages (from zope.interface>=4.0.2->twisted->universe==0.20.4)
Installing collected packages: fastzbarlight, go-vncdriver, gym, Pillow, twisted, ujson, universe, txaio, pyglet, zope.interface, constantly
Running setup.py install for fastzbarlight
error: Permission denied
Complete output from command /usr/local/Cellar/python3/3.3.3/bin/python3 -c "import setuptools;__file__='/private/tmp/pip_build_root/fastzbarlight/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5jaobd-record/install-record.txt --single-version-externally-managed:
running install
running build
error: Permission denied
----------------------------------------
Cleaning up...
Command /usr/local/Cellar/python3/3.3.3/bin/python3 -c "import setuptools;__file__='/private/tmp/pip_build_root/fastzbarlight/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5jaobd-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/tmp/pip_build_root/fastzbarlight
Storing complete log in /Users/davidgobaud/.pip/pip.log
Strange to get a permission error with sudo. Is this a local filesystem? The pip.log
file it mentions might provide a clue as to which file is involved.
Yeah local and weird... not seeing the answer in pip.log below is the relevant part at the end
Installing collected packages: fastzbarlight, go-vncdriver, gym, Pillow, twisted, ujson, universe, txaio, pyglet, zope.interface, constantly
Running setup.py install for fastzbarlight
Running command /usr/local/Cellar/python3/3.3.3/bin/python3 -c "import setuptools;__file__='/private/tmp/pip_build_root/fastzbarlight/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5jaobd-record/install-record.txt --single-version-externally-managed
running install
running build
error: Permission denied
Complete output from command /usr/local/Cellar/python3/3.3.3/bin/python3 -c "import setuptools;__file__='/private/tmp/pip_build_root/fastzbarlight/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5jaobd-record/install-record.txt --single-version-externally-managed:
running install
running build
error: Permission denied
----------------------------------------
Cleaning up...
Removing temporary dir /private/tmp/pip_build_root...
Command /usr/local/Cellar/python3/3.3.3/bin/python3 -c "import setuptools;__file__='/private/tmp/pip_build_root/fastzbarlight/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5jaobd-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/tmp/pip_build_root/fastzbarlight
Exception information:
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.3.3/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/pip-1.4.1-py3.3.egg/pip/basecommand.py", line 134, in main
status = self.run(options, args)
File "/usr/local/Cellar/python3/3.3.3/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/pip-1.4.1-py3.3.egg/pip/commands/install.py", line 241, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/local/Cellar/python3/3.3.3/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/pip-1.4.1-py3.3.egg/pip/req.py", line 1298, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/local/Cellar/python3/3.3.3/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/pip-1.4.1-py3.3.egg/pip/req.py", line 625, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/usr/local/Cellar/python3/3.3.3/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/pip-1.4.1-py3.3.egg/pip/util.py", line 670, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command /usr/local/Cellar/python3/3.3.3/bin/python3 -c "import setuptools;__file__='/private/tmp/pip_build_root/fastzbarlight/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5jaobd-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/tmp/pip_build_root/fastzbarlight
@dgobaud @tlbtlbtlb The setup script has a class of Build
, which is the point where you got permission denied.
And that class called subprocess
class to execute the make
.
Is it possible that the sudo
you grant on the python
does not grant the same permission to subprocess
module?
Consider installing Anaconda python, which has a much cleaner install system and installs things in your home directory rather than /use/local.
@tlbtlbtlb anaconda python 3 worked - thanks!
I was facing the same problem of fastzbarlight, but finally I can build it with @duguyue100 's way.
My way(Mac):
brew install zbar --without-xshm
.setup.py
's zbar link like below:python setup.py install
.pip install -e .
succeeds!rewrite
# extra_link_args=[os.path.join(os.path.dirname(__file__), 'src/fastzbarlight/vendor/zbar-0.10/zbar/.libs/libzbar.a')],
extra_link_args=[os.path.join(os.path.dirname(__file__), '/usr/local/Cellar/zbar/0.10_2/lib/libzbar.a')],
some problem and solved according to @morizotter 's instruction, thanks!
@morizotter Thanks very much! The problem truly solved~
@morizotter Thanks a lot! It works!
Hello When I import universe I get this error
Traceback (most recent call last):
File "
Hi,
I'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 packagefastzbarlight
tried to compile it's ownzbar
source. There are actually not much to tell in the error message, it simply saysSo I ended up pulling
fastzbarlight
's source, installzbar
from homebrew, disabledBuild
class in thesetup.py
, changinginclude
andlib
folder to homebrew'szbar
build.I hope this will help people who runs into the similar situation.