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
Tag: ubuntu
Ubuntu shell script – Scanning the drive for archives: ERROR: No more files
I have installed the package p7zip-full for ubuntu and I am running the following shell script named 7z and placed within the same directory as the dataset zipped files The dataset folder looks as in the image and I get the error below although this certain file exists within my directory. How can I resolve the issue? I use Ubuntu
Should I increase the PHP memory_limit to match my VM memory_limit?
I have a doubt if I should do this or not. I have a VM with 4 GBs RAM from Linode. I want to optimize what I paid for and increase the default value of memory_limit in php.ini to allow my Laravel application to take much more than the default value. Will this help my Laravel application load faster? Is
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
Failed to start ngnix.service: Unit ngnix.service not found
I have installed ngnix on ubuntu 20.04 . But when i am giving command sudo systemctl start ngnix . I am facing an error Failed to start ngnix.service: Unit ngnix.service not found. Please help me out through this problem. Answer It’s called nginx, not ngnix. So you need to start it as sudo systemctl start nginx (note the spelling).
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
Linux Sort words alphabetically and make a file for each letter
I want to write a shell script which creates automatically 26 dictionary files, where the first file should contain all the words starting with a or A, the second all the words starting with b or B, … etc. Where each dictionary file is sorted. For example, if I had a file that had the words Lime, Apple, Orange, Avacado,