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

how to run youtube-local python website on replit and access it on other devices as a website

i am trying to create a repl on replit.com from last 3 months for the youtube front-end youtube-local youtube-local github: https://github.com/user234683/youtube-local which is created in python i want this repl to host the youtube-local as a…
0
votes
1 answer

How to import main javascript file content (classes and constants) on test file in replit

I received a task for a job application for refactoring a javascript code and writing some tests. The main file is sut.js and test file is sut.test.js on replit. In sut.test.js there was default test and this line at the top of the file const { sum…
doraemon
  • 325
  • 1
  • 4
  • 16
0
votes
1 answer

I get the following error running sqlalchemy in replit: AttributeError: 'Engine' object has no attribute 'table_names'

I'm using replit. and in the console, I ran the following command: pip install sqlalchemy Then, in the main.py file: from sqlalchemy import create_engine engine = create_engine('sqlite:///census_nyc.sqlite') connection =…
Luke
  • 1
  • 1
0
votes
0 answers

How to open .RDS file into replit

So I am currently working on a school project with a group where we have to create a program in R using variables in a rds file. Normally we open that file in R Studio but since we are in a group I wanted to see if that file could be opened in…
Deviss
  • 1
0
votes
1 answer

Finding who bought three or more of the most expensive flower available, in a single order

I would like to rewrite this SQL. However, I need it to exclude the sql in() operator and the limit clause. The query will output the emailAddress, orderID and quantity. It is searching for customers who have bought three or more of the most…
0
votes
1 answer

How I can use C# packages in Replit?

I want use this package: https://github.com/sandrofigo/VoxReader I am a beginner in C#, and I looked some tutorial and I couldn't make it work with my code, there are always some errors. main.cs: using System; class Program { public static void…
0
votes
2 answers

Testing a function that use user input in Replit unit tests

I'm trying to write test code for a python function in Replit. The function is taking user input from the console. As written in the test need to pass a value to the function. Test code: self.assertTrue(play(10) <6) In the Function, user input…
0
votes
0 answers

Can’t pass the answers in replit with gdb from a text file

I get this error from trying to input the answer files as a text document in replit using gdb, how do I solve this? Error: Couldn't open answers. txt [Inferior 1 (process 42) exited with code 010] There are no answers online.
0
votes
1 answer

Error in flask in python with YouTube API and Replit googleapiclient.errors.UnknownApiNameOrVersion: name: youtube version: v3

I have a python/html file that uses the YouTube api to run a few simple searches. It runs completely fine when I have it on a local server but whenever I upload it to Replit, I get the following error whenever I press the "reccomend" button. This is…
Stanners
  • 1
  • 2
0
votes
0 answers

Why am I getting a "cannot set property of undefined" when writing to an array generated by a replit.db call?

This was marked duplicate for some reason. I didn't even know what the thing in the other post was called. So, my problem is that this replitdb call below (not sure if thats what it's called) somehow sets the users array to…
0
votes
1 answer

Can we use sql database on pythonista or replit on ipad9?

I want to make a project from scratch and need to use sql database only. Is there any way in which I can integrate sql database to my code on say, pythonista. If yes, then how can i access the sql db on my iPad? Can i use replit.com for the same? I…
0
votes
0 answers

Trying to alternate between players in a game of battleships (made in python)

Im making the game of battleships in python, currently 2 players are able to place 5 ships of different lengths on two seperate grids, then the players (should) be able to take turns placing bombs in order to destroy the opponents ships, im not…
Max
  • 1
  • 2
0
votes
1 answer

Blank page when I deploy React/Node page on Replit/Heroku

I'm making ecommerce service, using React and NodeJS/Express. I've deployed my project on Replit but unfortunately it works only on my local server. On other devices screen is just blank. I think I've messed something up with my server settings.…
MarcinB
  • 39
  • 5
0
votes
1 answer

Program is not reprompting after inputting a wrong input in C++

So I am having an issue with my program not re-prompting after purposefully putting in a wrong input just to make sure my program is able to properly validate and range check. The specific function is on line 77, called "int getObjects() { " where…
OniiSean
  • 11
  • 2
0
votes
0 answers

Replit node.js http server fails to interact with replit db

I want to create the api for my application in replit and then move it to a host and because this is just a prototype, i really dont care about security so please give me the answer and dont say ThIs iS sO InSEcuRe So im working on an application…