cmake gerelateerde delopyment fout in Heroku

stemmen
0

Ik ben op zoek naar een kolf app op Heroku implementeren en kan niet voorbij dit punt met de volgende fout (deel van de log) te krijgen:

remote:            running install
remote:            running build
remote:            running build_py
remote:            creating build
remote:            creating build/lib.linux-x86_64-3.6
remote:            creating build/lib.linux-x86_64-3.6/pynvx
remote:            copying pynvx/pynvml.py -> build/lib.linux-x86_64-3.6/pynvx
remote:            copying pynvx/__init__.py -> build/lib.linux-x86_64-3.6/pynvx
remote:            running build_ext
remote:            -- The C compiler identification is GNU 7.4.0
remote:            -- The CXX compiler identification is GNU 7.4.0
remote:            -- Check for working C compiler: /usr/bin/cc
remote:            -- Check for working C compiler: /usr/bin/cc -- works
remote:            -- Detecting C compiler ABI info
remote:            -- Detecting C compiler ABI info - done
remote:            -- Detecting C compile features
remote:            -- Detecting C compile features - done
remote:            -- Check for working CXX compiler: /usr/bin/c++
remote:            -- Check for working CXX compiler: /usr/bin/c++ -- works
remote:            -- Detecting CXX compiler ABI info
remote:            -- Detecting CXX compiler ABI info - done
remote:            -- Detecting CXX compile features
remote:            -- Detecting CXX compile features - done
remote:            -- Found PythonInterp: /app/.heroku/python/bin/python (found version 3.6.10)
remote:            -- Found PythonLibs: /app/.heroku/python/lib/libpython3.6m.a
remote:            -- Performing Test HAS_CPP14_FLAG
remote:            -- Performing Test HAS_CPP14_FLAG - Success
remote:            -- pybind11 v2.3.dev0
remote:            -- Performing Test HAS_FLTO
remote:            -- Performing Test HAS_FLTO - Success
remote:            -- LTO enabled
remote:            CMake Error at /tmp/build_d6d39b601bc3d55d6c1c28293609a48f/.heroku/python/lib/python3.6/site-packages/cmake/data/share/cmake-3.13/Modules/FindCUDA.cmake:696 (message):
remote:              Specify CUDA_TOOLKIT_ROOT_DIR
remote:            Call Stack (most recent call first):
remote:              CMakeLists.txt:8 (find_package)
remote:            
remote:            
remote:            -- Configuring incomplete, errors occurred!
remote:            See also /tmp/pip-build-dbmk6r8v/pynvx/build/temp.linux-x86_64-3.6/CMakeFiles/CMakeOutput.log.
remote:            Traceback (most recent call last):
remote:              File <string>, line 1, in <module>
remote:              File /tmp/pip-build-dbmk6r8v/pynvx/setup.py, line 103, in <module>
remote:                Topic :: Software Development :: Libraries :: Python Modules,
remote:              File /app/.heroku/python/lib/python3.6/site-packages/setuptools/__init__.py, line 129, in setup
remote:                return distutils.core.setup(**attrs)
remote:              File /app/.heroku/python/lib/python3.6/distutils/core.py, line 148, in setup
remote:                dist.run_commands()
remote:              File /app/.heroku/python/lib/python3.6/distutils/dist.py, line 955, in run_commands
remote:                self.run_command(cmd)
remote:              File /app/.heroku/python/lib/python3.6/distutils/dist.py, line 974, in run_command
remote:                cmd_obj.run()
remote:              File /app/.heroku/python/lib/python3.6/site-packages/setuptools/command/install.py, line 61, in run
remote:                return orig.install.run(self)
remote:              File /app/.heroku/python/lib/python3.6/distutils/command/install.py, line 545, in run
remote:                self.run_command('build')
remote:              File /app/.heroku/python/lib/python3.6/distutils/cmd.py, line 313, in run_command
remote:                self.distribution.run_command(command)
remote:              File /app/.heroku/python/lib/python3.6/distutils/dist.py, line 974, in run_command
remote:                cmd_obj.run()
remote:              File /app/.heroku/python/lib/python3.6/distutils/command/build.py, line 135, in run
remote:                self.run_command(cmd_name)
remote:              File /app/.heroku/python/lib/python3.6/distutils/cmd.py, line 313, in run_command
remote:                self.distribution.run_command(command)
remote:              File /app/.heroku/python/lib/python3.6/distutils/dist.py, line 974, in run_command
remote:                cmd_obj.run()
remote:              File /tmp/pip-build-dbmk6r8v/pynvx/setup.py, line 32, in run
remote:                self.build_extension(ext)
remote:              File /tmp/pip-build-dbmk6r8v/pynvx/setup.py, line 56, in build_extension
remote:                subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
remote:              File /app/.heroku/python/lib/python3.6/subprocess.py, line 311, in check_call
remote:                raise CalledProcessError(retcode, cmd)
remote:            subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-build-dbmk6r8v/pynvx', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-build-dbmk6r8v/pynvx/build/lib.linux-x86_64-3.6', '-DPYTHON_EXECUTABLE=/app/.heroku/python/bin/python', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
remote:            
remote:            ----------------------------------------
remote:        Command /app/.heroku/python/bin/python -u -c import setuptools, tokenize;__file__='/tmp/pip-build-dbmk6r8v/pynvx/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-dl85ebz9-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-dbmk6r8v/pynvx/
remote:  !     Push rejected, failed to compile Python app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !   Push rejected to hidden-headland-48489.
remote: 
To https://git.heroku.com/hidden-headland-48489.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/hidden-headland-48489.git'

Hier is mijn requirements.txt:

aiohttp==3.6.2
async-timeout==3.0.1
asyncio==3.4.3
attrs==19.3.0
beautifulsoup4==4.8.2
blis==0.4.1
Bottleneck==1.3.1
catalogue==1.0.0
certifi==2019.11.28
chardet==3.0.4
Click==7.0
cmake==3.13.3
cycler==0.10.0
cymem==2.0.3
dataclasses==0.7
fastai==1.0.60
fastprogress==0.2.2
Flask==1.1.1
gunicorn==20.0.4
h11==0.9.0
httptools==0.0.13
idna==2.8
idna-ssl==1.1.0
importlib-metadata==1.4.0
itsdangerous==1.1.0
Jinja2==2.10.3
kiwisolver==1.1.0
MarkupSafe==1.1.1
matplotlib==3.1.2
more-itertools==8.1.0
multidict==4.7.4
murmurhash==1.0.2
numexpr==2.7.1
numpy==1.18.1
nvidia-ml-py3==7.352.0
packaging==20.0
pandas==0.25.3
Pillow==6.2.2
plac==1.1.3
preshed==3.0.2
pynvx==1.0.0
pyparsing==2.4.6
python-dateutil==2.8.1
pytz==2019.3
PyYAML==5.3
requests==2.22.0
scipy==1.4.1
six==1.13.0
soupsieve==1.9.5
spacy==2.2.3
srsly==1.0.1
thinc==7.3.1
https://download.pytorch.org/whl/cpu/torch-1.1.0-cp36-cp36m-linux_x86_64.whl
https://download.pytorch.org/whl/cpu/torchvision-0.3.0-cp36-cp36m-linux_x86_64.whl
tqdm==4.41.1
typing-extensions==3.7.4.1
urllib3==1.25.7
uvicorn==0.11.1
uvloop==0.14.0
wasabi==0.6.0
websockets==8.1
Werkzeug==0.16.0
yarl==1.4.2
zipp==0.6.0

Ik ben nieuw op de implementatie en cmake dus ik ben niet zeker waar te beginnen. Is dit iets wat ik nodig om op te lossen op mijn server of met Heroku? Alle hulp zou worden gewaardeerd.

De vraag is gesteld op 13/01/2020 om 23:57
bron van user
In andere talen...                            

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more