Questions tagged [replit]

Replit (formerly Repl.it) is an online IDE (integrated development environment) supporting over 50 programming languages. Use this tag for questions regarding using the IDE.

replit (formerly Repl.it) is an online integrated development environment (IDE) that supports over fifty programming languages including Python, Node.js, Java, C++ and Kotlin (to name a few). It contains an editor for writing your code. It can then build your code (if required) and execute it. All online in your Web browser.

361 questions
0
votes
0 answers

googleapiclient.errors.unknownapinameorversion name: sheets version: v4

So, i dont know what the problem is the code was working correct on local but when i hosted it on replit it gave me a error googleapiclient.errors.unknownapinameorversion name: sheets version: v4 I tried fixing it by reinstalling the modules still…
0
votes
0 answers

Replit Python Webserver Returning Bad Gateway Error on POST

A webserver I coded in Python in Replit is fine when I access the website, but when I try to POST to the site, it errors and returns . webserver.py from translate import Translator from json import loads class…
Akrix
  • 23
  • 5
0
votes
0 answers

How can I make the eth private key generate result in left instead in right side?

Below is my sample code in generating ethereum private key in right side. import pyetherbalance #from etherscan.accounts import Account from ethereum import utils #import os import time import secrets import random #import sys dosya4 =…
0
votes
0 answers

Libgdx simple game doesn't run in replit

I'm a Computer Science teacher, I'm trying to make Libgdx work inside an online development environment (replit.com). I can access and edit the pom.xml, I successfully added the Libgdx dependency:
Michele Minno
  • 273
  • 1
  • 3
  • 14
0
votes
0 answers

C++: Why does ncurses getch() appear to be blocking output, and how do I fix it?

I am currently building Tetris on the command line, and I'm working with getch() to recieve input without a deliminating character and without pausing the code to take input. However, when I enable the function with initscr(), all my output is…
0
votes
0 answers

Nodejs Replit createClient() function error

New to coding, learning python with Replit and building a personal project. I'm running into an error running this app (index.html, main.js, and style.css are the files) through the Replit command line using node main.js. The error is const db =…
MA1
  • 33
  • 6
0
votes
0 answers

Python for looping to update one graph in python

I am familiarizing my self with Monte Carlo simulations and have played around with the following code. It is a gambling dice rolling game with an increased payout for doubles. It uses RNG and pyplot. The for loop, print statements, and basic math…
kca062
  • 53
  • 5
0
votes
1 answer

chromedriver unexpectedly exited. Status code was: 127 on Replit severs

My code works perfectly on the local device and I tried deploying to the replit server where I'm greeted with that error chromedriver unexpectedly exited. Status code was: 127 I tried placing a static file of chromedriver and all, still getting the…
0
votes
0 answers

pip install dotenv problem on repl.it new version

Recently, my Repl on Repl. went through a change; they changed something on the site and it upgraded. After that, my bot stopped working and I have to re-install all things like discord and requests to the environment? Now there's a problem when…
0
votes
0 answers

How Do I Fix This Error Saying There Is No PyAudio?

I have this code running in Replit: import speech_recognition as sr import pyaudio # create an instance of the Recognizer class r = sr.Recognizer() # use the microphone as the source for audio input with sr.Microphone() as source: # record a…
0
votes
0 answers

How to resolve ERR_SSL_PROTOCOL_ERROR when hosting a React server on Replit?

My problem is that i am getting this problem linkline-2.maaz-gamergamer.repl.co sent an invalid response. ERR_SSL_PROTOCOL_ERROR I am hosting a server on replit of react I tried chagnging port and get request to something other than it
0
votes
0 answers

Replit Removes all data from selenium after restarts

import os from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverWait from…
Liman
  • 35
  • 3
0
votes
1 answer

Bug in Secret Auction Program For Loop

I wrote a program as part of a class I am currently taking and even though I tried fixing this bug using the Thonny debugger, it persists! The code i am working on is in replit.com. Basically, the bug, when i try running this program on replit, is…
0
votes
0 answers

i can only play one audio file in python using replit

I want to play two different music at two different time but it wont work. I used this code from replit import audio audio = audio.playfile("sample-music.mp3") and it worked but when I tried it again to play 2 songs. I did this import time from…
Landon
  • 1
  • 1
0
votes
0 answers

How do I make it so that a random turtle runs away from a controlled turtle?

I have the turtle named "t", which is controlled by the user, and a turtle that moves randomly named "to". I need the turtle named "to" to run away from turtle "t" when peepee (which btw is just the level) equals to 1 to 4. Turtle "to" is still…