Feb-21-2018, 09:38 PM
I promise the error messages are trying to help you :)
Here's your line 34:
You've got two equal signs there, which means you're trying to do double-assignment. Which is sometimes useful, but normally more confusing that it's worth. For example, you could use it like so:
Quote:There's an error in your program: *** can't assign to literal (C:/WOGCC_Well_Completions_Scraper_Lil_Scraper_12b.py, line 34)
Here's your line 34:
Quote:completion_file = "" = re.findall(completion_name_pattern, str(soup))
You've got two equal signs there, which means you're trying to do double-assignment. Which is sometimes useful, but normally more confusing that it's worth. For example, you could use it like so:
>>> x = y = 5 >>> x 5 >>> y 5But one of the things you're assigning to is an empty string.
>>> "" = 4 File "<stdin>", line 1 SyntaxError: can't assign to literalThat's a strict no-no. I'm not sure what your intention is, probably that was just old code that got left over.