Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-2867

[Python] Incorrect example for Cython usage

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.10.0
    • Component/s: Documentation, Python
    • Labels:
      None

      Description

      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
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pitrou Antoine Pitrou
                Reporter:
                pitrou Antoine Pitrou
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: