Categories
Mastering Development System & Network

libvirt cannot create default network

I can’t start the default network for libvirt. I get the error in journalctl: Jun 06 15:22:43 jenia libvirtd[889326]: Unable to create bridge virbr0: Package not installed I did installed the packages ebtables, bridge-utils and dnsmasq and restarted libvirtd but the problem persists. Can someone please tell me what package am I missing? I’m using […]

Categories
Mastering Development

How to fix AttributeError: module ‘tensorflow’ has no attribute ‘space_to_depth’

I have python 3.7.4 installed and tensorflow version 2.2.0 installed on my Windows 10 x64. I am trying to execute this: yolo_model = load_model(“model_data/yolo.h5”) And it gives the mentioned error Here is the stack trace: Traceback (most recent call last): File “Object Detection.py”, line 78, in <module> yolo_model = load_model(“model_data/yolo.h5”) File “E:\Python37\lib\site-packages\keras\engine\saving.py”, line 492, in […]

Categories
User Help

Error when launching MacOs in VirtualMachineManager (linux Manjaro)

Hi i successfully setup MacOs on linux Manjaro. It works and all if i open it using the terminal(using ./basic.sh) but it has only 3MB vram so as am on a laptop i have 2 gpu(integrated one and one dedicated Amd) i made Manjaro use the integrated one and reserved the amd one. Using Virtual […]

Categories
Linux Mastering Development Ubuntu

Error pops up when trying to start a vm in virtmanager

I’m using this repository as a guide to virtualizing on Ubuntu 20.04. The virtualized OS is Catalina 10.15.4. Error pops up when I try to open virtmanager and start the VM I created. Also when i try to use the Opencore-boot.sh option, the option to install the MacOS X won’t show up. Error Log: Error […]

Categories
Mastering Development Software

pip install Tensorflow: Exception, what should I do?

I’m trying to install TensorFlow on my computer, but I can’t because of this following error: plus, I ran it as an administrator, and the operating system is Windows 10, prompt is cmd. and my computer has more problems: I can’t install Python on C: drive. The installer says ‘no such file or directory’ C:\WINDOWS\system32>pip […]

Categories
Mastering Development

how to profile PyPy with vmprof?

I read the vmprof doc in https://vmprof.readthedocs.io/en/latest/vmprof.html And I try to to prof pypy, with the cmd: pypy -m vmprof –web hello.py Then i return that: /usr/bin/pypy: No module named vmprof I Try pip install vmprof then pypy -m vmprof –web hello.py But it doesn’t work yet! I am totally confused, can somebody tell me […]

Categories
Mastering Development

“TypeError: unsupported operand type(s) for -: ‘list’ and ‘list'” when using face_recognition module

Here is my code: import face_recognition image = face_recognition.load_image_file(“images/me.jpg”) my_face_encoding = face_recognition.face_encodings(image)[0] unknown_face_encoding = “””[-1.24054216e-01 7.84611031e-02 1.30224943e-01 -9.93825272e-02 -1.54951781e-01 -2.31261551e-02 -1.49395000e-02 -1.26060829e-01 2.01227441e-01 -1.06694490e-01 1.13739245e-01 4.98759709e-02 -2.01444834e-01 7.44614825e-02 -5.97176738e-02 2.09760502e-01 -1.42870039e-01 -1.00220293e-01 -8.31034407e-02 -9.54630375e-02 4.45789173e-02 1.09126575e-01 3.59398499e-02 1.45934403e-01 -1.93168193e-01 -3.01777571e-01 -1.07183568e-01 -7.31595308e-02 -1.50131527e-04 -2.95262784e-02 3.00722718e-02 9.44098681e-02 -1.63059399e-01 5.54478317e-02 3.09961736e-02 6.91680238e-02 -2.36961320e-02 -4.18790579e-02 1.70652434e-01 4.25888747e-02 -2.58502364e-01 […]

Categories
Mastering Development

ReadTimeoutError while installing tensorflow-gpu

I am getting below error while installing tensorflow-gpu from pip command. Tried multiple attempts at different times assuming the network issue but the error remains persist. (base) PS E:\…\coref-master> pip install tensorflow-gpu Collecting tensorflow-gpu Downloading https://files.pythonhosted.org/packages/a3/4c/87b658692746d66dfe687f3e0fe33ee58248f388961d2fdbc851b6c1d604/tensorflow_gpu-2.1.0-cp37-cp37m-win_amd64.whl (356.5MB) |██ | 25.6MB 25kB/s eta 3:39:40ERROR: Exception: Traceback (most recent call last): File “C:\…\Anaconda3\lib\site-packages\pip\_vendor\urllib3\response.py”, line 397, in _error_catcher […]

Categories
Linux Mastering Development Ubuntu

Target WSGI script ‘/var/www/FlaskApp/flaskapp.wsgi’ cannot be loaded as Python module

Stuck here for days mod_wsgi (pid=16615): Target WSGI script ‘/var/www/FlaskApp/flaskapp.wsgi’ cannot be loaded as Python module. mod_wsgi (pid=16615): Exception occurred processing WSGI script ‘/var/www/FlaskApp/flaskapp.wsgi’. Traceback (most recent call last): File “/var/www/FlaskApp/flaskapp.wsgi”, line 7, in <module> from FlaskApp import app as application File “/var/www/FlaskApp/FlaskApp/__init__.py”, line 6, in <module> from Recognition import testCode,trainCode File “/home/example_2019/Recognition.py”, line 2, […]

Categories
Mastering Development

Unable to start Airflow Server – OSError: [Errno 2] No such file or directory

I setup Airflow locally using the Installation and Quickstart pages. I was able to originally get it up and running, and even follow the Tutorial. Then when trying my own example which required the following pip install ‘apache-airflow[gcp,google_auth]’ When I try to run webserver with airflow webserver -p 8080 I get the following error: Running […]