We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi all,
I find it interesting that so far no one has a problem with serialization in multiprocessing using Pickle. After initialization in the following lines
"" " Start writer as a new process "" " writer = InfluxDBWriter (queue_)
"writer" is started
writer.start ()
and InfluxDBWriter must be serialized for pipe transfer. The following error message occurs:
File "/Users/joerg/miniconda3/envs/influx/lib/python3.8/multiprocessing/reduction.py", line 60, in dump ForkingPickler (file, protocol) .dump (obj) AttributeError: Can't pickle local object 'PoolManager .__ init__. . '
This error is triggered by the line >>>>: def init __ (self, queue): Process . init __ (self) self.queue = queue
self.client = InfluxDBClient (url = 'http: // localhost: 9999', token = "my_token", org = "my_org", debug = False)
Hardware: MacBook Pro, OS: Catalina Python: 3.8.1 pypi: 2.1 influxdb-client: 1.4.0
The text was updated successfully, but these errors were encountered:
Hi @JSchnepp,
Thanks for reporting a problem.
It's probably caused by not serializing:
influxdb-client-python/influxdb_client/rest.py
Line 97 in ce81899
Line 35 in ce81899
We will fix it asap.
Regards
Sorry, something went wrong.
I prepared fixed version in a branch fix/pickle.
fix/pickle
If you would like to test it then install client via:
pip install git+https://github.com/influxdata/influxdb-client-python.git@fix/pickle
Successfully merging a pull request may close this issue.
Hi all,
I find it interesting that so far no one has a problem with serialization in multiprocessing using Pickle. After initialization in the following lines
"writer" is started
and InfluxDBWriter must be serialized for pipe transfer. The following error message occurs:
File "/Users/joerg/miniconda3/envs/influx/lib/python3.8/multiprocessing/reduction.py", line 60, in dump
ForkingPickler (file, protocol) .dump (obj)
AttributeError: Can't pickle local object 'PoolManager .__ init__. . '
This error is triggered by the line >>>>:
def init __ (self, queue):
Process . init __ (self)
self.queue = queue
Hardware: MacBook Pro, OS: Catalina
Python: 3.8.1
pypi: 2.1
influxdb-client: 1.4.0
The text was updated successfully, but these errors were encountered: