Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] Incorrect example for Cython usage #19239

Closed
asfimport opened this issue Jul 17, 2018 · 0 comments
Closed

[Python] Incorrect example for Cython usage #19239

asfimport opened this issue Jul 17, 2018 · 0 comments

Comments

@asfimport
Copy link

asfimport commented Jul 17, 2018

When blindly pasting the Cython distutils example, one might get the following error:

Traceback (most recent call last):
  File "setup.py", line 20, in <module>
    ext_modules=ext_modules,
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.6/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
    self._build_extensions_serial()
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension
    target_lang=language)
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object
    extra_preargs, extra_postargs, build_temp, target_lang)
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.6/distutils/unixccompiler.py", line 159, in link
    libraries)
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.6/distutils/ccompiler.py", line 1089, in gen_lib_options
    lib_opts.append(compiler.library_dir_option(dir))
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.6/distutils/unixccompiler.py", line 207, in library_dir_option
    return "-L" + dir
TypeError: must be str, not list

Reporter: Antoine Pitrou / @pitrou
Assignee: Antoine Pitrou / @pitrou

Related issues:

Note: This issue was originally created as ARROW-2867. Please see the migration documentation for further details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants