Hi all,
I work with:
- MAC OS
- PyCharm 2021.2 (Community Edition)
- Python 3.9
I tried to install robotframework-datadriver to work with XLSX file by both 2 command lines:
-
pip3 install -U robotframework-datadriver[XLS]
[Return error]: zsh: no matches found: robotframework-datadriver[XLS] -
pip3 install --upgrade robotframework-datadriver XLS
[Return error]:
Requirement already satisfied: robotframework-datadriver in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (1.5.0)
Collecting XLS
Using cached xls-0.1.1.tar.gz (58 kB)
Requirement already satisfied: Pygments in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from robotframework-datadriver) (2.10.0)
Requirement already satisfied: robotframework>=3.1 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from robotframework-datadriver) (4.1)
Requirement already satisfied: docutils in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from robotframework-datadriver) (0.17.1)
Collecting PyV8
Using cached PyV8-0.5.zip (22 kB)
Using legacy βsetup.py installβ for XLS, since package βwheelβ is not installed.
Using legacy βsetup.py installβ for PyV8, since package βwheelβ is not installed.
Installing collected packages: PyV8, XLS
Running setup.py install for PyV8 β¦ error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c βimport io, os, sys, setuptools, tokenize; sys.argv[0] = β"β"β/private/var/folders/gd/cq0zyf9927s9dndm5h9yr4b00000gn/T/pip-install-qykhdag9/pyv8_9a5555be0028455891cd21ca665650fa/setup.pyββ'ββ; file=ββ'ββ/private/var/folders/gd/cq0zyf9927s9dndm5h9yr4b00000gn/T/pip-install-qykhdag9/pyv8_9a5555be0028455891cd21ca665650fa/setup.pyββ'ββ;f = getattr(tokenize, β"βββopenβββββ, open)(file) if os.path.exists(file) else io.StringIO(βββββfrom setuptools import setup; setup()βββββ);code = f.read().replace(βββ"β\r\nββ'ββ, β"β"β\nββ'ββ);f.close();exec(compile(code, file, β"βββexecβββββ))β install --record /private/var/folders/gd/cq0zyf9927s9dndm5h9yr4b00000gn/T/pip-record-xhsftvi0/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/PyV8
cwd: /private/var/folders/gd/cq0zyf9927s9dndm5h9yr4b00000gn/T/pip-install-qykhdag9/pyv8_9a5555be0028455891cd21ca665650fa/
Complete output (17 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-3.9
copying PyV8.py β build/lib.macosx-10.9-universal2-3.9
running build_ext
building β_PyV8β extension
creating build/temp.macosx-10.9-universal2-3.9
creating build/temp.macosx-10.9-universal2-3.9/src
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -DBOOST_PYTHON_STATIC_LIB -Ilib/python/inc -Ilib/boost/inc -Ilib/v8/inc -I/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/Context.cpp -o build/temp.macosx-10.9-universal2-3.9/src/Context.o
In file included from src/Context.cpp:1:
src/Context.h:5:10: fatal error: βboost/shared_ptr.hppβ file not found
#include <boost/shared_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command β/usr/bin/gccβ failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = 'ββ"β/private/var/folders/gd/cq0zyf9927s9dndm5h9yr4b00000gn/T/pip-install-qykhdag9/pyv8_9a5555be0028455891cd21ca665650fa/setup.pyββ'ββ; file=ββ'ββ/private/var/folders/gd/cq0zyf9927s9dndm5h9yr4b00000gn/T/pip-install-qykhdag9/pyv8_9a5555be0028455891cd21ca665650fa/setup.pyββ'ββ;f = getattr(tokenize, β"βββopenβββββ, open)(file) if os.path.exists(file) else io.StringIO(βββββfrom setuptools import setup; setup()βββββ);code = f.read().replace(βββ"β\r\nββ'ββ, β"β"β\nββ'ββ);f.close();exec(compile(code, file, β"βββexecβββ"β))β install --record /private/var/folders/gd/cq0zyf9927s9dndm5h9yr4b00000gn/T/pip-record-xhsftvi0/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/PyV8 Check the logs for full command output.