Error in reseting launchpad

launchpad.reset(password)

File “/usr/lib64/python2.7/site-packages/fireworks/core/launchpad.py”, line 245, in reset

self.fireworks.delete_many({})

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 1192, in delete_many

filter, True, collation=collation, session=session),

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 1123, in _delete_retryable

_delete, session)

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 3104, in call

self.__name.split(".")[-1])

TypeError: ‘Collection’ object is not callable. If you meant to call the ‘_retryable_write’ method on a ‘Collection’ object it is failing because no such method exists.

``

I recently updated fireworks from 1.2.4 and am now getting this error. I tracked it down and it starts in 1.3.2. For the moment I’m going to roll back, but any suggestions?

Thanks!

Hi Michelle,

For tracking down problems sometimes the changelog is useful:

https://materialsproject.github.io/fireworks/changelog.html

In FWS 1.3.2 for example, we updated the pymongo commands since the newest pymongo, which has many useful updates, no longer supported the old commands.

Can you confirm:

  • did you update FWS via one of the procedures listed here: https://materialsproject.github.io/fireworks/installation.html . In particular, if you run “git pull” you need to also do “python setup.py install” or “python setup.py develop”.

  • what version of pymongo do you have? e.g. “import pymongo; print(pymongo.version)”

Best

Anubhav

···

On Thursday, March 15, 2018 at 11:55:28 AM UTC-7, Michelle Brenner wrote:

launchpad.reset(password)

File “/usr/lib64/python2.7/site-packages/fireworks/core/launchpad.py”, line 245, in reset

self.fireworks.delete_many({})

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 1192, in delete_many

filter, True, collation=collation, session=session),

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 1123, in _delete_retryable

_delete, session)

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 3104, in call

self.__name.split(".")[-1])

TypeError: ‘Collection’ object is not callable. If you meant to call the ‘_retryable_write’ method on a ‘Collection’ object it is failing because no such method exists.

``

I recently updated fireworks from 1.2.4 and am now getting this error. I tracked it down and it starts in 1.3.2. For the moment I’m going to roll back, but any suggestions?

Thanks!

Hi Michelle,

Going off what Anubhav said, I have had similar errors which were fixed by a pymongo update.

···

On Thursday, March 15, 2018 at 11:55:28 AM UTC-7, Michelle Brenner wrote:

launchpad.reset(password)

File “/usr/lib64/python2.7/site-packages/fireworks/core/launchpad.py”, line 245, in reset

self.fireworks.delete_many({})

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 1192, in delete_many

filter, True, collation=collation, session=session),

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 1123, in _delete_retryable

_delete, session)

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 3104, in call

self.__name.split(".")[-1])

TypeError: ‘Collection’ object is not callable. If you meant to call the ‘_retryable_write’ method on a ‘Collection’ object it is failing because no such method exists.

``

I recently updated fireworks from 1.2.4 and am now getting this error. I tracked it down and it starts in 1.3.2. For the moment I’m going to roll back, but any suggestions?

Thanks!

I have the latest pymongo installed:

pymongo==3.6.1

I installed using pip.

Since it was a pymongo error I thought of that first but since I was at the latest version I wasn’t sure where to go from there.

···

On Friday, 16 March 2018 11:19:17 UTC-7, Anubhav Jain wrote:

Hi Michelle,

For tracking down problems sometimes the changelog is useful:

https://materialsproject.github.io/fireworks/changelog.html

In FWS 1.3.2 for example, we updated the pymongo commands since the newest pymongo, which has many useful updates, no longer supported the old commands.

Can you confirm:

  • what version of pymongo do you have? e.g. “import pymongo; print(pymongo.version)”

Best

Anubhav

On Thursday, March 15, 2018 at 11:55:28 AM UTC-7, Michelle Brenner wrote:

launchpad.reset(password)

File “/usr/lib64/python2.7/site-packages/fireworks/core/launchpad.py”, line 245, in reset

self.fireworks.delete_many({})

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 1192, in delete_many

filter, True, collation=collation, session=session),

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 1123, in _delete_retryable

_delete, session)

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 3104, in call

self.__name.split(".")[-1])

TypeError: ‘Collection’ object is not callable. If you meant to call the ‘_retryable_write’ method on a ‘Collection’ object it is failing because no such method exists.

``

I recently updated fireworks from 1.2.4 and am now getting this error. I tracked it down and it starts in 1.3.2. For the moment I’m going to roll back, but any suggestions?

Thanks!

Which version of pymongo are you using? Maybe I’ve gone too far.

···

On Friday, 16 March 2018 11:42:40 UTC-7, Alex Dunn wrote:

Hi Michelle,

Going off what Anubhav said, I have had similar errors which were fixed by a pymongo update.

On Thursday, March 15, 2018 at 11:55:28 AM UTC-7, Michelle Brenner wrote:

launchpad.reset(password)

File “/usr/lib64/python2.7/site-packages/fireworks/core/launchpad.py”, line 245, in reset

self.fireworks.delete_many({})

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 1192, in delete_many

filter, True, collation=collation, session=session),

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 1123, in _delete_retryable

_delete, session)

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 3104, in call

self.__name.split(".")[-1])

TypeError: ‘Collection’ object is not callable. If you meant to call the ‘_retryable_write’ method on a ‘Collection’ object it is failing because no such method exists.

``

I recently updated fireworks from 1.2.4 and am now getting this error. I tracked it down and it starts in 1.3.2. For the moment I’m going to roll back, but any suggestions?

Thanks!

I am using 3.4.0 but I doubt you’ve gone too far.

Sorry to keep asking the same thing, but are you sure the updated pymongo is in the same Python environment as your FWS installation?

Best,

Anubhav

···

On Fri, Mar 16, 2018 at 12:03 PM, Michelle Brenner [email protected] wrote:

Which version of pymongo are you using? Maybe I’ve gone too far.

On Friday, 16 March 2018 11:42:40 UTC-7, Alex Dunn wrote:

Hi Michelle,

Going off what Anubhav said, I have had similar errors which were fixed by a pymongo update.

On Thursday, March 15, 2018 at 11:55:28 AM UTC-7, Michelle Brenner wrote:

launchpad.reset(password)

File “/usr/lib64/python2.7/site-packages/fireworks/core/launchpad.py”, line 245, in reset

self.fireworks.delete_many({})

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 1192, in delete_many

filter, True, collation=collation, session=session),

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 1123, in _delete_retryable

_delete, session)

File “/usr/lib64/python2.7/site-packages/pymongo/collection.py”, line 3104, in call

self.__name.split(".")[-1])

TypeError: ‘Collection’ object is not callable. If you meant to call the ‘_retryable_write’ method on a ‘Collection’ object it is failing because no such method exists.

``

I recently updated fireworks from 1.2.4 and am now getting this error. I tracked it down and it starts in 1.3.2. For the moment I’m going to roll back, but any suggestions?

Thanks!

You received this message because you are subscribed to the Google Groups “fireworkflows” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

Visit this group at https://groups.google.com/group/fireworkflows.

To view this discussion on the web visit https://groups.google.com/d/msgid/fireworkflows/b95814b3-efe3-4e6c-aff6-f41c7882b0e3%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Best,
Anubhav

Hmm that should work. Firworks requires pymongo==3.6.0

How is your launchpad object being instantiated? E.g., from a file, using LaunchPad(port=xxxxx), etc.?