-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
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
freeze_support() line to be omitted.. #48
Comments
Hey, thanks for reporting! Can you post your pypeln version + OS information? |
Are you running exactly this example? https://github.com/cgarciae/pypeln/blob/master/benchmarks/100_million_downloads/client-pypeln-io.py |
Hey @cgarciae versions are as below: I'm trying the it on both the server and pc, as wanted to implement in an API data fetch script. And yes that it is the same code I used, just with a difference of If main clause |
Can you try to run this code on your OS? Sadly I cant test on windows.
|
Can you try to run the last line twice? You caught a bug in which the threading module is creating a multiprocessing manager (it shouldn't), so there are 2 now. |
tried with and without name change still this I was searching side by side and had found this article, maybe this might give some insight. |
I am thinking of lazy loading the |
same thing is happening without if clause, I was trying if just for the sake of traceback. great, please let me know if I can help with anything. being new to async, not sure where to look under the hood. |
Thanks a lot! Can you try the
Sadly this is more of a Windows thing related to the |
sure, tried this, Working and showing successfully build. |
@HardipinderS does the example work now? |
no still same error |
@Davidnet is it possible to test on windows somehow? |
@HardipinderS can you post the new error? The |
Hey @cgarciae sorry for the delayed reply, still able to call the manager. |
I mean, what is the new error on your sample code? |
@HardipinderS are you using PyCharm by any chance? Checkout #52 |
No VS code and one bash and other time cmd |
I'm getting this error
I was trying the code from [https://medium.com/@cgarciae/making-an-infinite-number-of-requests-with-python-aiohttp-pypeln-3a552b97dc95] and was to hoping to get an error for server not on or something but it throwed me this.
I tried adding the call to each task in if clause but still this error.
if name == 'main':
pl.task.each(
fetch,
urls,
workers=limit,
on_start=lambda: dict(session=ClientSession(connector=TCPConnector(limit=None))),
on_done=lambda session: session.close(),
run=True,
)
can you please help out where I might be going wrong?
The text was updated successfully, but these errors were encountered: