Pilot1782 / bad_copenheimer

A Python implementation of a discord bot that acts as a server scanner similar to Copenheimer, but is rather bad [DEPRECIATED].
GNU General Public License v3.0
90 stars 34 forks source link

[Bug]: Issues with the setup.py file (continuation) #166

Closed r0ch4rd closed 1 year ago

r0ch4rd commented 1 year ago

What happened?

Hey, its me again. I tried the dev-build as you told me before but this time I got this error.

Operating Sys

Linux

Branch

Relevant log output

[JSE] /usr/local/lib/python3.8/dist-packages/javascript/js/bridge.js:14
[JSE] const debug = process.env.DEBUG?.includes('jspybridge') ? console.debug : () => { }
[JSE]                                 ^
[JSE] SyntaxError: Unexpected token .
[JSE]     at Module._compile (internal/modules/cjs/loader.js:723:23)
[JSE]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
[JSE]     at Module.load (internal/modules/cjs/loader.js:653:32)
[JSE]     at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
[JSE]     at Function.Module._load (internal/modules/cjs/loader.js:585:3)
[JSE]     at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
[JSE]     at startup (internal/bootstrap/node.js:283:19)
[JSE]     at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

** The Node process has crashed. Please restart the runtime to use JS APIs. **

Timed out get 0 needsNodePatches None
Traceback (most recent call last):
  File "setup.py", line 4, in <module>
    from utils import logger
  File "/root/Desktop/copenheimer/bad_copenheimer-dev-builds/utils/__init__.py", line 10, in <module>
    from .server import Server
  File "/root/Desktop/copenheimer/bad_copenheimer-dev-builds/utils/server.py", line 4, in <module>
    from javascript import On, require
  File "/usr/local/lib/python3.8/dist-packages/javascript/__init__.py", line 20, in <module>
    init()
  File "/usr/local/lib/python3.8/dist-packages/javascript/__init__.py", line 16, in init
    if config.global_jsi.needsNodePatches():
  File "/usr/local/lib/python3.8/dist-packages/javascript/proxy.py", line 225, in __getattr__
    methodType, val = self._exe.getProp(self._pffid, attr)
  File "/usr/local/lib/python3.8/dist-packages/javascript/proxy.py", line 145, in getProp
    resp = self.ipc("get", ffid, method)
  File "/usr/local/lib/python3.8/dist-packages/javascript/proxy.py", line 38, in ipc
    raise Exception(f"Timed out accessing '{attr}'")
Exception: Timed out accessing 'needsNodePatches'
Pilot1782 commented 1 year ago

What nodejs version are you using?

r0ch4rd commented 1 year ago

v10.19.0

Pilot1782 commented 1 year ago

update to node>=16

r0ch4rd commented 1 year ago

I updated Node and now it's saying "Python 3 is required to run this program". I have python 3.8.10 installed.

Pilot1782 commented 1 year ago

you need python 3.10

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.