#π someone please help me with render
99 messages Β· Page 1 of 1 (latest)
@hardy stone
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.
looks like a development environment issue rather than your code?
im bad at english sorry can u rephrase
no, sorry
oh
okay okay
ive been trying to crack this problem
for like
4 hours
nothing works
It looks like pip could not install a binary install of aiohttp. What OS and Python version are you using?
python: 3.12-slim
os?
Operating system.
windows
Where's 3.12-slim come from?
i couldnt crack the issue, so i asked ai and it told me to make a dockerfile w the py version 3.12 slim
Ah. So things in docker are running Linux.
I need Python 3.12 because of a compatibility problem between PyCord, aiohttp, and Python 3.13+
i should, ill double check
The command py -0 should get you a list.
From python.org/downloads ?
yes
Anyway, install 3.12
Ok, so what does py -0 show?
So, try py -m pip install aiohttp
What's render?
yep it worked
Cool. Try the other pip installs.
what other ones
Hmm. Didn't you mention PyCord?
yea
yes
Cool, so py -m pip install pycord
Not really.
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.
Ok
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.
i code in replit
So those errors come from some place where replit was running things for you?
ye
Does that mean they still occur?
Because installing python 3.12 and aiohttp etc locally just lets you run stuff locally.
yes but i have py 3.12 on replit and aiohttp
Maybe you can do some specification of the python being used in render?
wdym
Where were these errors coming from?
This error originates from a subprocess, and is likely not a problem with pip.
8.102 ERROR: Failed building wheel for aiohttp
Right. But the "build" which was happening which produced that error must be running somewhere. In replit? Somewhere else?
render
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
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.)
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
I don't do that, sorry.
WHat're you trying to do, actually? not what are you using (replit, render) but what you're trying to achieve.
Oh You're writing a discord bot which need to be running all the time?
yes
(I'm asking over in #discord-bots ....)
I may have to pick this up tomorrow sometime.
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.