Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Adding a Wake word to my Script
Post: RE: Adding a Wake word to my Script

(Jan-14-2022, 09:17 PM)Extra Wrote: but then gave me another TypeErrorThat's caused by print(command[command]) because you're trying to index a string with a string, but an integer should be used in...
SheeppOSU General Coding Help 9 3,135 Jan-16-2022, 10:46 AM
    Thread: Adding a Wake word to my Script
Post: RE: Adding a Wake word to my Script

(Jan-14-2022, 06:52 PM)Extra Wrote: I get a TypeError: wikiSearch() takes 0 positional arguments but 1 was givenThis error occurs because you didn't specify command in the function parameters. (Jan...
SheeppOSU General Coding Help 9 3,135 Jan-14-2022, 07:50 PM
    Thread: Adding a Wake word to my Script
Post: RE: Adding a Wake word to my Script

(Jan-13-2022, 09:10 PM)Extra Wrote: I don't understand what those random numbers/ints are used for and how they translate to the wake word and listen function or command execution.Sorry, I could've ...
SheeppOSU General Coding Help 9 3,135 Jan-13-2022, 11:53 PM
    Thread: Adding a Wake word to my Script
Post: RE: Adding a Wake word to my Script

I didn't mean replace the functions with while loops, but to put a while loop inside the functions. Also, in the while loops you have made, you are attempting to call True with the parenthesis. It sho...
SheeppOSU General Coding Help 9 3,135 Jan-13-2022, 07:48 PM
    Thread: UnicodeEncodeError caused by print when program runs from Popen
Post: RE: UnicodeEncodeError caused by print when progra...

Thank you for the suggestions, however, neither of these options will work with what I'm trying to achieve. Though, since the error only incurs on windows, it will run on my raspberry pi just fine.
SheeppOSU General Coding Help 5 2,950 Jan-13-2022, 08:11 AM
    Thread: UnicodeEncodeError caused by print when program runs from Popen
Post: RE: UnicodeEncodeError caused by print when progra...

(Jan-12-2022, 10:28 PM)snippsat Wrote: Here are two,both run the Python code that path point toThanks, I'll look into these.
SheeppOSU General Coding Help 5 2,950 Jan-12-2022, 11:52 PM
    Thread: Adding a Wake word to my Script
Post: RE: Adding a Wake word to my Script

I think you may need to restructure your code a bit. I would first separate each command into its own function to get rid of clutter in the main function. Also, it would be better to put a while loop ...
SheeppOSU General Coding Help 9 3,135 Jan-12-2022, 06:51 PM
    Thread: UnicodeEncodeError caused by print when program runs from Popen
Post: RE: UnicodeEncodeError caused by print when progra...

I have a few bots which are being run on a separate device and I wanted to attempt in making a way to manage all of them remotely. Originally I used a shell script to simply run the bots and restart t...
SheeppOSU General Coding Help 5 2,950 Jan-12-2022, 06:34 PM
    Thread: POST `api` 415 (Unsupported Media Type)
Post: RE: POST `api` 415 (Unsupported Media Type)

Have you tried specifying a different Content-Type? I'm not sure what content type would be correct, but it's possible that is causing the HTTP 415 response. Also, check and make sure everything is co...
SheeppOSU Web Scraping & Web Development 2 4,743 Jan-12-2022, 08:09 AM
    Thread: django - add l<a> tag - render_to_string
Post: RE: django - add l<a> tag - render_to_string

Use the html_message parameter of send_mail
SheeppOSU Web Scraping & Web Development 1 1,968 Jan-12-2022, 08:04 AM
    Thread: How to receive webcam capture on spout?
Post: RE: How to receive webcam capture on spout?

Add a print statement on a line before the error occurs and print the type of each variable that is being used as arguments for spoutSender.SendTexture. Then make sure they are all correct since that'...
SheeppOSU General Coding Help 2 2,672 Jan-12-2022, 07:54 AM
    Thread: UnicodeEncodeError caused by print when program runs from Popen
Post: UnicodeEncodeError caused by print when program ru...

I am running a python program from another python program using subprocess.Popen, specifically like this subprocess.Popen(['python', self.path], stdout=subprocess.PIPE, stderr=subprocess.PIPE). I also...
SheeppOSU General Coding Help 5 2,950 Jan-12-2022, 07:46 AM
    Thread: TypeError: run_oracle_job() missing 1 required positional argument: 'connection_strin
Post: RE: TypeError: run_oracle_job() missing 1 required...

Try taking connection_string out of the list of parameters for run_oracle_job. run_oracle_job looks like it will run perfectly fine without that parameter since I assume it's trying to use the connect...
SheeppOSU General Coding Help 1 1,981 Aug-06-2021, 08:05 PM
    Thread: Pygame with joystick
Post: RE: Pygame with joystick

I would suggest looking into this
SheeppOSU General Coding Help 1 1,688 Aug-06-2021, 07:56 PM
    Thread: Spaceship
Post: RE: Spaceship

(Jul-26-2021, 07:15 AM)abscorpy Wrote: Here is the link for the Github Repo https://github.com/abscorpy/Spaceship Cheers If the file structure looks like this then pygame.image.load('spaceship_yel...
SheeppOSU Game Development 13 8,141 Aug-06-2021, 07:53 PM
    Thread: Spaceship
Post: RE: Spaceship

(May-22-2021, 11:25 AM)abscorpy Wrote: Now this is the code i have, it doesnt run again Can anyone help me Thanks for the support! **smile**Not many people want to take the time to look through a...
SheeppOSU Game Development 13 8,141 May-24-2021, 09:56 PM
    Thread: Two separate dataframes, two seperate programs
Post: RE: Two separate dataframes, two seperate programs

Look into Python's socket library
SheeppOSU General Coding Help 2 2,012 Apr-28-2021, 01:44 PM
    Thread: Return won't stop a function
Post: RE: Return won't stop a function

(Apr-25-2021, 01:50 PM)jonagold Wrote: Thank you for the tips I will try to implement them and use them (When I understand them, because I'm a beginner **biggrin** ). However return didn't work even...
SheeppOSU Game Development 3 2,770 Apr-28-2021, 01:39 PM
    Thread: Return won't stop a function
Post: RE: Return won't stop a function

break will break out of the current loop it is under, or if under multiple loops, the one that it is directly under. return will exit the function with data if provided. In your code here, you've adde...
SheeppOSU Game Development 3 2,770 Apr-24-2021, 06:53 PM
    Thread: Client server Multithreading
Post: RE: Client server Multithreading

The socket library should come with Python download iirc, so you shouldn't have to use pip to install it. Also, you should make a new thread next time rather than using one on a separate question.
SheeppOSU Networking 6 5,954 Apr-21-2021, 08:19 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020