Giter Club home page Giter Club logo

Comments (11)

Pilot1782 avatar Pilot1782 commented on July 17, 2024

Install node.js>=16

from bad_copenheimer.

cmk-Destro avatar cmk-Destro commented on July 17, 2024

I was indeed using version 10.18 but now i get this error

Kirysaki@CloudMachine ~/bad_copenheimer-dev-builds$ python3 mongoBot.pyw
mongoBot.pyw:13: DeprecationWarning: The v4 is now deprecated and won't be supported in the future. Please, migrate to v5. https://github.com/interactions-py/interactions.py
  import interactions
Traceback (most recent call last):
  File "mongoBot.pyw", line 25, in <module>
    import utils
  File "/home/ubuntu/bad_copenheimer-dev-builds/utils/__init__.py", line 6, in <module>
    from .database import Database
  File "/home/ubuntu/bad_copenheimer-dev-builds/utils/database.py", line 4, in <module>
    class Database:
  File "/home/ubuntu/bad_copenheimer-dev-builds/utils/database.py", line 9, in Database
    ) -> list[dict[str, int]]:
TypeError: 'type' object is not subscriptable

from bad_copenheimer.

cmk-Destro avatar cmk-Destro commented on July 17, 2024

only python above 3.9 can run that

from bad_copenheimer.

Pilot1782 avatar Pilot1782 commented on July 17, 2024

I'm not able to reproduce this but for a temporary fix in "/home/ubuntu/bad_copenheimer-dev-builds/utils/database.py", line 9, you can remove the return type and see if that resolves it.

from bad_copenheimer.

cmk-Destro avatar cmk-Destro commented on July 17, 2024

No more errors related to that just weird ones like :

Kirysaki@CloudMachine ~/bad_copenheimer-dev-builds$ python3 setup.py
Traceback (most recent call last):
  File "/home/ubuntu/bad_copenheimer-dev-builds/setup.py", line 4, in <module>
    from utils import logger
  File "/home/ubuntu/bad_copenheimer-dev-builds/utils/__init__.py", line 7, in <module>
    from .finder import Finder
  File "/home/ubuntu/bad_copenheimer-dev-builds/utils/finder.py", line 8, in <module>
    import interactions
ModuleNotFoundError: No module named 'interactions'
Kirysaki@CloudMachine ~/bad_copenheimer-dev-builds$ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting mcstatus (from -r requirements.txt (line 1))
  Using cached mcstatus-10.0.2-py3-none-any.whl (26 kB)
Collecting discord-py-interactions (from -r requirements.txt (line 2))
  Using cached discord_py_interactions-5.0.1-py3-none-any.whl (838 kB)
Requirement already satisfied: pymongo in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 3)) (4.3.3)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from -r requirements.txt (line 4)) (2.22.0)
Collecting python-masscan (from -r requirements.txt (line 5))
  Using cached python-masscan-1.0.0.tar.gz (7.7 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Im using python 3.11.3

from bad_copenheimer.

cmk-Destro avatar cmk-Destro commented on July 17, 2024

Btw setuptools is already installed

Kirysaki@CloudMachine ~/bad_copenheimer-dev-builds$ pip install setuptools                                                                                                              
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (45.2.
```0)

from bad_copenheimer.

Pilot1782 avatar Pilot1782 commented on July 17, 2024

Is masscan installed? And interactions is discord-py-interactions

from bad_copenheimer.

cmk-Destro avatar cmk-Destro commented on July 17, 2024

yes it is

from bad_copenheimer.

Pilot1782 avatar Pilot1782 commented on July 17, 2024

Check the docs to pass an overridden path for where masscan is installed, as I don't think they have implemented the paths for arch I think you should make an issue with the package owner, the package is called 'python-masscan'

from bad_copenheimer.

cmk-Destro avatar cmk-Destro commented on July 17, 2024

but i was using masscan until the installation of the bot with no problems at all, i can reset the cloud machine to try again

from bad_copenheimer.

cmk-Destro avatar cmk-Destro commented on July 17, 2024

what version of python you have installed?
i keep getting weird errors
my dc is Kirysaki#0809 if you need any info about system etc

from bad_copenheimer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.