#πŸ”’ someone please help me with render

99 messages Β· Page 1 of 1 (latest)

hardy stone
#

keep getting errors, will be glad to give you more details.

ocean krakenBOT
#

@hardy stone

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

hardy stone
#

(im new to coding)

stuck lagoon
#

looks like a development environment issue rather than your code?

hardy stone
#

im bad at english sorry can u rephrase

stuck lagoon
#

uhhhh

#

it's like

#

the thing that runs your code

#

got a problem

hardy stone
#

oh

#

are u familiar w render?

stuck lagoon
#

no, sorry

hardy stone
#

oh

#

okay okay

#

ive been trying to crack this problem

#

for like

#

4 hours

#

nothing works

astral crane
#

It looks like pip could not install a binary install of aiohttp. What OS and Python version are you using?

hardy stone
#

python: 3.12-slim

astral crane
#

Operating system.

hardy stone
#

windows

astral crane
#

Where's 3.12-slim come from?

hardy stone
#

i couldnt crack the issue, so i asked ai and it told me to make a dockerfile w the py version 3.12 slim

astral crane
#

Ah. So things in docker are running Linux.

hardy stone
#

I need Python 3.12 because of a compatibility problem between PyCord, aiohttp, and Python 3.13+

astral crane
#

Ok.

#

Have you got 3.12 installed on Windows ?

hardy stone
#

i should, ill double check

astral crane
#

The command py -0 should get you a list.

hardy stone
#

turns out i did not

#

downloading now

astral crane
#

From python.org/downloads ?

hardy stone
#

yes

astral crane
#

Anyway, install 3.12

hardy stone
#

done

astral crane
#

Ok, so what does py -0 show?

hardy stone
#

btw i code on replit then push to github

#

that is connected to render

astral crane
#

So, try py -m pip install aiohttp

astral crane
hardy stone
#

yep it worked

hardy stone
astral crane
hardy stone
astral crane
#

Hmm. Didn't you mention PyCord?

hardy stone
#

yea

astral crane
#

This one?

hardy stone
#

yes

astral crane
#

Cool, so py -m pip install pycord

hardy stone
#

one question

#

u know what replit is, right?

astral crane
#

Not really.

hardy stone
#

Replit is an online coding platform that lets you write, run, and host code directly from your browser without needing to install anything on your computer. It’s great for quick prototypes, learning, or hosting small projects like Discord bots.

astral crane
#

Ok

hardy stone
#

so do i need to download all this stuff to my computer

#

or there

astral crane
#

Only if you need to run things locally.

#

You need things installed where the code runs.
Lots of us code locally and run and/or test locally.

hardy stone
#

i code in replit

astral crane
#

So those errors come from some place where replit was running things for you?

hardy stone
#

ye

astral crane
#

Does that mean they still occur?

#

Because installing python 3.12 and aiohttp etc locally just lets you run stuff locally.

hardy stone
#

yes but i have py 3.12 on replit and aiohttp

astral crane
#

Maybe you can do some specification of the python being used in render?

hardy stone
#

wdym

astral crane
hardy stone
#
This error originates from a subprocess, and is likely not a problem with pip.
8.102   ERROR: Failed building wheel for aiohttp
astral crane
#

Right. But the "build" which was happening which produced that error must be running somewhere. In replit? Somewhere else?

hardy stone
#

render

astral crane
#

Ok. DO you specify the python environment render is using? because it sounds like the one you're getting by default hasn't got a binary build for aiohttp

hardy stone
#

docker

#

dockerfile

astral crane
#

What, you tell render to use a particular docker image as the basis for your environment?

#

(I've never used replit or render, so I'm flying a bit blind here.)

hardy stone
#

im new to coding bro

#

i kinda dont understand half of the words ur using

#

lol

#

i can maybe call u share my screen

#

maybe that will help

astral crane
#

I don't do that, sorry.

hardy stone
#

no its fine

#

idk what to do this whole thing is rly complicated

astral crane
#

WHat're you trying to do, actually? not what are you using (replit, render) but what you're trying to achieve.

hardy stone
#

keeping the bot up 24/7

#

always online

astral crane
#

Oh You're writing a discord bot which need to be running all the time?

hardy stone
#

yes

astral crane
#

(I'm asking over in #discord-bots ....)

#

I may have to pick this up tomorrow sometime.

ocean krakenBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.