Issue with ptop_fast_reindex_fluff command

Hi Lukasz,

I see the same issue and just created a ticket. You can just reset the
checkpoint to 0 and use run_ptop to have the pillow reindex for now.

Cory

··· On Mon, May 12, 2014 at 12:51 PM, Łukasz Wyszomirski < lwyszomirski@soldevelo.com> wrote:

Hi All,

I want to run a ptop_fast_reindex_fluff command, but I got a some error.
Do you have any ideas what could be cause of this problem?

Traceback (most recent call last):
File "./manage.py", line 52, in
execute_from_command_line(sys.argv)
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/core/management/init.py",
line 453, in execute_from_command_line
utility.execute()
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/core/management/init.py",
line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/core/management/init.py",
line 272, in fetch_command
klass = load_command_class(app_name, subcommand)
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/core/management/init.py",
line 77, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/importlib.py",
line 35, in import_module
import(name)
File "./submodules/fluff-src/fluff/init.py", line 13, in
import fluff.sync_couchdb
File "./submodules/fluff-src/fluff/sync_couchdb.py", line 8, in
from corehq.preindex import PreindexPlugin
File "/home/luki/commcare/corehq/init.py", line 4, in
from corehq.apps.reports.standard import (monitoring, inspect, export,
File "/home/luki/commcare/corehq/apps/reports/standard/monitoring.py",
line 280, in
class SubmissionsByFormReport(WorkerMonitoringReportTableBase,
MultiFormDrilldownMixin, DatespanMixin):
File "/home/luki/commcare/corehq/apps/reports/standard/monitoring.py",
line 293, in SubmissionsByFormReport
description = _("Number of submissions by form.")
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/init.py",
line 71, in ugettext
return _trans.ugettext(message)
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
line 276, in ugettext
return do_translate(message, 'ugettext')
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
line 258, in do_translate
_default = translation(settings.LANGUAGE_CODE)
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
line 172, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
line 154, in _fetch
app = import_module(appname)
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/importlib.py",
line 35, in import_module
import(name)
File "/home/luki/commcare/custom/succeed/init.py", line 2, in

from custom.succeed.reports.all_patients import PatientListReport
File "/home/luki/commcare/custom/succeed/reports/init.py", line 36,
in
'visit_name': _('CM Initial contact form'),
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/init.py",
line 71, in ugettext
return _trans.ugettext(message)
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
line 276, in ugettext
return do_translate(message, 'ugettext')
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
line 258, in do_translate
_default = translation(settings.LANGUAGE_CODE)
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
line 172, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
line 154, in _fetch
app = import_module(appname)
File
"/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/importlib.py",
line 35, in import_module
import(name)
File "/home/luki/commcare/custom/m4change/init.py", line 1, in

from custom.m4change.reports import anc_hmis_report, ld_hmis_report,
immunization_hmis_report, all_hmis_report,
File
"/home/luki/commcare/custom/m4change/reports/mcct_monthly_aggregate_report.py",
line 9, in
from custom.m4change.models import McctStatus
File "/home/luki/commcare/custom/m4change/models.py", line 13, in

from corehq.fluff.calculators.xform import FormPropertyFilter
File "/home/luki/commcare/corehq/fluff/calculators/xform.py", line 3, in

from corehq.fluff.calculators.logic import ORCalculator
File "/home/luki/commcare/corehq/fluff/calculators/logic.py", line 5, in

class ORCalculator(fluff.Calculator):
AttributeError: 'module' object has no attribute 'Calculator'

Thanks,
Łukasz

--


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thanks for help.

Łukasz

··· On 13.05.2014 14:49, Cory Zue wrote: > Hi Lukasz, > > I see the same issue and just created a ticket. You can just reset the > checkpoint to 0 and use run_ptop to have the pillow reindex for now. > > Cory > > > On Mon, May 12, 2014 at 12:51 PM, Łukasz Wyszomirski <lwyszomirski@soldevelo.com > wrote: > > Hi All, > > I want to run a ptop_fast_reindex_fluff command, but I got a some > error. Do you have any ideas what could be cause of this problem? > > Traceback (most recent call last): > File "./manage.py", line 52, in > execute_from_command_line(sys.argv) > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/core/management/__init__.py", > line 453, in execute_from_command_line > utility.execute() > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/core/management/__init__.py", > line 392, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/core/management/__init__.py", > line 272, in fetch_command > klass = load_command_class(app_name, subcommand) > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/core/management/__init__.py", > line 77, in load_command_class > module = import_module('%s.management.commands.%s' % > (app_name, name)) > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/importlib.py", > line 35, in import_module > __import__(name) > File "./submodules/fluff-src/fluff/__init__.py", line 13, in > > import fluff.sync_couchdb > File "./submodules/fluff-src/fluff/sync_couchdb.py", line 8, in > > from corehq.preindex import PreindexPlugin > File "/home/luki/commcare/corehq/__init__.py", line 4, in > from corehq.apps.reports.standard import (monitoring, inspect, > export, > File > "/home/luki/commcare/corehq/apps/reports/standard/monitoring.py", > line 280, in > class SubmissionsByFormReport(WorkerMonitoringReportTableBase, > MultiFormDrilldownMixin, DatespanMixin): > File > "/home/luki/commcare/corehq/apps/reports/standard/monitoring.py", > line 293, in SubmissionsByFormReport > description = _("Number of submissions by form.") > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/__init__.py", > line 71, in ugettext > return _trans.ugettext(message) > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", > line 276, in ugettext > return do_translate(message, 'ugettext') > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", > line 258, in do_translate > _default = translation(settings.LANGUAGE_CODE) > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", > line 172, in translation > default_translation = _fetch(settings.LANGUAGE_CODE) > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", > line 154, in _fetch > app = import_module(appname) > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/importlib.py", > line 35, in import_module > __import__(name) > File "/home/luki/commcare/custom/succeed/__init__.py", line 2, > in > from custom.succeed.reports.all_patients import PatientListReport > File "/home/luki/commcare/custom/succeed/reports/__init__.py", > line 36, in > 'visit_name': _('CM Initial contact form'), > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/__init__.py", > line 71, in ugettext > return _trans.ugettext(message) > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", > line 276, in ugettext > return do_translate(message, 'ugettext') > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", > line 258, in do_translate > _default = translation(settings.LANGUAGE_CODE) > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", > line 172, in translation > default_translation = _fetch(settings.LANGUAGE_CODE) > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", > line 154, in _fetch > app = import_module(appname) > File > "/home/luki/.virtualenvs/commcare-hq/local/lib/python2.7/site-packages/django/utils/importlib.py", > line 35, in import_module > __import__(name) > File "/home/luki/commcare/custom/m4change/__init__.py", line 1, > in > from custom.m4change.reports import anc_hmis_report, > ld_hmis_report, immunization_hmis_report, all_hmis_report,\ > File > "/home/luki/commcare/custom/m4change/reports/mcct_monthly_aggregate_report.py", > line 9, in > from custom.m4change.models import McctStatus > File "/home/luki/commcare/custom/m4change/models.py", line 13, > in > from corehq.fluff.calculators.xform import FormPropertyFilter > File "/home/luki/commcare/corehq/fluff/calculators/xform.py", > line 3, in > from corehq.fluff.calculators.logic import ORCalculator > File "/home/luki/commcare/corehq/fluff/calculators/logic.py", > line 5, in > class ORCalculator(fluff.Calculator): > AttributeError: 'module' object has no attribute 'Calculator' > > Thanks, > Łukasz > > > -- > > --- > You received this message because you are subscribed to the Google > Groups "CommCare Developers" group. > To unsubscribe from this group and stop receiving emails from it, > send an email to commcare-developers+unsubscribe@googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > > > -- > > --- > You received this message because you are subscribed to the Google > Groups "CommCare Developers" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to commcare-developers+unsubscribe@googlegroups.com > . > For more options, visit https://groups.google.com/d/optout.