#๐Ÿ”’ problem

89 messages ยท Page 1 of 1 (latest)

unreal ravine
#

.

marsh starBOT
#

@unreal ravine

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

unreal ravine
#

@whole elk I don't get what I should do

#

why doesn't the json file just interpret the proxies as regular strings

whole elk
#

ยฏ_(ใƒ„)_/ยฏ

#

Ask your Python question, not if you can ask or if there's an expert who can help.
Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
Explain what you expect to happen and what actually happens.

#

you've been here long enough and have asked for help enough times to know how our process works

#

we aren't mind readers nor can we see your code or screen.

unreal ravine
whole elk
#

json can't be just a list.

#

then it's not JSON.

dawn ermine
#

Yes it can.

#

That's just fine.

unreal ravine
whole elk
dawn ermine
#

1 on its own is just fine.

pliant dome
#

sure

whole elk
dawn ermine
#

It's a JavaScript expression!

whole elk
#

oh right, json is supposed to be valid java or something

#

then show your code and exactly why you think theres an error.

dawn ermine
whole elk
dawn ermine
#

Java's a totally different language.

unreal ravine
#

does proxies.json have some special value or something? I copied all the data in proxies.json and moved it to a new json file named something else and it loaded in fine

whole elk
#

no, that's just a filename

#

again, you asking us to guess

#

you've been here to know better. what error are you getting?

dawn ermine
#

You've shown us theJSON file. Now show us the code using it and the error you're getting.

remote cosmos
#

are u using json.load(filename) or reading it like a txt file

unreal ravine
whole elk
#

bruh.

unreal ravine
whole elk
#

code?

unreal ravine
#

I haven't written any code

#

not yet, I was first getting all the proxies

whole elk
#

then how or why are you getting an error?

unreal ravine
#

perhaps I didn't word things well

#

there is no "error"

whole elk
unreal ravine
#

the yellow in proxies.json is the thing that's confusing me

remote cosmos
#

are you talking about the /r?

unreal ravine
#

no

#

proxies.json and bob.json contain the exact same data, why is proxies.json yellow and not bob.json

dawn ermine
dawn ermine
unreal ravine
whole elk
#

yeah, looks like the list has been selected

whole elk
# unreal ravine

for the love of god, if you're seeing warnings or error, show them

dawn ermine
#

And if you're not, please explain what's confusing.

remote cosmos
#

press control-a .. does everything turn yellow

unreal ravine
dawn ermine
#

We;re all thinking that it went yellow when you selected it to copy. To show you what's selected.

whole elk
unreal ravine
#

sorry

remote cosmos
#

Paul.. mah dude.. your making a funny right?

unreal ravine
#

guys I'm being completely honest I'm not even trying to troll or be misleading. I genuienly just don't know why there is โš ๏ธ in proxies.json and not bob.json

whole elk
#

you can click on it, to view the error.

unreal ravine
dawn ermine
#

Aye, click on it.

whole elk
#

hover over it.

unreal ravine
#

incompatible types required: object actual: array

dawn ermine
#

Odd. What's the bottom of the file look like?

unreal ravine
#

looks exactly how you'd expect it

dawn ermine
#

Well I see no problem with that file. Can you load it using the Python json module?

unreal ravine
#

honestly I'm just gonna use the json file that works. proxies.json is a cursed file name for sure

remote cosmos
#

for shids and giggles check everyline ends with a comma

dawn ermine
#

... except the last entry in a dict or array - a JSON annoyance. It looks ok. But yes, scan all the intermediate lines by eye.

#

Though it complains about line 2, pretty early.

remote cosmos
#

probably a slight copypasta mistake between files

lavish basin
unreal ravine
#

I copied the erroneous file data into the other one and no problems. there's no way a comma is missing otherwise the other file would've brought it up

lavish basin
#

Why are there \r(s) everywhere?
Who do we think we are, Apple??

dawn ermine
#

Just weird.

whole elk
#

i give up

remote cosmos
#

and stop doing pictures plz.. if you post it we could see it easier.. i for one a lot better cause on my phone

dawn ermine
#

The carriage returns are a bit odd; I assume they came from the original data omehow.

whole elk
#

for future help, please stick to our requests, we've done it multiple times, code as text, include information, etc

unreal ravine
#

for sure lol

#

I'm gonna write the actual code now let's hope no problems :D

whole elk
#

data as text as well, including stuff like JSON, if its big, then use the paste service.

unreal ravine
#

fs

#

thanks

#

!close

marsh starBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.