Open lschwetlick opened 6 years ago
Hi, thanks for the report.
Which version of setuptools and pip do you use ? The package is only compatible with setuptools >= 30.3.
I got similiar error on ubuntu mate:
devarea@devarea-Inspiron-1545:~$ pip install zbarlight
Collecting zbarlight
Using cached zbarlight-2.0.tar.gz
Running setup.py (path:/tmp/pip-build-wT2_BT/zbarlight/setup.py) egg_info for package zbarlight produced metadata for project name unknown. Fix your #egg=zbarlight fragments.
Building wheels for collected packages: unknown, unknown
Running setup.py bdist_wheel for unknown ... done
Stored in directory: /home/devarea/.cache/pip/wheels/d2/a4/82/d10c001eb84dd52671c566faf6c4be598094edf7617c1e6661
Running setup.py bdist_wheel for unknown ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-wT2_BT/unknown/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d /tmp/tmpIKHjccpip-wheel- --python-tag cp27:
Traceback (most recent call last):
File "
Failed building wheel for unknown
Running setup.py clean for unknown
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-wT2_BT/unknown/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" clean --all:
Traceback (most recent call last):
File "
Failed cleaning build dir for unknown Successfully built unknown Failed to build unknown Installing collected packages: unknown Successfully installed unknown-0.0.0 You are using pip version 8.1.1, however version 9.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. devarea@devarea-Inspiron-1545:~$ pip install --upgrade pip Collecting pip Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB) 100% |████████████████████████████████| 1.3MB 626kB/s Installing collected packages: pip Successfully installed pip-9.0.1 devarea@devarea-Inspiron-1545:~$ pip install zbarlight Collecting zbarlight Installing collected packages: zbarlight Exception: Traceback (most recent call last): File "/home/devarea/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/home/devarea/.local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run prefix=options.prefix_path, File "/home/devarea/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install **kwargs File "/home/devarea/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "/home/devarea/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files isolated=self.isolated, File "/home/devarea/.local/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files clobber(source, lib_dir, True) File "/home/devarea/.local/lib/python2.7/site-packages/pip/wheel.py", line 316, in clobber ensure_dir(destdir) File "/home/devarea/.local/lib/python2.7/site-packages/pip/utils/init.py", line 83, in ensure_dir os.makedirs(path) File "/usr/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/usr/local/lib/pyth
Fix for me: sudo -H pip3 install setuptools --upgrade sudo -H pipe install zbarlight
Unless it's a blocking issue for one of you (or any other zbarlight user), I do not reconsider moving to setup.cfg (that's why zbarlight needs setuptools> = 30.3).
I'm having the same issue here. I'm using zbarlight to scan qrcodes on a Gtk Application. I have built zbar with those options
"--without-qt",
"--without-gtk",
"--without-imagemagick",
"--disable-video"
And built zbarlight with setuptools 38.2.5.
Is there anything I can do to debug this?
In /include I have zbar
and zbar.h
...
Somehow, I don't have the init.py file in site-packages/zbarlight/
Sorry for the time of response, I think that Python only search includes in /usr/include by default. You can use envvars to set your compiler search path. Without the stack trace I can not help you more.
Fix for me: sudo -H pip3 install setuptools --upgrade sudo -H pipe install zbarlight
There's a typo on the 2nd command. This should be:
sudo -H pip3 install zbarlight
When installing zbarlight using pip, I get the following error, that I have been unable to find any information about. I use MacOS, Python3 and pip3. I followed the install procedure, i.e. zbar was installed via homebrew. The pip install of zbarlight finishes the install with this warning:
The package is also not listed as zbarlight but as UNKNOWN in my pip list. It also doesnt show any documentation using "pip show". When I install directly from source (download zip, then run setup.py) the same error occurs.
I can import the module in python (as zbarlight, not as UNKNOWN), but the command "zbarlight.scan_codes('qrcode', image)" gives the error
Is there a known solution to this problem?
This is the verbose output of the pip install: