Hey wgpubs,
thanks for your response.
I tried to use fastai on a seperate Computer running Linux (Ubuntu 20.04).
I followed the instructions.
But even here I get an Error message which is related to the fastbook module.
What did I do wrong here?
Thanks alot!
Best regards
David
> ERROR: Complete output from command /snap/jupyter/6/bin/python -u -c 'import setuptools, tokenize;_file='"'"'/tmp/pip-install-za7vvjep/sentencepiece/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-0_vkaeaa --python-tag cp37:
> ERROR: running bdist_wheel
> running build
> running build_py
> creating build
> creating build/lib.linux-x86_64-3.7
> creating build/lib.linux-x86_64-3.7/sentencepiece
> copying src/sentencepiece/_init_.py -> build/lib.linux-x86_64-3.7/sentencepiece
> copying src/sentencepiece/sentencepiece_model_pb2.py -> build/lib.linux-x86_64-3.7/sentencepiece
> copying src/sentencepiece/sentencepiece_pb2.py -> build/lib.linux-x86_64-3.7/sentencepiece
> running build_ext
> /bin/sh: 1: pkg-config: not found
> ./build_bundled.sh: 8: ./build_bundled.sh: git: not found
> ./build_bundled.sh: 10: ./build_bundled.sh: git: not found
> ./build_bundled.sh: 12: cd: can't cd to sentencepiece
> ./build_bundled.sh: 15: ./build_bundled.sh: cmake: not found
> ./build_bundled.sh: 16: ./build_bundled.sh: nproc: Permission denied
> ./build_bundled.sh: 16: ./build_bundled.sh: make: not found
> ./build_bundled.sh: 17: ./build_bundled.sh: make: not found
> env: 'pkg-config': No such file or directory
> Failed to find sentencepiece pkg-config
> ----------------------------------------
> ERROR: Failed building wheel for sentencepiece
> ERROR: Complete output from command /snap/jupyter/6/bin/python -u -c 'import setuptools, tokenize;_file='"'"'/tmp/pip-install-za7vvjep/cymem/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-zt98k7kp --python-tag cp37:
> ERROR: running bdist_wheel
> running build
> running build_py
> creating build
> creating build/lib.linux-x86_64-3.7
> creating build/lib.linux-x86_64-3.7/cymem
> copying cymem/_init_.py -> build/lib.linux-x86_64-3.7/cymem
> copying cymem/about.py -> build/lib.linux-x86_64-3.7/cymem
> package init file 'cymem/tests/_init_.py' not found (or not a regular file)
> creating build/lib.linux-x86_64-3.7/cymem/tests
> copying cymem/tests/test_import.py -> build/lib.linux-x86_64-3.7/cymem/tests
> copying cymem/cymem.pyx -> build/lib.linux-x86_64-3.7/cymem
> copying cymem/_init_.pxd -> build/lib.linux-x86_64-3.7/cymem
> copying cymem/cymem.pxd -> build/lib.linux-x86_64-3.7/cymem
> running build_ext
> building 'cymem.cymem' extension
> creating build/temp.linux-x86_64-3.7
> creating build/temp.linux-x86_64-3.7/cymem
> gcc -pthread -B /home/filipe/miniconda3/envs/JUPYTER/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/snap/jupyter/6/include/python3.7m -I/snap/jupyter/6/include/python3.7m -c cymem/cymem.cpp -o build/temp.linux-x86_64-3.7/cymem/cymem.o -O3 -Wno-strict-prototypes -Wno-unused-function
> unable to execute 'gcc': No such file or directory
> error: command 'gcc' failed with exit status 1
> ----------------------------------------
> ERROR: Failed building wheel for cymem
> ERROR: Complete output from command /snap/jupyter/6/bin/python -u -c 'import setuptools, tokenize;_file='"'"'/tmp/pip-install-za7vvjep/srsly/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-_odsi9d0 --python-tag cp37:
> ERROR: running bdist_wheel
> running build
> running build_py
> creating build
> creating build/lib.linux-x86_64-3.7
> creating build/lib.linux-x86_64-3.7/srsly
> copying srsly/_json_api.py -> build/lib.linux-x86_64-3.7/srsly
> copying srsly/_msgpack_api.py -> build/lib.linux-x86_64-3.7/srsly
> copying srsly/util.py -> build/lib.linux-x86_64-3.7/srsly
> copying srsly/_pickle_api.py -> build/lib.linux-x86_64-3.7/srsly
> copying srsly/_init_.py -> build/lib.linux-x86_64-3.7/srsly
> copying srsly/about.py -> build/lib.linux-x86_64-3.7/srsly
> creating build/lib.linux-x86_64-3.7/srsly/cloudpickle
> copying srsly/cloudpickle/cloudpickle.py -> build/lib.linux-x86_64-3.7/srsly/cloudpickle
> copying srsly/cloudpickle/_init_.py -> build/lib.linux-x86_64-3.7/srsly/cloudpickle
> creating build/lib.linux-x86_64-3.7/srsly/tests
> copying srsly/tests/test_msgpack_api.py -> build/lib.linux-x86_64-3.7/srsly/tests
> copying srsly/tests/test_pickle_api.py -> build/lib.linux-x86_64-3.7/srsly/tests
> copying srsly/tests/test_json_api.py -> build/lib.linux-x86_64-3.7/srsly/tests
> copying srsly/tests/_init_.py -> build/lib.linux-x86_64-3.7/srsly/tests
> creating build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/_msgpack_numpy.py -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/util.py -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/_version.py -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/_ext_type.py -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/_init_.py -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/exceptions.py -> build/lib.linux-x86_64-3.7/srsly/msgpack
> creating build/lib.linux-x86_64-3.7/srsly/ujson
> copying srsly/ujson/_init_.py -> build/lib.linux-x86_64-3.7/srsly/ujson
> creating build/lib.linux-x86_64-3.7/srsly/tests/cloudpickle
> copying srsly/tests/cloudpickle/cloudpickle_file_test.py -> build/lib.linux-x86_64-3.7/srsly/tests/cloudpickle
> copying srsly/tests/cloudpickle/testutils.py -> build/lib.linux-x86_64-3.7/srsly/tests/cloudpickle
> copying srsly/tests/cloudpickle/_init_.py -> build/lib.linux-x86_64-3.7/srsly/tests/cloudpickle
> creating build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_extension.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_sequnpack.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_limits.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_memoryview.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_pack.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_read_size.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_buffer.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_subtype.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_case.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_except.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_seq.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_stricttype.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_unpack.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/_init_.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_numpy.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_newspec.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> copying srsly/tests/msgpack/test_format.py -> build/lib.linux-x86_64-3.7/srsly/tests/msgpack
> creating build/lib.linux-x86_64-3.7/srsly/tests/ujson
> copying srsly/tests/ujson/test_ujson.py -> build/lib.linux-x86_64-3.7/srsly/tests/ujson
> copying srsly/tests/ujson/_init_.py -> build/lib.linux-x86_64-3.7/srsly/tests/ujson
> copying srsly/msgpack/_unpacker.pyx -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/_packer.pyx -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/unpack.h -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/unpack_define.h -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/pack_template.h -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/buff_converter.h -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/unpack_template.h -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/pack.h -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/sysdep.h -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/_unpacker.cpp -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/msgpack/_packer.cpp -> build/lib.linux-x86_64-3.7/srsly/msgpack
> copying srsly/ujson/ujson.c -> build/lib.linux-x86_64-3.7/srsly/ujson
> copying srsly/ujson/JSONtoObj.c -> build/lib.linux-x86_64-3.7/srsly/ujson
> copying srsly/ujson/objToJSON.c -> build/lib.linux-x86_64-3.7/srsly/ujson
> copying srsly/ujson/version.h -> build/lib.linux-x86_64-3.7/srsly/ujson
> copying srsly/ujson/py_defines.h -> build/lib.linux-x86_64-3.7/srsly/ujson
> running build_ext
> building 'srsly.msgpack._unpacker' extension
> creating build/temp.linux-x86_64-3.7
> creating build/temp.linux-x86_64-3.7/srsly
> creating build/temp.linux-x86_64-3.7/srsly/msgpack
> gcc -pthread -B /home/filipe/miniconda3/envs/JUPYTER/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D_LITTLE_ENDIAN_=1 -I/snap/jupyter/6/include/python3.7m -I. -I/tmp/pip-install-za7vvjep/srsly/include -I/snap/jupyter/6/include/python3.7m -c srsly/msgpack/_unpacker.cpp -o build/temp.linux-x86_64-3.7/srsly/msgpack/_unpacker.o -O2 -Wno-strict-prototypes -Wno-unused-function
> unable to execute 'gcc': No such file or directory
> error: command 'gcc' failed with exit status 1
> ----------------------------------------
> ERROR: Failed building wheel for srsly
>
> ERROR: matplotlib 3.3.2 has requirement certifi>=2020.06.20, but you'll have certifi 2019.3.9 which is incompatible.
> ERROR: Complete output from command /snap/jupyter/6/bin/python -u -c 'import setuptools, tokenize;_file='"'"'/tmp/pip-install-za7vvjep/srsly/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-5ixdcr99/install-record.txt --single-version-externally-managed --compile --user --prefix=:
> ERROR: running install
> running build
> running build_py
> running build_ext
> building 'srsly.msgpack._unpacker' extension
> gcc -pthread -B /home/filipe/miniconda3/envs/JUPYTER/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D_LITTLE_ENDIAN_=1 -I/snap/jupyter/6/include/python3.7m -I. -I/tmp/pip-install-za7vvjep/srsly/include -I/snap/jupyter/6/include/python3.7m -c srsly/msgpack/_unpacker.cpp -o build/temp.linux-x86_64-3.7/srsly/msgpack/_unpacker.o -O2 -Wno-strict-prototypes -Wno-unused-function
> unable to execute 'gcc': No such file or directory
> error: command 'gcc' failed with exit status 1
> ----------------------------------------
> ERROR: Command "/snap/jupyter/6/bin/python -u -c 'import setuptools, tokenize;_file='"'"'/tmp/pip-install-za7vvjep/srsly/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-5ixdcr99/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-za7vvjep/srsly/
>
> ----------------------------------------
Summary
This text will be hidden
> ModuleNotFoundError Traceback (most recent call last)
> <ipython-input-2-2b820b2b946f> in <module>
> 1 #hide
> 2 get_ipython().system('pip install -Uqq fastbook')
> ----> 3 import fastbook
> 4 fastbook.setup_book()
>
> ModuleNotFoundError: No module named 'fastbook'