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
1
vote
1 answer

Why is the ffmpeg process in discordpy terminating without playing anything?

I'm making a discord bot for playing music (ik very unoriginal) and everytime I try to play music, it gives this error: 2023-02-18 12:31:54 INFO discord.player ffmpeg process 4024 has not terminated. Waiting to terminate... 2023-02-18 12:31:54…
Bummbumm6
  • 31
  • 4
1
vote
1 answer

Why is predict_on_batch is repeating the first output over and over?

I honestly don't know how to describe my problem. Basically, it only uses the first values in my tables and repeats it over and over for the rest of the values in the table. Like I said, just look at the output. Here's my code: import tensorflow as…
1
vote
0 answers

Python 3.11 installing repl-cli: setuptools not found even it's installed

That's it. I am installing repl-cli but it's giving "ModuleNotFoundError: No module named 'setuptools'". I tried: pip install setuptools Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied:…
Bitenco
  • 11
  • 1
  • 3
1
vote
1 answer

How to run python flet scripts on repl.it

I'm trying to run a python flet script on repl.it. Here's what I did: created a new repl, for a python script; repl.it creates a main.py file from the Packages tool I imported flet I wrote this code into main.py: import flet as ft def…
Al C
  • 5,175
  • 6
  • 44
  • 74
1
vote
1 answer

Website Dropdown Menu Function Not Working in JavaScript

I am web developing on replit and my button for dropdown menu is returning ReferenceError: dropdown is not definedhttps://59b81476-925b-4a14-9d8a-26727de7f565.id.repl.co/:1 at HTMLButtonElement.onclick…
1
vote
1 answer

Replit Starting Task

I started Replit's 100 days of coding. The intial assignment that is asked for is writing a single print code stating: Name Date I am signing up for Replit's 100 day's of Python challenge! I will make sure to spend some time every day coding along,…
1
vote
1 answer

Discord API cloudflare banning my repl.it repo

#type: ignore import os from keep_alive import keep_alive from discord.ext import commands import discord import asyncio import datetime import re DC_TOK = os.environ['DC_TOK'] bot = commands.Bot(command_prefix='!',…
jett8998
  • 888
  • 2
  • 15
1
vote
1 answer

Enabling seccomp strict mode gets "Invalid Argument" error on Replit

I am making an online code judge using Replit, and I want to use seccomp to securely run submitted code. Through reading a few tutorials, I have made a simple test program to test seccomp: #include #include #include…
Eric Xue
  • 272
  • 2
  • 11
1
vote
3 answers

How to install pyaudio on replit?

I have telegram bot that using SpeechRecognition pakage, and for SpeechRecognition I should install pyaudio pakage. I was wondering how can i do that on replit? is this possible?
Mahdi mk
  • 30
  • 5
1
vote
1 answer

How do I fix pygame.error: video system not initialized in replit

I'm playing around with Pygame, and when I clicked Run for the first time, Pygame gives me the error pygame.error: video system not initialized How do I fix this? The code I have at the moment is import pygame pygame.init() white = (255, 255,…
1
vote
1 answer

search for a specific row(record) in a file with script bash

I have this file called annuaire.txt with this records which is enter by a user using read and I want to search for a specific row $var like $nomPersonne I used if grep -q $recherche $prenomPersonne annuaire.txt but didn't work. Like I have a read…
User1010
  • 11
  • 1
1
vote
0 answers

INQUIRE: Replit took over github page. How to remove Repl from site

So i was trying to bind a replit project to my Github page, and now its taken over! I deleted the CNAME and TXT files on the root (sneslover22.github.io) but now my main site (sneslover22.github.io/Mathews-Collection) doesn't work! I also unlinked…
Snessy
  • 11
  • 1
1
vote
0 answers

Don't Let User Input (Python)

Here is the important part of my code print(''.join(num)) time.sleep(5) replit.clear() guess = input('What number did you see? ') I am doing this in Replit, if it matters. I am trying to create a memory game, where the user sees a number with…
1
vote
0 answers

CSS not working within Reactjs like another project

CSS not working within Reactjs like another project. I am working on a project within Reactjs and for my home page I want to have a particular UI/UX and I have made it within regular HTML/CSS (see:…
Nebulous
  • 11
  • 3
1
vote
1 answer

How to fix "NameError: no function 'libvlc_new' when running vlc.Instance() on replit

When trying to create a vlc.Instance() Instance = vlc.Instance() I get the following error (in my replit console) Traceback (most recent call last): File "main.py", line 9, in Instance = vlc.Instance() File…
CR130
  • 98
  • 7
1 2
3
23 24