Skip to content
No matching distribution found for json
clearlygg
OP

2 years ago

ERROR: Could not find a version that satisfies the requirement json (from versions: none)

error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1

exit status 1

Stopping Container

I haven't used railway for projects, and I'm having an issue deploying a discord bot?

I have a requirements.txt file setup,

datetime
json
time
secrets
asyncio
typing
threading
string
random
requests
aiofiles
os
logging
``` not sure why? do I not need to use json, here's how I have my imports on the bot

import discord, re

import json, time, secrets, asyncio, typing, threading, string, random, requests, aiofiles, os

from datetime import datetime

from typing import Literal

from discord import app_commands, utils

from discord.ui import View, Button

import logging

Solved

17 Replies

clearlygg
OP

2 years ago

N/A


bonnetadam

2 years ago

have you install the packages ?


clearlygg
OP

2 years ago

Where do you do that at? I'm new to railway, so.


bonnetadam

2 years ago

because not sure this error is related with railway


bonnetadam

2 years ago

have you done pip install -r requirements.txt


bonnetadam

2 years ago

do you use a dockerfile ?


clearlygg
OP

2 years ago

is there somewhere specific you have to do that at?


bonnetadam

2 years ago

Personally i use a dockerfile


clearlygg
OP

2 years ago

just requirements.txt 😛


bonnetadam

2 years ago

maybe add it into the build command


clearlygg
OP

2 years ago


clearlygg
OP

2 years ago

?


bonnetadam

2 years ago

yeah try adding the command i gaved you


bonnetadam

2 years ago

not sure if it will work tbh


clearlygg
OP

2 years ago

Yeah, I'm aware of how python works; not so much the website, haha


clearlygg
OP

2 years ago

forgot to mention, solved; turns out it just automatically installs all of it, and reads the config -> didn't realize..


2 years ago

!s


Status changed to Solved brody • almost 2 years ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...