Skip to content
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

Error while writing file: set changed size during iteration #50

Open
aman25m opened this issue Sep 14, 2017 · 1 comment
Open

Error while writing file: set changed size during iteration #50

aman25m opened this issue Sep 14, 2017 · 1 comment

Comments

@aman25m
Copy link

aman25m commented Sep 14, 2017

Received the following error while running the code:

untitled1

I believe that while writing, each thread is trying to access the same file due to which the error is occurring. Moreover, I have one doubt. In the below mentioned function:

def update_files():
    set_to_file(Spider.queue_file, Spider.queue)
    set_to_file(Spider.crawled_file, Spider.crawled)

The Spider.queue is common for all the threads, or each thread has its own Spider.queue when the thread is created and Spider.crawl_page() is called?

@HtetAungKyawhak
Copy link

Can you fixed that errors? If you can please share me, I also faced like that error! ;-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants