#πŸ”’ I have no clue how to code or use code, I'm just trying to get this file to work (T-T)

282 messages Β· Page 1 of 1 (latest)

dim wraith
#

I'm so lost 😭

carmine lintelBOT
#

@dim wraith

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.

dim wraith
#

The zip file isn't sending 😭

west spindle
#

What is the code supposed to do

dim wraith
#

Would make gathering those within exploiter servers and massbanning them easier, to prevent potential harm or game leaks (It's for a game server)

west spindle
#

Are you getting an error?

#

What step are you currently on

#

Did you install the repos contents, did you install requirements, did you run the code and are getting an error?

dim wraith
#

Ok so I installed the code as a ZIP

#

I THINK I installed the requirements? But I don't know what to do with them or where to place them

west spindle
#

Okay, here let me walk you through the steps of how to get a script working and installing the requirements

#

1st: unpack the ZIP using whatever you use (7zip, winzip, etc)

west spindle
dim wraith
#

Yes

#

I have Extracted the ZIP already

west spindle
#

A blue window will pop up

#

Don't be sacred that's where the code is going to run in

#

Now, is the zip in the downloads folder

#

Or desktop

dim wraith
dim wraith
west spindle
#

Powershell

dim wraith
west spindle
#

Let me look up where the download path is I don't use windows

#

Type in cd C:\Users\mekie\Downloads

#

In the left it should show the new path

dim wraith
#

"cd C:\Users\mekie\Downloads" ?

west spindle
#

Yes

#

Now type dir and find the folder where the zip unpacked in

#

Now type cd nameoffolder

west spindle
#

You're already in downloads

#

When you cd inside the folder, type pip install requirements.txt

#

I hope you have Python installed

dim wraith
west spindle
dim wraith
west spindle
dim wraith
west spindle
#

The discord-member...

#

And try pip install -r requirements.txt

dim wraith
#

This?

west spindle
#

Yup

dim wraith
west spindle
# dim wraith

It's a folder within a folder because the zip contained the folder so it made a folder holding the folder when it unzipped

west spindle
dim wraith
#

Now pip install?

west spindle
#

No it's the same thing

dim wraith
#

Oh

west spindle
#

It seems that one of the packages is non existing

#

Let me see if it exists rq

#

Okay do pip install discord pysqlite

#

I couldn't find any pylibsqlite and that's the closest that comes to it

#

So let's hope it works

dim wraith
west spindle
#

Ok do pip install discord pysqlite3

dim wraith
west spindle
#

Well this is going to be a pain

dim wraith
#

🫠

west spindle
#

Basically you need to install more things

dim wraith
#

Oh

west spindle
#

Go to that website and follow the instructions

dim wraith
#

Build Tools?

west spindle
#

To get the Microsoft C++ Build Tools

west spindle
#

Basically it's like you have wood and you have to make a bookshelf. The build tools are your hammer and nails

#

You have the materials and the instructions, just not the tools to build it

dim wraith
#

Ah I see

#

It's downloading now

west spindle
west spindle
# dim wraith Mhm

Security is very important when running a random script from GitHub so it's good to make sure

#

Did the C++ build tools install?

dim wraith
#

Ok I think it is installed.

west spindle
dim wraith
#

It in fact did NOT finish downloading. cryingandshaking

west spindle
#

I'm probably sleeping in 10min so I might not be able to stick for long

dim wraith
#

Oh no D:

west spindle
#

Just leaving this here for later, when everything finishes, these are the final steps

west spindle
# dim wraith Oh no D:

I've been ruthlessly violating my keyboard for a solid 6h today I'm pretty burnt out so I can't stay up for long, sorry

dim wraith
#

I have no clue how to code or use code :(

tidal bobcat
dim wraith
tidal bobcat
dim wraith
tidal bobcat
dim wraith
dim wraith
tidal bobcat
#

could you try selecting desktop development with c++ again?

#

there are some "optional" things that arent ticked by default that may have not been installed

dim wraith
tidal bobcat
dim wraith
tidal bobcat
#

ight one sec let me see which ones you should select, could you scroll and screenshot the rest?

dim wraith
tidal bobcat
#

ight ty one sec

#

ight for me i just checked which ones i have installed, i have them all selected and installing the package worked, i think 1 or 2 arent needed but i cant find specific info on each, so just try selecting them all

#

and then wait for them to install

#

run the pip command again

dim wraith
#

Alright

tidal bobcat
#

if it still doesnt work there is still some other ways to download it we can try

dim wraith
#

loading
Downloading!

tidal bobcat
#

okii lmk when its done

dim wraith
#

This was the first half:

tidal bobcat
#

try installing it separately without discord

dim wraith
#

It says sqlite3.h?

tidal bobcat
#

can you give the full error like paste it in chat starting from where it says error:

dim wraith
#

Building wheel for pysqlite3 (pyproject.toml) ... error
error: subprocess-exited-with-error

Γ— Building wheel for pysqlite3 (pyproject.toml) did not run successfully.
β”‚ exit code: 1
╰─> [18 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\pysqlite3
copying pysqlite3\dbapi2.py -> build\lib.win-amd64-cpython-312\pysqlite3
copying pysqlite3_init_.py -> build\lib.win-amd64-cpython-312\pysqlite3
running build_ext
Builds a C extension linking against libsqlite3 library
building 'pysqlite3._sqlite3' extension
creating build\temp.win-amd64-cpython-312
creating build\temp.win-amd64-cpython-312\Release
creating build\temp.win-amd64-cpython-312\Release\src
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DMODULE_NAME="pysqlite3.dbapi2" -I/usr/include "-IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\include" "-IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc\blob.c /Fobuild\temp.win-amd64-cpython-312\Release\src\blob.obj
blob.c
C:\Users\mekie\AppData\Local\Temp\pip-install-5f8trbj0\pysqlite3_a34e94a973fb4510b181008892c0eadd\src\blob.h(4): fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pysqlite3
Failed to build pysqlite3
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pysqlite3)

tidal bobcat
#

!code

carmine lintelBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

tidal bobcat
#

i would recommend formatting it like this, to be easier to read

dim wraith
#
  error: subprocess-exited-with-error

  Γ— Building wheel for pysqlite3 (pyproject.toml) did not run successfully.
  β”‚ exit code: 1
  ╰─> [18 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-312
      creating build\lib.win-amd64-cpython-312\pysqlite3
      copying pysqlite3\dbapi2.py -> build\lib.win-amd64-cpython-312\pysqlite3
      copying pysqlite3\__init__.py -> build\lib.win-amd64-cpython-312\pysqlite3
      running build_ext
      Builds a C extension linking against libsqlite3 library
      building 'pysqlite3._sqlite3' extension
      creating build\temp.win-amd64-cpython-312
      creating build\temp.win-amd64-cpython-312\Release
      creating build\temp.win-amd64-cpython-312\Release\src
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DMODULE_NAME=\"pysqlite3.dbapi2\" -I/usr/include "-IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\include" "-IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc\blob.c /Fobuild\temp.win-amd64-cpython-312\Release\src\blob.obj
      blob.c
      C:\Users\mekie\AppData\Local\Temp\pip-install-5f8trbj0\pysqlite3_a34e94a973fb4510b181008892c0eadd\src\blob.h(4): fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.40.33807\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pysqlite3
Failed to build pysqlite3
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pysqlite3)```
tidal bobcat
#

try pip install sqlite3 then pip install pysqlite3
i saw someone on reddit say it installed the necessary files for them, not sure if it will work though, i cant recreate it

dim wraith
#
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement sqlite3 (from versions: none)
ERROR: No matching distribution found for sqlite3```
tidal bobcat
#

oh bruh im stupid its a standard library

#

one sec

dim wraith
tidal bobcat
#

bro the only answers im finding is having to manually install and build sqlite 3 but idk how to do thatt

dim wraith
#

u h

tidal bobcat
#
pysqlite3 is just a wrapper. It won't work if you don't actually have the SQLite libraries in your system (or the devel package if you built Python from sources).

yeah idk im sorry,

#

do pip show sqlite3 and send the result,

dim wraith
#
WARNING: Package(s) not found: sqlite3```
tidal bobcat
#

if it says its installed then pysqlite3 should be working, but if it says its not installed, you can try reinstalling python

#

yeah you need to reinstall python

#

do you know how to uninstall python?

dim wraith
#

Currently it's upgrading, maybe that was an issue?

tidal bobcat
dim wraith
tidal bobcat
#

mhmm ight when its done try doing pip show sqlite3

dim wraith
#

Not found

#

Let me try reinstalling

tidal bobcat
#

yeah try uninstalling and reinstalling it

dim wraith
#

Is this required?

#

The last one

tidal bobcat
#

are these all the options? can u take a full screenshot im not sure which page ur in rn is this the custom installation page or the default one?

dim wraith
tidal bobcat
# dim wraith

here select every option except the first one(if you dont want python for all users)

#

then install

dim wraith
#

Installed

tidal bobcat
#

does pip show sqlite3 work?

dim wraith
#

WARNING: Package(s) not found: sqlite3

tidal bobcat
#

and you fully uninstalled and reinstalled it?

dim wraith
#

mhm

#

Used the Python Uninstall within the setup

tidal bobcat
#

yeah no smth weird is going on, i dont know how to install it manually, i think you should close this thread, and make a new one with all the info and everything you have tried

dim wraith
#

Wait some things were missing

#

the py launcher and standard library recompile

#

Second attempt trying to download these, they disappeared for some reason the previous time

tidal bobcat
#

yeah yeah retry with all

dim wraith
#

Wtf 😭
(They are unselected again)

tidal bobcat
#

bruh

dim wraith
#

I don't know what to do 😭

tidal bobcat
#

i did find that but i am not sure how you would go about downloading it

#

you could try finding tutorials or messing around '

#

but i have no idea

#

the easiest thing to do would be reinstall windows from the os drive lmaoo

tidal bobcat
#

im not being fully serious btw lol

#

if u really need this to work and cant download manually and no one iss helping i would personally do it

#

but idk about u

dim wraith
tidal bobcat
#

reinstalled what? windows?? that fast?

nocturne latch
#

Umm

nocturne latch
carmine lintelBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

nocturne latch
#

It's wild this thread has lasted so long

tidal bobcat
nocturne latch
#

The module uses a selfbot to do what it does

tidal bobcat
#

from the previous messages sent since i already had the error i never scrolled up

dim wraith
tidal bobcat
#

@dim wraith you literally got your previous thread removed for the same thing??

nocturne latch
tidal bobcat
dim wraith
#

Wait am I blind? Where does it say it’s against TOS?

tidal bobcat
tidal bobcat
#

then you go and make a thread about the same exact thing

dim wraith
tidal bobcat
tidal bobcat
golden summit
#

@dim wraith like i said earlier this project violates discord's terms of service (and our rule 5), please don't ask for help getting this project to work on this server again

dim wraith
#

Or massban them?

tidal bobcat
tidal bobcat
#

thats why they were trying to scrape members

golden summit
#

nothing you can do about that unless your bot is also in one of those other servers

dim wraith
# golden summit what does this mean

Let’s say there is the main server

And someone is in a exploiter server

Our server would either want to outright ban them (with something like sapphire or carlbot) or prevent them from joining

golden summit
#

yes nothing you can do about that unless your bot is in that exploiter server

tidal bobcat
#

it would need to be manual checks

#

also

#

i feel like that would be kind of useless

#

people tend to use alts for this kind of stuff

golden summit
dim wraith
#

Double counter, Alt identifier, those bots tend to prevent the majority.

golden summit
#

but the user has to add that connection to their account

tidal bobcat
tidal bobcat
#

i mean you could try

dim wraith
#

The solution I was trying would just be a quick ID grab followed by a mass ban (from a bot that includes such features, which we have)

#

Rather than manually selecting each ID.

tidal bobcat
#

"quick ID grab" wdym

dim wraith
golden summit
#

you can use a bot to get all the member IDs in a server

dim wraith
#

Rather than going through each member on the right hand member bar ->

tidal bobcat
golden summit
tidal bobcat
#

ok i think the 4 am confusion is getting to me im out

dim wraith
golden summit
dim wraith
#

Especially when dealing with multiple different exploiter servers.

tidal bobcat
#

genuine question, have ppl tried to target your server that many times that you need to do all thos

#

i dont think there is a way to do all this without breaking TOS

golden summit
#

your best bet is to get your users to connect their account with an OAuth2 application which can get all the servers they're part of

dim wraith
#

Yes, there have been a few.

tidal bobcat
#

yeah and add a check to make sure their account is connected and if not kick them from the server ig?

golden summit
#

feels kinda meh but it would work technically

tidal bobcat
golden summit
#

that is my suggestion

#

though it may be worthwhile to only ban for actions that are actually taken on the server

dim wraith
#

Found this thing:

import discord
from discord.ext import commands



@commands.command()
async def get_ids(ctx):
    with open("folder/userdata.json", 'r') as f:
        users = json.load(f) # Opens json file

    for members in ctx.guild.members:
        id = members.id
        users["userid"] = {"ID":id}
        print(f"ID: {id} has been saved to json file")

    with open("folder/userdata.json", "w") as f:
        json.dump(users, f, indent=4)```
carmine lintelBOT
#

Hey @dim wraith!

It looks like you pasted Python code without syntax highlighting.

Please use syntax highlighting to improve the legibility of your code and make it easier for us to help you.

To do this, use the following method:
```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
You can **edit your original message** to correct your code block.
dim wraith
tidal bobcat
#

i think you're gonna have a really hard time doing anything involving code if you "have no clue how to code"

#

bec compiling bits and pieces of code from the internet without understanding what it does at all is not gonna work in the long run

golden summit
#

real

dim wraith
tidal bobcat
eager pebble
#

Hence why you need to learn the basics of Python

golden summit
#

as this is a python server we expect people to have some baseline knowledge and we help people fix issues

#

if you're looking for someone to build a tool for you, fiverr or upwork may be better suited

dim wraith
golden summit
#

this is not the place for that either

#

we're a learning server, we teach people how to write python

dim wraith
#

Ah I see.

#

I'll close the thread

carmine lintelBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.

#

πŸ”’ I have no clue how to code or use code :(

carmine lintelBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.