No matching distribution found for json

clearlygg
FREE

7 months 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

0 Replies

clearlygg
FREE

7 months ago

N/A


bonnetadam
TRIAL

7 months ago

have you install the packages ?


clearlygg
FREE

7 months ago

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


bonnetadam
TRIAL

7 months ago

because not sure this error is related with railway


bonnetadam
TRIAL

7 months ago

have you done pip install -r requirements.txt


bonnetadam
TRIAL

7 months ago

do you use a dockerfile ?


clearlygg
FREE

7 months ago

is there somewhere specific you have to do that at?


bonnetadam
TRIAL

7 months ago

Personally i use a dockerfile


clearlygg
FREE

7 months ago

just requirements.txt 😛


bonnetadam
TRIAL

7 months ago

maybe add it into the build command


clearlygg
FREE

7 months ago

1313058764731187200


clearlygg
FREE

7 months ago

?


bonnetadam
TRIAL

7 months ago

yeah try adding the command i gaved you


bonnetadam
TRIAL

7 months ago

not sure if it will work tbh


clearlygg
FREE

7 months ago

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


clearlygg
FREE

7 months ago

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


7 months ago

!s


Status changed to Solved brody 7 months ago