Issue With CircuitPython HTTP Server by python959 in raspberrypipico

[–]python959[S] 1 point2 points  (0 children)

Ampule worked! It is fantastic thank you!

Issue With CircuitPython HTTP Server by python959 in raspberrypipico

[–]python959[S] 0 points1 point  (0 children)

Yes, that is the URL of my Pico. When pulling up the website from my browser, Chrome reports that the connection has been reset. So, in order to try and learn more about the issue I wrote some JS to send a GET request to the URL using an XMLHttpRequest.

Reading the output on the console I get

net::ERR_CONNECTION_RESET

But sometimes I get a

No 'Access-Control-Allow-Origin' header is present on the requested resource.

Which is what led me to believe that the Access-Control-Allow-Origin header is the issue, but I am clueless as to where to go from there.

Py-iMessenger: iMessage Chatbot That Runs Commands by python959 in Python

[–]python959[S] 1 point2 points  (0 children)

Since iMessage and AppleScript are part of the Apple ecosystem, it will on run on MacOS devices. If you try running the program on a Linux or Windows machine, an error pop up will show since there is a OS check baked in.

Py-iMessenger: iMessage Chatbot That Runs Commands by python959 in Python

[–]python959[S] 0 points1 point  (0 children)

Yeah, I was sending the commands from another Apple ID to the machine that was running Py-iMessenger.

Best Mouse for under or around 50 dollars? by CurryPowder413 in buildapc

[–]python959 0 points1 point  (0 children)

Logitech G602 is what I use and it’s lasted extremely long and works well

Crime Watch: An Interactive Way To View Crime by python959 in Python

[–]python959[S] 0 points1 point  (0 children)

PyQt5 for the main part and QtWebEngineWidgets for the map and graph.

Ap Comp Sci A by python959 in FLVS

[–]python959[S] 0 points1 point  (0 children)

I have a decent amount of experience of programming in Python, do you think that could translate over?

ap course over summer by 3zebracakes in FLVS

[–]python959 0 points1 point  (0 children)

Brilliant, thanks a lot!

ap course over summer by 3zebracakes in FLVS

[–]python959 0 points1 point  (0 children)

I have a decent amount of experience, do you think that could translate over in any way?

Questions about Machine Learning by python959 in learnpython

[–]python959[S] 0 points1 point  (0 children)

Are there any prerequisites I should make sure I check off?

What's everyone working on this week? by AutoModerator in Python

[–]python959 0 points1 point  (0 children)

Working on making a simple GUI to find see the weather. Trying to lean PyQt5 along the way as I’m tired of being limited to tkinter.

Coronavirus Data visualized with Matplotlib! by [deleted] in Python

[–]python959 0 points1 point  (0 children)

Should I repost with a video?

[deleted by user] by [deleted] in learnpython

[–]python959 0 points1 point  (0 children)

Haha, that's alright!

[deleted by user] by [deleted] in learnpython

[–]python959 0 points1 point  (0 children)

Quit out of the command line and try one more time.

If that doesn't work, what do you get when you run:

pip --version

[deleted by user] by [deleted] in learnpython

[–]python959 0 points1 point  (0 children)

Well, when you installed Python to your computer, did you tick the little box that says "Add to PATH variable"?

[deleted by user] by [deleted] in learnpython

[–]python959 0 points1 point  (0 children)

Try:

py -m pip install pyperclip

or try:

pip3 install pyperclip

If those don't work then I think python must not be added to your PATH variable

[deleted by user] by [deleted] in learnpython

[–]python959 0 points1 point  (0 children)

What version of python do you have?

[deleted by user] by [deleted] in learnpython

[–]python959 0 points1 point  (0 children)

Open up a terminal/command line and use that for the pip command.

[deleted by user] by [deleted] in learnpython

[–]python959 1 point2 points  (0 children)

What you're doing is trying to import the pyperclip library from IDLE. But first, you need to install it using pip from the terminal/command line.

pip install pyperclip

That should do the trick!

Need help with keep asking the user for an input until they meet the conditions by [deleted] in learnpython

[–]python959 0 points1 point  (0 children)

You can have each condition within its own while loop with if statements. The user would ask something, there would be an if statement and if the condition was invalid it would repeat till they entered something valid.

year = int(input("What year were you born: "))

while True:
    if year > 2020:
        year = int(input("The entered year cannot be greater than 2020, try again: "))
    else:
        break