Description
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:
Running setup.py (path:/private/var/folders/gk/07t7dq7n01v45sj7k8295dqc0000gn/T/pip-build-di27kndu/zbarlight/setup.py) egg_info for package zbarlight produced metadata for project name unknown. Fix your #egg=zbarlight fragments.
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
AttributeError: module 'zbarlight' has no attribute 'scan_codes'
Is there a known solution to this problem?
This is the verbose output of the pip install:
Collecting zbarlight
1 location(s) to search for versions of zbarlight:
* https://pypi.python.org/simple/zbarlight/
Getting page
6680
https://pypi.python.org/simple/zbarlight/
Looking up "https://pypi.python.org/simple/zbarlight/" in the cache
Current age based on date: 107
Freshness lifetime from max-age: 600
Freshness lifetime from request max-age: 600
The response is "fresh", returning cached response
600 > 107
Analyzing links from page https://pypi.python.org/simple/zbarlight/
Found link https://pypi.python.org/packages/2d/9b/e987d8b983b463e96169260585a2828ad10fd932523460f2322d07fdeccf/zbarlight-2.0.tar.gz#md5=04adbbfa49c65885584c0063f347d728 (from https://pypi.python.org/simple/zbarlight/), version: 2.0
Found link https://pypi.python.org/packages/43/e2/429cd76e049285b9a53e40c813826307f19f0be6562dfb948332cdeb9615/zbarlight-1.2.tar.gz#md5=66a573d065ec42c1c80a767b6d05bbbf (from https://pypi.python.org/simple/zbarlight/), version: 1.2
Found link https://pypi.python.org/packages/58/21/af35efb01959ce9be2a6c14e25260530657456b3e914fbc8bf0c16d79c2d/zbarlight-0.1.1.tar.gz#md5=5bc8147eb6464041d82589e37f02b38e (from https://pypi.python.org/simple/zbarlight/), version: 0.1.1
Found link https://pypi.python.org/packages/a2/29/7a1cd98a5e2098623a24f8853514607f68ff376b263101b7276bc8179221/zbarlight-1.0.0.tar.gz#md5=580728bbaf0a0838f5667264b90e4254 (from https://pypi.python.org/simple/zbarlight/), version: 1.0.0
Found link https://pypi.python.org/packages/a3/92/743e2aafa1b025a1f65d74411be617e900a45e3ba6962e43565c8ab08d15/zbarlight-0.1.0.tar.gz#md5=825c79c7e9ed61b7af2ca28f91f74f3c (from https://pypi.python.org/simple/zbarlight/), version: 0.1.0
Found link https://pypi.python.org/packages/a4/4a/42e4760e882a8c71350002b3356aaff8d1a5e335030610913a2457351d42/zbarlight-1.0.2.tar.gz#md5=1e78e3ec69aaf251491373137d490010 (from https://pypi.python.org/simple/zbarlight/), version: 1.0.2
Found link https://pypi.python.org/packages/da/cc/2490f49f5ba7be2034ebf33ba48b7ccb1bbb53e706b1c79d2c6504439bee/zbarlight-1.0.1.tar.gz#md5=fa31a575f5e8a3f6de0b9b6f93e0020a (from https://pypi.python.org/simple/zbarlight/), version: 1.0.1
Found link https://pypi.python.org/packages/f8/cc/941f0e91fd3ab61e59cb84bd4b13063b658de04d58acc7857b66010cf166/zbarlight-1.1.0.tar.gz#md5=1ea8daea1758f342b71a126b13a54baf (from https://pypi.python.org/simple/zbarlight/), version: 1.1.0
Using version 2.0 (newest of versions: 0.1.0, 0.1.1, 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.2, 2.0)
Looking up "https://pypi.python.org/packages/2d/9b/e987d8b983b463e96169260585a2828ad10fd932523460f2322d07fdeccf/zbarlight-2.0.tar.gz" in the cache
Current age based on date: 7016
Freshness lifetime from max-age: 31557600
The response is "fresh", returning cached response
31557600 > 7016
Using cached zbarlight-2.0.tar.gz
Downloading from URL https://pypi.python.org/packages/2d/9b/e987d8b983b463e96169260585a2828ad10fd932523460f2322d07fdeccf/zbarlight-2.0.tar.gz#md5=04adbbfa49c65885584c0063f347d728 (from https://pypi.python.org/simple/zbarlight/)
Running setup.py (path:/private/var/folders/gk/07t7dq7n01v45sj7k8295dqc0000gn/T/pip-build-di27kndu/zbarlight/setup.py) egg_info for package zbarlight
Running command python setup.py egg_info
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
warning: no files found matching '*' under directory 'setuptools/_vendor'
Installed /private/var/folders/gk/07t7dq7n01v45sj7k8295dqc0000gn/T/pip-build-di27kndu/zbarlight/.eggs/setuptools-38.4.0-py3.6.egg
running egg_info
creating pip-egg-info/UNKNOWN.egg-info
writing pip-egg-info/UNKNOWN.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/UNKNOWN.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/UNKNOWN.egg-info/top_level.txt
writing manifest file 'pip-egg-info/UNKNOWN.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info/UNKNOWN.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'
warning: no previously-included files found matching 'run.py'
writing manifest file 'pip-egg-info/UNKNOWN.egg-info/SOURCES.txt'
Running setup.py (path:/private/var/folders/gk/07t7dq7n01v45sj7k8295dqc0000gn/T/pip-build-di27kndu/zbarlight/setup.py) egg_info for package zbarlight produced metadata for project name unknown. Fix your #egg=zbarlight fragments.
Source in /private/var/folders/gk/07t7dq7n01v45sj7k8295dqc0000gn/T/pip-build-di27kndu/zbarlight has version 0.0.0, which satisfies requirement unknown from https://pypi.python.org/packages/2d/9b/e987d8b983b463e96169260585a2828ad10fd932523460f2322d07fdeccf/zbarlight-2.0.tar.gz#md5=04adbbfa49c65885584c0063f347d728
Requirement already satisfied (use --upgrade to upgrade): unknown from https://pypi.python.org/packages/2d/9b/e987d8b983b463e96169260585a2828ad10fd932523460f2322d07fdeccf/zbarlight-2.0.tar.gz#md5=04adbbfa49c65885584c0063f347d728 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
Cleaning up...
Removing source in /private/var/folders/gk/07t7dq7n01v45sj7k8295dqc0000gn/T/pip-build-di27kndu/zbarlight