MoDeNa-EUProject / MoDeNa

Software Framework for MOdelling of morphology DEvelopment of micro- and NAnostructures (MoDeNa)
17 stars 19 forks source link

foamnigProcess & twoTank example #55

Closed karimimp closed 8 years ago

karimimp commented 8 years ago

Hi, After updating the python dependencies, I am trying to test the 0D code.

cd /MoDeNa/applications/PUfoam/foamingProcess
./build    
./creatInputs
./initModels
./workflow1

executing workflow1 gives me:

Exception AttributeError: "'Cursor' object has no attribute '_Cursor__id'" in <bound method Cursor.__del__ of <pymongo.cursor.Cursor object at 0x7f2cbaa71bd0>> ignored
Traceback (most recent call last):
  File "./workflow1", line 55, in <module>
    rapidfire(launchpad)
  File "/usr/local/lib/python2.7/dist-packages/fireworks/core/rocket_launcher.py", line 72, in rapidfire
    rocket_ran = launch_rocket(launchpad, fworker, strm_lvl=strm_lvl)
  File "/usr/local/lib/python2.7/dist-packages/fireworks/core/rocket_launcher.py", line 38, in launch_rocket
    rocket_ran = rocket.run()
  File "/usr/local/lib/python2.7/dist-packages/fireworks/core/rocket.py", line 116, in run
    m_fw, launch_id = lp.checkout_fw(self.fworker, launch_dir, self.fw_id)
  File "/usr/local/lib/python2.7/dist-packages/fireworks/core/launchpad.py", line 800, in checkout_fw
    self._refresh_wf(m_fw.fw_id)
  File "/usr/local/lib/python2.7/dist-packages/fireworks/core/launchpad.py", line 976, in _refresh_wf
    wf = self.get_wf_by_fw_id_lzyfw(fw_id)
  File "/usr/local/lib/python2.7/dist-packages/fireworks/core/launchpad.py", line 324, in get_wf_by_fw_id_lzyfw
    links_dict['metadata'], fw_states=fw_states)
  File "/usr/local/lib/python2.7/dist-packages/fireworks/core/firework.py", line 683, in __init__
    for pfw in fw.parents:
  File "/usr/local/lib/python2.7/dist-packages/fireworks/core/launchpad.py", line 1187, in parents
    def parents(self): return self.partial_fw.parents
  File "/usr/local/lib/python2.7/dist-packages/fireworks/core/launchpad.py", line 1216, in partial_fw
    data = self._fwc.find_one({'fw_id': self.fw_id}, fields=fields)
  File "/usr/local/lib/python2.7/dist-packages/pymongo/collection.py", line 1004, in find_one
    *args, **kwargs).max_time_ms(max_time_ms)
  File "/usr/local/lib/python2.7/dist-packages/pymongo/collection.py", line 1137, in find
    return Cursor(self, *args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'fields'

I also tried to run my savior (a.k.a twoTank :), I can compile but ./initModels gives me the exact same error. any thoughts?

henrus commented 8 years ago

Christos had a similar problem. What version of FireWorks are you using. It should be at least 1.2.

sudo pip install -U pip show fireworks

If this does not work. Try deleting it from

/usr/local/lib/python2.7/dist-packages

fireworks AND FireWorks-*

Henrik

karimimp commented 8 years ago

Thanks Henrik. It was 1.04 and just upgraded it 1.2.2 and it is working.