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
0 answers

throw new Error() logs error message twice when using \n in message

I have a problem where the console will log an error twice when using \n in the error message. Here is an example: throw new Error("Vector lengths must be equal"); The code above results in : Error: Vector lengths must be equal As you can see this…
1
vote
0 answers

Is it possible to play .wav files with Java in Replit?

How can I play a .wav file in my Java application on Replit? I'm attempting to play a short audio clip after a JButton is clicked, but an exception is returned when I click the corresponding button. This is my code: private void playAudio(String…
hangilk
  • 11
  • 3
1
vote
0 answers

TypeError: unsupported operand type(s) for &: 'set' and 'list' + more

So I was working on my friend's repl for a school project, and it just stopped working because of this error: Traceback (most recent call last): File "/tmp/upm323671650/bare-imports.py", line 14, in ".",…
LordPotash
  • 11
  • 2
1
vote
2 answers

Replit error: /usr/bin/env: ‘./python3’: No such file or directory after using PIP

whenever I type, for an example: pip install aiohttp==3.7.3, it gives me: /usr/bin/env: ‘./python3’: No such file or directory is there any way to fix it? (The error is in REPLIT) I had problems with using aiohttp in REPLIT, I tried uninstalling…
1
vote
1 answer

How do I get a Replit secret key to work using Svelte?

I'm stuck on what seems like a simple task. I want to run a weather app I built in Svelte and run it on Replit. The app uses an API with a key, so I added my key to Secrets in Replit and gave it the name MY_API_KEY. In the file that calls the API, I…
user18573561
1
vote
1 answer

Python Discord Bot reproduce audio from youtube link

I'm trying to make my discord bot reporoduce audio from a link @client.command() async def play(ctx, url): #...code but it seems that I need to have installed a program called FFmpeg, and the problem is that i'm running my bot on…
ElmerKao
  • 115
  • 2
  • 10
1
vote
1 answer

Three.js library on Replit not show up in document

const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera(120, window.innerwidth / window.innerheight, 0.1, 1000); const renderer = new THREE.WebGLRenderer(); renderer.setSize(window.innerwidth,…
1
vote
0 answers

Unable to display a gogalplex in replit python 3

import math from math import pow gogo = (math.pow(10,100)) print(gogo) gogo2 = (math.pow(10,1e+100)) print(gogo2) Getting it overflow issue and have no cool how to extend the range
Jj200031
  • 11
  • 1
1
vote
2 answers

Python Firebase (Real-time database) on Replit

I want to connect to firebase on replit using python. I'm using the code below: from firebase import firebase firebase = firebase.FirebaseApplication("my firebase url", None) data = { 'ddfjaklfbja': 'dklabja;kdlf', 'adfjlkgadjf':…
CELLSecret
  • 139
  • 1
  • 9
1
vote
2 answers

'set' object has no attribute 'get' CSV (in praw)

This code is supposed to get some information about a post like title, upvotes etc. And then write it in a CSV file. But when is run it I get this error: Traceback (most recent call last): File "main.py", line 71, in
Alt_2003
  • 17
  • 3
1
vote
1 answer

Unable to import Pandas on Replit.com - Python

I'm unable to import pandas with import pandas as pd on replit. I've already installed the package with pip install pandas and it can be seen in packages. I've successfully imported it to other projects on replit. Every time I try importing it into…
realhuman
  • 137
  • 1
  • 8
1
vote
2 answers

I keep getting the error: AttributeError: 'NoneType' object has no attribute 'strip'

I am using python here. when I run my code for a discord bot I am making with replit, I get this error: AttributeError: 'NoneType' object has no attribute 'strip' I am making a discord bot with this tutorial:…
1
vote
0 answers

Sentry.js file prevents replit.com from properly compiling

I am currently creating a certain website on replit.com, and during the process, I have found that compilation errors were arising. Replit.com would try to compile, but would be stuck in the compiling process and won't get out of it. I eventually…
0
votes
0 answers

raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='\\\.vn', port=443)

The problem I am facing is similar to the picture below. Both pythonanywhere and replit have this error, we can only use the sites on their whitelist and can't use other external sites, So is there any way to fix this problem? Error message:…
Vinh Quoc
  • 1
  • 1
0
votes
0 answers

Unable to use opencv python in replit even after installation showing -- missing configuration file: ['config.py']

ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation trying to use opencv python for image formatting and video playing but its showing error. I tried to reinstall open cv python but didn't work...