Questions tagged [multiprocessing-manager]

88 questions
0
votes
1 answer

Sharing a custom class object through multiprocessing manager

I am working on a project where I have very specific kind of logs and for this logs to work I have created a class which basically maintains a dictionary that logs time and actions taken for each step of the execution. Which is later used for…
0
votes
1 answer

How to convert ProxyObject in python multiprocessing manager to normal python object

I'm using the multiprocessing library in python 3.7. In my use case, I start with a normal list of dicts - I use this to create a ListProxy object from a SyncManager which I then use in a pool to syncronise the list (created as below). data =…
0
votes
1 answer

pandas + multiprocessing: "NotImplementedError: Not supported for DataFrames!"

After my previous thread was marked as a duplicate, it pointed me in the direction of multiprocessing managers. I'm trying to use multiprocessing to create a service that handles my pandas dataframe to give to Flask requests. This is my code so…
0
votes
1 answer

Suggestions on using python multiprocessing to get numpy array returned from target function?

I am completely new to python multiprocessing and a bit overwhelmbed by the vast amount of online resources, so I kinda wanna a more clear-cut approach from here. My code looks like the following: the two functions, forward and backward are very…
0
votes
0 answers

multiprocessing.Manager().Queue() TypeError: can't pickle thread.lock objects

I assign an instance object (q) of the multiprocessing.Manaager().Queue() to one item of the instance object (d) of the multiprocessing.Manager().dict(), but I cannot reuse the q in the dict. The version of the Python is 2.7.15. #!/usr/bin/env…
0
votes
0 answers

multiprocessing.process in python for parallel processes consuming values from shared queue

I am trying to utilize python multiprocessing pool to take values from a shared queue and consume in worker processes. import multiprocessing def myTask(queue): while not queue.empty(): value = queue.get() print "Process {}…
0
votes
1 answer

Python multiprocessing Manger OSError "Only one usage of each socket address"

I am creating a communication platform in python (3.4.4) and using the multiprocessing.managers.BaseManager class. I have isolated the problem to the code below. The intention is to have a ROVManager(role='server') instance running in one process on…
0
votes
1 answer

python manager register issue or just my faulty code

I use a python manager to share data between processes. I wanted to break up my code into smaller pieces and created a function 'soFactory' that would take a dictionary of name/object pairs and register the object with the manager under the given…
0
votes
2 answers

Modify a list in Multiprocessing pool's manager dict

I have a list of elements which I am processing in a multiprocessing apply_async task and updating elements processed one by one with a key in manager dict on which I want to map whole list. I tried following code: #!/usr/bin/python from…
-1
votes
1 answer

How to run parallel processes with multiprocessing terminate one of them from another and then restart

I get error when running the code TypeError: Pickling an AuthenticationString object is disallowed for security reasons I am very new to this... You can add your own completely new solution/code to this similar to my code as long as you can meet…
-1
votes
1 answer

Pool apply function hangs and never executes

I am trying to fetch Rally data by using its python library pyral. Sequentially the same code works, but its slow. I thought of using python multiprocess package, however my pool.apply method gets stuck and never executes. I tried running it in…
-1
votes
1 answer

Calling threading.get_ident() returns same ID between different threads

While I was learning to use SyncManager sharing common object among multiple processes, I noticed a odd behavior of Thread working in the context of SyncManager. To my understanding, SyncManager creates a server process, accepting connections from…
-2
votes
1 answer

Value is not storing into Manager().dict() inside the Pool()

This is the main code: if __name__ == '__main__': manager = Manager() mylist = manager.list() mydict = manager.dict() mylist.append('abc') mylist.append('xyz') for k in mylist: mydict[k] = manager.list() pool =…
1 2 3 4 5
6