error: [Errno 2] No such file or directory: 'build/scripts-3.8/__init__.py'
alexislefebvre opened this issue · 2 comments
alexislefebvre commented
I tried to install this software but it failed.
My environment:
$ lsb_release --all
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
$ python --version
Python 3.8.10
$ pip --version
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
The complete output:
$ pip install git+https://github.com/FarisHijazi/Bulk-Bing-Image-downloader
Collecting git+https://github.com/FarisHijazi/Bulk-Bing-Image-downloader
Cloning https://github.com/FarisHijazi/Bulk-Bing-Image-downloader to /tmp/pip-req-build-rrdmrfo4
Running command git clone -q https://github.com/FarisHijazi/Bulk-Bing-Image-downloader /tmp/pip-req-build-rrdmrfo4
Building wheels for collected packages: bbid
Building wheel for bbid (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-rrdmrfo4/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-rrdmrfo4/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 /tmp/pip-wheel-4pxc847h
cwd: /tmp/pip-req-build-rrdmrfo4/
Complete output (17 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/bbid
copying bbid/bbid.py -> build/lib/bbid
copying bbid/__init__.py -> build/lib/bbid
running build_scripts
creating build/scripts-3.8
copying setup.py -> build/scripts-3.8
copying and adjusting bbid/bbid.py -> build/scripts-3.8
warning: build_scripts: bbid/__init__.py is an empty file (skipping)
changing mode of build/scripts-3.8/setup.py from 664 to 775
changing mode of build/scripts-3.8/bbid.py from 664 to 775
error: [Errno 2] No such file or directory: 'build/scripts-3.8/__init__.py'
----------------------------------------
ERROR: Failed building wheel for bbid
Running setup.py clean for bbid
Failed to build bbid
Installing collected packages: bbid
Running setup.py install for bbid ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-rrdmrfo4/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-rrdmrfo4/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-record-8fencmsi/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/alexis/.local/include/python3.8/bbid
cwd: /tmp/pip-req-build-rrdmrfo4/
Complete output (17 lines):
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/bbid
copying bbid/bbid.py -> build/lib/bbid
copying bbid/__init__.py -> build/lib/bbid
running build_scripts
creating build/scripts-3.8
copying setup.py -> build/scripts-3.8
copying and adjusting bbid/bbid.py -> build/scripts-3.8
warning: build_scripts: bbid/__init__.py is an empty file (skipping)
changing mode of build/scripts-3.8/setup.py from 664 to 775
changing mode of build/scripts-3.8/bbid.py from 664 to 775
error: [Errno 2] No such file or directory: 'build/scripts-3.8/__init__.py'
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-rrdmrfo4/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-rrdmrfo4/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-record-8fencmsi/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/alexis/.local/include/python3.8/bbid Check the logs for full command output.
ostrolucky commented
Thank you for reporting. Fixed. Don't forget to change the URL argument in your pip install command too!
alexislefebvre commented
Thanks, it works now, and that's fast! 🚀