petercunha / Pine

:evergreen_tree: Aimbot powered by real-time object detection with neural networks, GPU accelerated with Nvidia. Optimized for use with CS:GO.
MIT License
440 stars 76 forks source link

IndexError: invalid index to scalar variable. #48

Open Ativ3k opened 2 years ago

Ativ3k commented 2 years ago

After start i have error.

image

Sooshians-R commented 2 years ago

pip install opencv-python==4.4.0.46

Ativ3k commented 2 years ago

pip install opencv-python==4.4.0.46

Still don't work.

Sooshians-R commented 2 years ago

I think you are getting this error because of your opencv version. 1.find opencv version that you are using(type pip list in your terminal(cmd) then search for opencv-python (version)): Screenshot (26)

if your opencv version is 4.5.4.58 continue the steps : 2.uninstall opencv : pip uninstall opencv-python 3.install other opencv versions: pip install opencv-python==4.4.0.46 if you have particular version in mind(some opencv versions.txt): pip install opencv-python==(version)

if these steps didn't work out try this step👇(I'm not sure this step works out but it worth to try it): 1.Download requirements.txt 2.run : pip install -r requirements.txt

Ativ3k commented 2 years ago

I think you are getting this error because of your opencv version. 1.find opencv version that you are using(type pip list in your terminal(cmd) then search for opencv-python (version)): Screenshot (26)

if your opencv version is 4.5.4.58 continue the steps : 2.uninstall opencv : pip uninstall opencv-python 3.install other opencv versions: pip install opencv-python==4.4.0.46 if you have particular version in mind(some opencv versions.txt): pip install opencv-python==(version)

if these steps didn't work out try this step👇(I'm not sure this step works out but it worth to try it): 1.Download requirements.txt 2.run : pip install -r requirements.txt

image Still error:/ also requirements.txt doesn't help

evan-kolberg commented 2 years ago

Change that line in the code to this (should be around line 95):

ln = [ln[i - 1] for i in net.getUnconnectedOutLayers()]

I got the same error and found the solution in another aimbot tutorial online.

5ghzx commented 1 year ago

nowit says TypeError: only integer scalar arrays can be converted to a scalar index

Change that line in the code to this (should be around line 95):

ln = [ln[i - 1] for i in net.getUnconnectedOutLayers()]

I got the same error and found the solution in another aimbot tutorial online.