Skip to content
Advertisement

Tag: ubuntu

why python show file not found error during run time?

I am write a code for collage maker using python and place 2 picture in same folder in which code file exist but when I run a code this error shown: FileNotFoundError: [Errno 2] No such file or directory: ‘background.jpg’ and my line of code is: My Question is how I handle this error? Answer You would be getting this

Changing process priorities

Building off of this, I would like to change process priorities based on RAM usage. I’m perfectly aware that this isn’t always the best way to change priorities, but this is just for a project. I’m trying to use renice and execvp to set process priorities. The problem is that I want to launch renice with additional parameters to change

Ubuntu error — cannot import name ‘gcd’ from ‘fractions’

I’m using Ubuntu to learn basic bioinformatics. I just downloaded multiqc using conda, but when I want to run multiqc, it returns: enter image description here I am very naive and don’t know how to solve this problem. ANY help would be highly appreciated. Thanks Answer I think gcd was moved to the math pack in 3.9. See https://docs.python.org/3/library/fractions.html Changed

How to update adb to v.39 or newer on Ubuntu?

I’m not very familiar with Ubuntu. Right now, I’m on adb version 1.0.32, I need adb version 39 or newer. Whatever I do I seem to be stuck at v.32 . I’ve tried uninstalling adb with and re-installing with adb version is still showing 32. Help! Update: I also tried But after that, when I run adb version, I get

Can’t Fix Broken Git installation on Ubuntu

I was trying to install git on ubuntu, but there is an error when I try to install or fix broken git installation. This is the error: I tried other possibles solutions, I will list here: apt –fix-broken install. Error: The same problem as above. apt purge git. Show me to make an apt fix broken install sudo dpkg -i

Dockerfile build image error: Distribution contains no modules or packages for namespace package

I’m trying to build a docker image of a python project. My project has one dependency package, “my_package” which needs to be install first. It’s a namespace package. I’m having this error when building docker image of this python project. I can pretty much install everything with RUN pip install XYZ inside Dockerfile but I’m not sure what’s the proper

Advertisement