{"action":"created","issue":{"url":"https://api.github.com/repos/r4fek/django-cassandra-engine/issues/68","repository_url":"https://api.github.com/repos/r4fek/django-cassandra-engine","labels_url":"https://api.github.com/repos/r4fek/django-cassandra-engine/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/r4fek/django-cassandra-engine/issues/68/comments","events_url":"https://api.github.com/repos/r4fek/django-cassandra-engine/issues/68/events","html_url":"https://github.com/r4fek/django-cassandra-engine/issues/68","id":162425622,"number":68,"title":"sync_cassandra issue with cassandra docker image 3.5","user":{"login":"grillazz","id":3415861,"avatar_url":"https://avatars.githubusercontent.com/u/3415861?v=3","gravatar_id":"","url":"https://api.github.com/users/grillazz","html_url":"https://github.com/grillazz","followers_url":"https://api.github.com/users/grillazz/followers","following_url":"https://api.github.com/users/grillazz/following{/other_user}","gists_url":"https://api.github.com/users/grillazz/gists{/gist_id}","starred_url":"https://api.github.com/users/grillazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grillazz/subscriptions","organizations_url":"https://api.github.com/users/grillazz/orgs","repos_url":"https://api.github.com/users/grillazz/repos","events_url":"https://api.github.com/users/grillazz/events{/privacy}","received_events_url":"https://api.github.com/users/grillazz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/r4fek/django-cassandra-engine/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-06-27T10:58:57Z","updated_at":"2016-08-18T07:08:27Z","closed_at":null,"body":"Hi,\r\n\r\nI have below error when trying sync_cassandra with docker cassandra image 3.5\r\n\r\nHowever my models are created with success.\r\n\r\nThanks,\r\n\r\nJ\r\n\r\n```python\r\n(cass)jj@jj-box:~/projects_dev/cass_projects$ sudo docker-compose run web python manage.py sync_cassandra\r\n/usr/local/lib/python3.5/site-packages/django/core/management/base.py:577: RemovedInDjango110Warning: NoArgsCommand class is deprecated and will be removed in Django 1.10. Use BaseCommand instead, which takes no arguments by default.\r\n  RemovedInDjango110Warning\r\n\r\n/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py:345: RemovedInDjango110Warning: OptionParser usage for Django management commands is deprecated, use ArgumentParser instead\r\n  self.fetch_command(subcommand).run_from_argv(self.argv)\r\n\r\nCreating keyspace db..\r\n/usr/local/lib/python3.5/site-packages/cassandra/cqlengine/management.py:462: UserWarning: CQLENG_ALLOW_SCHEMA_MANAGEMENT environment variable is not set. Future versions of this package will require this variable to enable management functions.\r\n  warnings.warn(msg)\r\n\r\nSyncing kaska.models.UserGuess\r\nSyncing kaska.models.UserLike\r\nTraceback (most recent call last):\r\n  File \"manage.py\", line 10, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py\", line 353, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py\", line 345, in execute\r\n    self.fetch_command(subcommand).run_from_argv(self.argv)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/core/management/base.py\", line 348, in run_from_argv\r\n    self.execute(*args, **cmd_options)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/core/management/base.py\", line 399, in execute\r\n    output = self.handle(*args, **options)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/core/management/base.py\", line 584, in handle\r\n    return self.handle_noargs(**options)\r\n  File \"/usr/local/lib/python3.5/site-packages/django_cassandra_engine/management/commands/sync_cassandra.py\", line 116, in handle_noargs\r\n    emit_post_migrate_signal(1, False, cassandra_alias)\r\n  File \"/usr/local/lib/python3.5/site-packages/django_cassandra_engine/management/commands/sync_cassandra.py\", line 29, in emit_post_migrate_signal\r\n    using=db)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/dispatch/dispatcher.py\", line 192, in send\r\n    response = receiver(signal=self, sender=sender, **named)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/contrib/auth/management/__init__.py\", line 85, in create_permissions\r\n    ctype = ContentType.objects.db_manager(using).get_for_model(klass)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/contrib/contenttypes/models.py\", line 67, in get_for_model\r\n    ct = self.get(app_label=opts.app_label, model=opts.model_name)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/db/models/manager.py\", line 122, in manager_method\r\n    return getattr(self.get_queryset(), name)(*args, **kwargs)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/db/models/query.py\", line 381, in get\r\n    num = len(clone)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/db/models/query.py\", line 240, in __len__\r\n    self._fetch_all()\r\n  File \"/usr/local/lib/python3.5/site-packages/django/db/models/query.py\", line 1074, in _fetch_all\r\n    self._result_cache = list(self.iterator())\r\n  File \"/usr/local/lib/python3.5/site-packages/django/db/models/query.py\", line 52, in __iter__\r\n    results = compiler.execute_sql()\r\n  File \"/usr/local/lib/python3.5/site-packages/django/db/models/sql/compiler.py\", line 837, in execute_sql\r\n    sql, params = self.as_sql()\r\n  File \"/usr/local/lib/python3.5/site-packages/django/db/models/sql/compiler.py\", line 389, in as_sql\r\n    where, w_params = self.compile(self.where) if self.where is not None else (\"\", [])\r\n  File \"/usr/local/lib/python3.5/site-packages/django/db/models/sql/compiler.py\", line 366, in compile\r\n    sql, params = node.as_sql(self, self.connection)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/db/models/sql/where.py\", line 79, in as_sql\r\n    sql, params = compiler.compile(child)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/db/models/sql/compiler.py\", line 366, in compile\r\n    sql, params = node.as_sql(self, self.connection)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/db/models/lookups.py\", line 160, in as_sql\r\n    rhs_sql = self.get_rhs_op(connection, rhs_sql)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/db/models/lookups.py\", line 164, in get_rhs_op\r\n    return connection.operators[self.lookup_name] % rhs\r\n  File \"/usr/local/lib/python3.5/site-packages/django_cassandra_engine/base/__init__.py\", line 103, in __getattr__\r\n    raise AttributeError(attr)\r\nAttributeError: operators\r\n```\r\nPlease find my `requirements.txt` file below.\r\n\r\n```\r\nDjango==1.9.7\r\ndjangorestframework\r\ndjango-cassandra-engine\r\nwheel==0.24.0\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/r4fek/django-cassandra-engine/issues/comments/240641733","html_url":"https://github.com/r4fek/django-cassandra-engine/issues/68#issuecomment-240641733","issue_url":"https://api.github.com/repos/r4fek/django-cassandra-engine/issues/68","id":240641733,"user":{"login":"grillazz","id":3415861,"avatar_url":"https://avatars.githubusercontent.com/u/3415861?v=3","gravatar_id":"","url":"https://api.github.com/users/grillazz","html_url":"https://github.com/grillazz","followers_url":"https://api.github.com/users/grillazz/followers","following_url":"https://api.github.com/users/grillazz/following{/other_user}","gists_url":"https://api.github.com/users/grillazz/gists{/gist_id}","starred_url":"https://api.github.com/users/grillazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grillazz/subscriptions","organizations_url":"https://api.github.com/users/grillazz/orgs","repos_url":"https://api.github.com/users/grillazz/repos","events_url":"https://api.github.com/users/grillazz/events{/privacy}","received_events_url":"https://api.github.com/users/grillazz/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T07:08:27Z","updated_at":"2016-08-18T07:08:27Z","body":"@alieblice please find below `Dockerfile` which will solving this warning\r\n```docker\r\nFROM python:3.5\r\n\r\nENV PYTHONUNBUFFERED 1\r\nRUN mkdir /code\r\nWORKDIR /code\r\nADD requirements.txt /code/\r\nRUN pip install -r requirements.txt\r\nADD . /code/\r\nENV CQLENG_ALLOW_SCHEMA_MANAGEMENT=\"True\"\r\n```"}}
{"actor":{"display_login":"grillazz"}}