I had installed the qiskit-textbook distribution of Qiskit using this command : pip install git+https://github.com/qiskit-community/qiskit-textbook.git#subdirectory=qiskit-textbook-src The tutorial then said to change the contents of the configuration file located at ~/.qiskit/settings.conf but I can’t find the folder at ~/. I can’t find the iPython configuration file either at ~/.ipython/profile_default/ipython_kernel_config.py for some reason. How do I fix this? Answer If you don’t
Tag: linux
How can I automatically change my desktop background every day?
I am interested in having my desktop background automatically change every day. Perhaps taking the “picture of the day” from some website. Is this something I could do with a Python script? I can code pretty well but I only really do numerical work, so I’m just looking for an overview of the process and then I can figure out
Unable to deploy python program with cx_freeze due to cv2
So I have a fairly large python program that I want to port to other machines (ubuntu 18.04) without having to install all the python packages and dependencies for each machine, I chose to use cx_Freeze for this and it seems to build the project fine into a single executable but the executable crashes when calling cv2.imshow. I managed to
Execute mysql commands in linux terminal using Python
I would like to automate the setup of a database and I would like to do it by using a python script to execute some commands in a linux terminal. But I cannot see any way of executing commands in the terminal after connection to mysql database. Below you can see a part of the script: This starts mysql, and
Pip throws ‘Error initializing plugin EntryPoint(name=’macOS’, value=’keyring.backends.macOS’, group=’keyring.backends’)’
I’m running python 3.8 under Pop!_OS and noticed a weird reoccurring error when running various pip commands like install or list –outdated. The full error states: The command’s functionality appears to be unaffected by this but it irritates me nonetheless and I have been unable to find anything about this sort of error. So my question is, why is this
Crontab python script does not run (with anaconda on linux server)
I have the following list of tasks to complete and they are working successfully. The file structure is as follows: But then a problem arises, I added several new files for execution and they do not work. Here is an example of the code for such a file As you can see, it is completely similar, the python file itself
What is the best way to run a web app using gunicorn at certain hours of the day?
I have a little dashboard that runs with python – dash and I’ve already deployed it successfully in production using GUNICORN. However, I only want to run it on productive hours (say 8:00 to 20:00). What is the best way to do it? Using crontab to run the GUNICORN launching line? Using crontab to kill the GUNICORN process at the
Get Hex Color Code & Coordinate of The Pixel in A Image
imagine i have a 3×3 image & numbers as it’s pixel using python i want value of each pixel in hex-color code line by line, like using above example as a image if a run the script i should get the output something like: so please help me how can i achieve this output Note: My image in most cases
Every time I run my script it returns `_curses.error: must call setupterm() first` why?
I’m currently trying to learn pwn in python. I wrote a simple Hello world script: and let it run. Immediately two errors returned stating: I’ve looked around and found that the solution ought to be stating: Now, export doesn’t seem to be a valid command and placing a forward-slash after an equals sign returns the error ‘expression expected’. I’m using
How to start an mp4 file in python speech recognizer?
I am creating a python voice assistant referring from a youtube tutorial. Unfortunately, the video creator has a windows os. So he uses startfile from OS module. But this is not working in ubuntu. Here is the code that the video maker used: But this didn’t work out for me, so I used this one: Still, this code too shows