range_libc
range_libc copied to clipboard
Compiling error in pyrangelibc-danieldugas
Hi @sertackaraman and @kctess5 . When i was install by pip3 (python version is 3.6), compiling error was in.
` ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /home/ubuntu/.local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp5ot2wj52 cwd: /tmp/pip-install-czt638ko/pyrangelibc-danieldugas_bb0ed41f41054dea9b42b140164fbe78 Complete output (76 lines): Compiling without CUDA support. To enable CUDA use: $ sudo WITH_CUDA=ON python setup.py install Compiling without trace enabled for Bresenham's Line $ sudo TRACE=ON python setup.py install
running bdist_wheel running build running build_ext /tmp/pip-build-env-08azul2d/overlay/lib/python3.6/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-czt638ko/pyrangelibc-danieldugas_bb0ed41f41054dea9b42b140164fbe78/pywrapper/RangeLibc.pyx tree = Parsing.p_module(s, pxd, full_module_name)
Error compiling Cython file:
...
for x in range(width):
self.thisptr.grid[x][y] = arg1[y,x]
else:
self.thisptr = new OMap(arg1)
else:
print "Failed to construct PyOMap, check argument types."
^
pywrapper/RangeLibc.pyx:134:18: Syntax error in simple statement list
Compiling ./pywrapper/RangeLibc.pyx because it changed.
[1/1] Cythonizing ./pywrapper/RangeLibc.pyx
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in
main()
File "/home/ubuntu/.local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/ubuntu/.local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 262, in build_wheel
metadata_directory)
File "/tmp/pip-build-env-08azul2d/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 231, in build_wheel
wheel_directory, config_settings)
File "/tmp/pip-build-env-08azul2d/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-08azul2d/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 194, in
cmdclass = {'build_ext': build_ext})
File "/tmp/pip-build-env-08azul2d/overlay/lib/python3.6/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-08azul2d/overlay/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "/tmp/pip-build-env-08azul2d/overlay/lib/python3.6/site-packages/Cython/Distutils/build_ext.py", line 131, in build_extension
ext,force=self.force, quiet=self.verbose == 0, **options
File "/tmp/pip-build-env-08azul2d/overlay/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
File "/tmp/pip-build-env-08azul2d/overlay/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: ./pywrapper/RangeLibc.pyx
ERROR: Failed building wheel for pyrangelibc-danieldugas`
I think you should change
from
print "Failed to construct PyOMap, check argument types."
to
print ("Failed to construct PyOMap, check argument types.")