Click here to Skip to main content
15,887,394 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I successfully coded a web crawler in PyCharm, but I need to copy it over to visual studio. When simply copy and pasted, it fails to create my queued and crawled files. Can anyone tell me why this is happening and suggest a way to fix it?

The output message states: The thread 'MainThread' (0x19f4) has exited with code 0 (0x0). The program '[10060] python.exe' has exited with code -1073741510 (0xc000013a).

Here's the code that's supposed to create the file:

What I have tried:

def create_data_files(project_name, base_url):
    queue = project_name + '/queue.txt'

    crawled = project_name + '/crawled.txt'
    if not os.path.isfile(queue):
        write_file(queue, base_url) # the file path and the data
    if not os.path.isfile(crawled):  # look at waiting list, crawl the homepage,  after done crawling moved to crawled
        write_file(crawled, '')
Posted
Updated 6-Apr-16 22:00pm

There are many possibilities here. Maybe your indentations went haywire when you copy-pasted your code. Maybe you were trying to write to a protected location. Or, it could just be that you simply missed a character or two when copy pasting. I'd check those three first, as they are the most likely culprit.

P.S.: When you said "Visual Studio", I assume you specifically meant Python Tools for Visual Studio?
 
Share this answer
 
From MSDN: [MS-ERREF]: NTSTATUS values[^].
0xC000013A
STATUS_CONTROL_C_EXIT
{Application Exit by CTRL+C} The application terminated as a result of a CTRL+C.

You need to find out why python.exe got that interrupt.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900