Categories
Mastering Development

Why does it keep showing Python 3 Code Error Class Not Defined but it was defined?

I get the following error message: Traceback (most recent call last): File "main.py", line 13, in <module> class Archer(User): File "main.py", line 22, in Archer archer1 = Archer(‘Joie’, 100) NameError: name ‘Archer’ is not defined from this code: class User(): def sign_in(self): print(‘logged in’) class Wizard(User): def __init__(self, name, power): self.name = name self.power = […]

Categories
Mastering Development

Why does FreeCad not see or find the libblas.so.3 file?

OK guys have mercy on me… I’ve just started on my Ubuntu adventure, don’t know all that much about programming etc. So I want to use the ‘path’ workbench in FreeCad but it gives me this error message: libblas.so.3: cannot open shared object file: No such file or directory I have already tried this: Some […]

Categories
Linux Mastering Development Ubuntu

20.04.1LTS – Python 3.8.x problems continue

Running 64-bit Ubuntu 20.04.1 LTS on Raspberry Pi4B. I posted this question earlier; Installing Python 3.8.5 from source broke Ubuntu 20.04LTS – how to replace the broken Python install from a backup image of the OS disk? As that thread is now locked, I was already on my merry way to reverting to a backup […]

Categories
Mastering Development

TypeError: unsupported operand type(s) for <<: 'str' and 'int'

Could anyone please give me some broad guidance for a Python project that my 10 year-old son is trying? I’m looking less for specific coding solutions, but I hope this is a good place to ask the question. What I’d like is to see if my son is on to something that’s realistic with his […]

Categories
Mastering Development

how to run on array of string in nested loop in python

I try to run this code (small part of my program) I fixed and added whitespaces and now I get new error, maybe this array does not fit to string? arrayOfPhotos = ["1.jpg", "2.jpg", "3.jpg", "4.jpg"] for name in arrayOfPhotos: detections = detector.detectObjectsFromImage(input_image=arrayOfPhotos[name], output_image_path="holo3-detected.jpg") for detection in detections: print(arrayOfPhotos[name], " : ", detection["percentage_probability"]) I get […]

Categories
User Help

I get this error when I run assasin.py and I can’t install the spider repository I get an error

root@kali:/home/kali/2FAssassin# python assassin.py cat: /root/.msf4/loot/ssh_login.txt: No such file or directory sh: 1: cannot create /root/.msf4/loot/usernames.txt: Directory nonexistent Traceback (most recent call last): File "assassin.py", line 13, in from cert.analysis import detest File "/home/kali/2FAssassin/cert/analysis/detest.py", line 8, in from classes.Colour import Colour File "/home/kali/2FAssassin/classes/init.py", line 2, in import Spider ImportError: No module named Spider

Categories
Mastering Development System & Network

gsutil from gcloud/Google Cloud SDK failing with “SyntaxError: invalid syntax” error in bcrypt

Trying to use gsutil today I got the following error: + gsutil cp -nra public-read a gs://b /usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release. CryptographyDeprecationWarning, Traceback (most recent call last): File "/usr/lib/google-cloud-sdk/bin/bootstrapping/gsutil.py", line […]

Categories
Mastering Development

How to coding to fix Fatal error detected : Failed to execute script BoxDetection after use auto-py-to-exe compile python code to exe file?

How to coding to fix Fatal error detected : Failed to execute script BoxDetection after use auto-py-to-exe compile python code to exe file? I learn to compile python code to exe file with vdo link https://www.youtube.com/watch?v=ZtBTrARHJps&list=WL&index=3&t=156s . I have problem to after use auto-py-to-exe compile python code to exe file and have popup error after […]

Cant Run this Python File. Can you help?

I am using Kali Linux 2019 , Trying to install this Source : https://github.com/ptrkrysik/multi-rtl I have installed everything required, but what dose this, here, mean here? I run ./mutlirtl_rx_to_cfile_2chan.py as root, and get this error message. Traceback (most recent call last): File "./mutlirtl_rx_to_cfile_2chan.py", line 17, in <module> import multi_rtl File "/usr/local/lib/python2.7/dist-packages/multi_rtl/__init__.py", line 30, in <module> […]

Categories
Mastering Development

Errors in post Django testing procedure

I’m trying to make a test for incrementig votes in Django polls tutorial application. I made two identical tests in django shell and in test.py. None of them working and results are different. The app is working well. In the 1st case response of post request is 200 , no incrementing value. In the 2nd […]