Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Fix Version/s: 3.3
    • Component/s: CQL
    • Labels:
      None
    • Environment:

      Debian and OSX(yosemite)

      Description

      I installed cqlsh for my cassandra server using pip command.

      I wanted to copy a table as CSV to my local system so I used COPY TO command but it threw me the following error.

      Traceback (most recent call last):
      File "/usr/local/bin/cqlsh", line 1133, in onecmd
      self.handle_statement(st, statementtext)
      File "/usr/local/bin/cqlsh", line 1170, in handle_statement
      return custom_handler(parsed)
      File "/usr/local/bin/cqlsh", line 1837, in do_copy
      rows = self.perform_csv_export(ks, cf, columns, fname, opts)
      File "/usr/local/bin/cqlsh", line 1956, in perform_csv_export
      csv_options, dialect_options, unrecognized_options = copyutil.parse_options(self, opts)
      AttributeError: 'module' object has no attribute 'parse_options'

        Activity

        Hide
        Stefania Stefania added a comment -

        I don't know who is responsible for the pip cqlsh packages, Michael Shuler any ideas?

        This call stack makes no sense to me: perform_csv_export was removed before the copy module was renamed to copyutil, so I really don't understand which version it might be.

        Anyway, Abhinav Johri, can you remove the version of cqlsh that was installed with pip and instead install Cassandra, using the same version as the server, and use the cqlsh that ships with the Cassandra package?

        Show
        Stefania Stefania added a comment - I don't know who is responsible for the pip cqlsh packages, Michael Shuler any ideas? This call stack makes no sense to me: perform_csv_export was removed before the copy module was renamed to copyutil, so I really don't understand which version it might be. Anyway, Abhinav Johri , can you remove the version of cqlsh that was installed with pip and instead install Cassandra, using the same version as the server, and use the cqlsh that ships with the Cassandra package?
        Hide
        mshuler Michael Shuler added a comment -

        The https://pypi.python.org/pypi/cqlsh latest version, 5.0.3, detail page shows:

        Author: Andrew Mussey
        Maintainer: Spiro Sideris
        Home Page: https://github.com/spiside/cqlsh

        Version 4.1.1 shows:

        Author: Andrew Mussey
        Home Page: https://github.com/amussey/cqlsh

        I would suggest opening a github issue for problems with pypi releases. Those releases are not done by the Apache Cassandra project.

        Show
        mshuler Michael Shuler added a comment - The https://pypi.python.org/pypi/cqlsh latest version, 5.0.3, detail page shows: Author: Andrew Mussey Maintainer: Spiro Sideris Home Page: https://github.com/spiside/cqlsh Version 4.1.1 shows: Author: Andrew Mussey Home Page: https://github.com/amussey/cqlsh I would suggest opening a github issue for problems with pypi releases. Those releases are not done by the Apache Cassandra project.
        Hide
        Stefania Stefania added a comment -

        Thank you!

        Show
        Stefania Stefania added a comment - Thank you!
        Hide
        allenbao allenbao added a comment - - edited

        hello, I installed cqlsh(5.0.4) for my cassandra server(3.11.0) using pip command ON centos6.6。

        The “COPY FROM” command also print the following error:

        Traceback (most recent call last):
        File "/usr/local/bin/cqlsh", line 1118, in onecmd
        self.handle_statement(st, statementtext)
        File "/usr/local/bin/cqlsh", line 1155, in handle_statement
        return custom_handler(parsed)
        File "/usr/local/bin/cqlsh", line 1819, in do_copy
        rows = self.perform_csv_import(ks, cf, columns, fname, opts)
        File "/usr/local/bin/cqlsh", line 1831, in perform_csv_import
        csv_options, dialect_options, unrecognized_options = copyutil.parse_options(self, opts)
        AttributeError: 'module' object has no attribute 'parse_options'

        Show
        allenbao allenbao added a comment - - edited hello, I installed cqlsh(5.0.4) for my cassandra server(3.11.0) using pip command ON centos6.6。 The “COPY FROM” command also print the following error: Traceback (most recent call last): File "/usr/local/bin/cqlsh", line 1118, in onecmd self.handle_statement(st, statementtext) File "/usr/local/bin/cqlsh", line 1155, in handle_statement return custom_handler(parsed) File "/usr/local/bin/cqlsh", line 1819, in do_copy rows = self.perform_csv_import(ks, cf, columns, fname, opts) File "/usr/local/bin/cqlsh", line 1831, in perform_csv_import csv_options, dialect_options, unrecognized_options = copyutil.parse_options(self, opts) AttributeError: 'module' object has no attribute 'parse_options'
        Hide
        Stefania Stefania added a comment -

        Please refer to the comments above, we are not responsible for the pypi releases of cqlsh.

        Show
        Stefania Stefania added a comment - Please refer to the comments above, we are not responsible for the pypi releases of cqlsh.

          People

          • Assignee:
            Unassigned
            Reporter:
            johri21 Abhinav Johri
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development