Tag: PYTHON
python – Cannot create a driver with webdriver manager for Brave/Firefox and Selenium 4
I copy/paste webdriver manager code example for using Brave as a driver from officially documentation -> github.com/SergeyPirogov/webdriver_manager After running the code I am AttributeError: For Firefox I am getting: I…
raspberry pi – python-configparser not found on ubuntu 22.04
I’m trying to install this github.com/pimoroni/displayhatmini-python on a raspberry pi running Ubuntu 22.04 and when I run the install.sh it fails on this: E: Unable to locate package python-configparser Unfortunately,…
python – Necesscity of pip inside conda environment
The most common reason I know of for using pip while already in a conda environment is because anaconda.org does not have the package. It is rare for Anaconda to…
python – Regex for username allows for more than one special character
Below is my solution… you can also find it under regex101.com/r/g33uf6/1: regex = ‘^[A-Za-z0-9]+([@_\-\.][A-Za-z0-9]*)?$’ The regex starts (^) with allowing 1 or more (+) only characters that belong to any…
Import lightning fails in pop os 22.04(nvidia) – implementation help
import lightning/home/aeternum/anaconda3/envs/lit/lib/python3.9/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: ‘libc10_cuda.so: cannot open shared object file: No such file or directory’If you don’t plan on using image functionality from torchvision.io, you…
Import lightning fails in pop os 22.04(nvidia) – implementation help
import lightning/home/aeternum/anaconda3/envs/lit/lib/python3.9/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: ‘libc10_cuda.so: cannot open shared object file: No such file or directory’If you don’t plan on using image functionality from torchvision.io, you…
bash – RegEx for parsing package name, package version (including release) for Fedora / Red Hat packages
My goal is to parse correctly package names and package versions (including release number) for Fedora or Red Hat packages like this: python39-3.9.16-1.module+el8.8.0+18968+3d7b19f0.1.x86_64 python3.11-3.11.2-2.el9_2.2.aarch64 glibc-2.34-60.el9.aarch64 glib2-2.68.4-6.el9.aarch64 langpacks-core-font-en-3.0-16.el9.noarch p11-kit-trust-0.24.1-2.el9.aarch64 tzdata-2023c-1.el9.noarch Expected…
python – why this selenium error happening, how do i fix it?
from selenium import webdriver patha =”\driver\chromedriver.exe” driver=webdriver.Chrome(executable_path=patha) driver.get(“https://www.google.com/”) The error: File “C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\common\service.py”, line 62, in start self.process = subprocess.Popen(cmd, env=self.env, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\subprocess.py”, line 1026, in __init__ self._execute_child(args, executable, preexec_fn,…
python – Pandas not running in Jupyter Notebook, Not letting me do a conda update
When I tried to import pandas as pd this happened /opt/anaconda3/lib/python3.8/site-packages/pandas/core/computation/expressions.py:20: UserWarning: Pandas requires version ‘2.7.3’ or newer of ‘numexpr’ (version ‘2.7.1’ currently installed). from pandas.core.computation.check import NUMEXPR_INSTALLED Then I…
Index of /centos-vault/7.4.1708/opstools/x86_64/common/
../ centos-release-opstools-1-4.el7.noarch.rpm 20-Feb-2017 22:10 3584 libuv-1.8.0-1.el7.x86_64.rpm 20-Feb-2017 22:10 78760 libuv-devel-1.8.0-1.el7.x86_64.rpm 20-Feb-2017 22:10 25848 libuv-static-1.8.0-1.el7.x86_64.rpm 20-Feb-2017 22:10 71016 nodejs-4.5.0-1.el7.x86_64.rpm 20-Feb-2017 22:10 6183348 nodejs-devel-4.5.0-1.el7.x86_64.rpm 20-Feb-2017 22:10 4816536 nodejs-docs-4.5.0-1.el7.noarch.rpm 20-Feb-2017 22:10 944748 …
SUSE alert SUSE-SU-2023:2783-2 (grpc, protobuf, python-Deprecated, python-PyGithub, python-aiocontextvars, python-avro, python-bcrypt, python-cryptography, python- cryptography-vectors, python-google-api-core, pyt)
From: sle-security-updates@lists.suse.com To: sle-security-updates@lists.suse.com Subject: SUSE-SU-2023:2783-2: important: Security update for grpc, protobuf, python-Deprecated, python-PyGithub, python-aiocontextvars, python-avro, python-bcrypt, python-cryptography, python-cryptography-vectors, python-google-api-core, pyt Date: Wed, 20 Sep 2023…
python – Eclipse PyDev Debugger: Unable to load existing shared libraries – ImportError: libffi.so.7 / libssl.so.1.1
When running pydev debugger on eclipse, it errors out about missing shared libraries namely libffi and libssl, although both are installed >locate libffi.so.7 /usr/lib/x86_64-linux-gnu/libffi.so.7 “/home/user1/.var/app/org.eclipse.Java/eclipse/plugins/org.python.pydev.core_10.2.1.202307021217/pysrc/_pydevd_bundle/pydevd_utils.py”, line 9, in <module> import…
python – Variable Group Creation using API in Azure Devops
I am trying to create a variable group in an Azure DevOps project using the REST APIs and Python scripting. The API used is: POST dev.azure.com/{organization}/_apis/distributedtask/variablegroups?api-version=7.0 The payload in use…
python – Why is this program using torch studio like this
import torchaudio # get length of file in samples(得到样本中文件的长度) info = {} # 创建列表 si, _ = torchaudio.info(str(path)) # 会返回文件信息(Get signal information of an audio file.) info[‘samplerate’] = si.rate info[‘samples’]…