Hello, I am have problems with my configuration file.
I cannot get rid of a “pymongo.errors.ConfigurationError: Unknown option ssl_ca_certs”, even when I change my fireworks config file.
I tried to simplify the issue below.
import fireworks
from fireworks.fw_config import LAUNCHPAD_LOC
from fireworks import LaunchPad
print('fireworks', fireworks.__version__)
print('pymongo', pymongo.__version__)
print(LAUNCHPAD_LOC)
lpad = LaunchPad.auto_load()
which returns this error message
fireworks 1.9.7
pymongo 4.1.1
/home/mdi0316/.fireworks/my_launchpad.yaml
Traceback (most recent call last):
File "LaunchPad.py", line 9, in <module>
lpad = LaunchPad.auto_load()
File "/home/mdi0316/anaconda3/lib/python3.8/site-packages/fireworks/core/launchpad.py", line 326, in auto_load
return LaunchPad.from_file(LAUNCHPAD_LOC)
File "/home/mdi0316/anaconda3/lib/python3.8/site-packages/fireworks/utilities/fw_serializers.py", line 295, in from_file
return cls.from_format(f.read(), f_format=f_format)
File "/home/mdi0316/anaconda3/lib/python3.8/site-packages/fireworks/utilities/fw_serializers.py", line 265, in from_format
return cls.from_dict(reconstitute_dates(dct))
File "/home/mdi0316/anaconda3/lib/python3.8/site-packages/fireworks/core/launchpad.py", line 317, in from_dict
return LaunchPad(d['host'], port, name, username, password,
File "/home/mdi0316/anaconda3/lib/python3.8/site-packages/fireworks/core/launchpad.py", line 220, in __init__
self.connection = MongoClient(self.host, self.port, ssl=self.ssl,
File "/home/mdi0316/anaconda3/lib/python3.8/site-packages/pymongo/mongo_client.py", line 739, in __init__
dict(common.validate(keyword_opts.cased_key(k), v) for k, v in keyword_opts.items())
File "/home/mdi0316/anaconda3/lib/python3.8/site-packages/pymongo/mongo_client.py", line 739, in <genexpr>
dict(common.validate(keyword_opts.cased_key(k), v) for k, v in keyword_opts.items())
File "/home/mdi0316/anaconda3/lib/python3.8/site-packages/pymongo/common.py", line 754, in validate
value = validator(option, value)
File "/home/mdi0316/anaconda3/lib/python3.8/site-packages/pymongo/common.py", line 159, in raise_config_error
raise ConfigurationError("Unknown option %s" % (key,))
pymongo.errors.ConfigurationError: Unknown option ssl_ca_certs
My LAUNCHPAD_LOC looks like this (note that I tried to remove all ssl related line since I have no authentication and then I explicitely set the last 6 lines (tls…).
authsource: mdi0316_admin
host: 10.100.192.1
logdir: null
mongoclient_kwargs: {}
name: mdi0316_admin
password: psswdd123
port: 27017
strm_lvl: INFO
uri_mode: false
user_indices: []
username: mdi0316_admin
wf_user_indices: []
tlsAllowInvalidCertificates: false
tlsAllowInvalidHostnames: false
tlsCAFile: false
tlsCertificateKeyFile: false
tlsCRLFile: false
tlsCertificateKeyFilePassword: false
In a previous version of the config file, I had this (whith no difference in the output).
ssl: false
ssl_ca_certs: null
ssl_certfile: null
ssl_keyfile: null
ssl_pem_passphrase: null
Can anyone help here?
Thanks
Marco