python-3.x Questions
16
The High Efficiency Image File (HEIF) format is the default when airdropping an image from an iPhone to a OSX device. I want to edit and modify these .HEIC files with Python.
I could modify phone ...
Cornew asked 28/1, 2019 at 4:55
3
Solved
I'm pretty new to coding so I apologize for this being stupid question. I'm writing a spark function that takes in a file path and file type and creates a dataframe. If the input is invalid, I want...
Denticulation asked 21/5, 2020 at 19:36
5
Solved
I am trying to create a simple program so as to display the map of Central America with its population using Pygal_maps_world. Here's the code for the same:
import pygal_maps_world as pa
wm=pa.Wor...
Avuncular asked 7/6, 2016 at 12:40
2
I'm trying to import the xarray module into python 3.8.10 but I get this error:
AttributeError: module 'numpy.random' has no attribute 'BitGenerator'
In order to allow you to reproduce the error: ...
Dermatoplasty asked 8/3, 2022 at 17:27
5
I'm looking for an example of how removing unused imports can lead to breaking otherwise valid programs. My question was inspired looking at this issue: https://github.com/psf/black/issues/86
Coul...
Inesinescapable asked 30/7, 2019 at 16:17
4
Solved
I have troubles sorting a wiki table and hope someone who has done it before can give me advice.
From the List_of_current_heads_of_state_and_government I need countries (works with the code below) ...
Heulandite asked 15/5, 2018 at 16:56
4
When I run the command
cmake --version
It gives me the version.
But when I run
import cmake
It gives the error cmake module not present.
I am stuck and not getting how to resolve it
Cromwell asked 22/11, 2019 at 10:33
2
Solved
Getting an error on the following code. Keep looking at examples and re-evaluating code but cannot really spot any reason this shouldn't run. Is there anything incorrect such that the 'mRRed' layou...
Eda asked 1/5, 2020 at 17:15
2
I need to run python 3.6 but have 3.9 on my mac, which is running Monterey.
pyenv install 3.6.9
but i am getting these errors;
python-build: use [email protected] from homebrew
python-build: ...
Footed asked 17/3, 2022 at 8:40
6
Solved
I have been playing around with oobabooga text-generation-webui on my Ubuntu 20.04 with my NVIDIA GTX 1060 6GB for some weeks without problems. I have been using llama2-chat models sharing memory b...
Negris asked 23/8, 2023 at 16:35
2
I'm trying to install a requirements.txt file in Docker, and I make it about 30 packages in when I get this error when trying to install importlib:
Can not execute setup.py since setuptools is not ...
Revolutionize asked 10/6, 2022 at 8:0
5
Solved
I need a dictionary that is automatically filled with a default value for each accessed key that is missing. I've found defaultdict and some other ways to achieve this, but the problem in my case i...
Eleph asked 26/1, 2021 at 12:59
3
I am new to 3D image processing . I would like to know how to view the dicom series in python. I tried using matplotlib and VTK. In matplot I am not able to view the volume like I view in matlab us...
Respirator asked 8/5, 2019 at 7:24
3
Solved
Just a bit of a pedantic question, but I'm getting a "Cannot find reference 'connect' in function" warning in PyCharm. (Relating to my returnPressed.connect) Is it just a PyCharm bug or t...
Echidna asked 28/1, 2021 at 20:37
9
Solved
I am trying to install few packages and started getting an error. Then used multiple commands in ubuntu to update few things but errors are similar
pip install -U pip setuptools
or
python3 -m pip i...
Loewi asked 12/10, 2022 at 11:46
2
Solved
I have been learning to use Django over the last year and Python is not my native programming language. Normally, when I want to create a many to many relationship, I would create 3 tables, one of ...
Aquitaine asked 13/10, 2020 at 15:6
2
Solved
tldextract is used to extract domain names from the URLs. Here, 'url' is one of the column name in the data frame 'df'. It is possible to pass one value of 'url' as a parameter. However, I am not a...
Bloke asked 15/7, 2018 at 11:11
1
Solved
Referring to an item of a dict_keys, dict_values, or dict_items object by index raises a type error. For example:
> my_dict = {"foo": 0, "bar": 1, "baz": 2}
> my...
Bestraddle asked 22/8 at 11:39
5
A few of my users (all of whom use Mac) have uploaded an Excel into my application, which then rejected it because the file appeared to be empty. After some debugging, I've determined that the file...
Delisadelisle asked 8/7, 2020 at 17:55
2
Solved
My task is to get a list of named functions from any web-page using Python.
I have a script written using JavaScript. It does what I need.
When page is loaded I can run the script from JS consol...
Bes asked 16/5, 2017 at 19:31
2
I am facing an error to install the packages on aws ec2 instance with Ubuntu 18 using the following command -
pip install -e .
The error is -
ERROR: Could not install packages due to an OSError: [E...
Coxswain asked 21/11, 2022 at 8:8
4
I'd like to pass "Complex" Header to a SOAP service using the zeep library.
Here's what it should look like
<soapenv:Header>
<something:myVar1>FOO</something:myVar1>
&...
Sideshow asked 22/3, 2017 at 21:37
6
I tried to download torch by using pip install torch
I faced this problem:
C:\Users\Ahmad Sadek>pip install torch
ERROR: Could not find a version that satisfies the requirement torch (from versi...
Nocturne asked 4/2, 2022 at 13:1
2
Solved
First thing's first: my OS is openSUSE Tumbleweed, my Python version is 3.11.7, and my pip version is 23.2.2
My goal is as follows: I want to use pip to install the pytictoc package into a virtual ...
Twopiece asked 24/1 at 2:56
7
I'm trying to learn backtesting.py, when I run the following sample code, it pops up these errors, anyone could help? I tried to uninstall the Bokeh package and reinstall an older version, but it d...
Mock asked 6/11, 2022 at 10:17
© 2022 - 2024 — McMap. All rights reserved.