Questions tagged [python3]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1
votes
0answers
13 views

parse function returning wrong date from the string in python 3 [closed]

I am trying to extract date from the string. if the string has exact date, then parse funtion will return correct date from dateutil.parser import parse ExDate = parse("My Birthday is on 28/05/2020",...
0
votes
0answers
13 views

TypeError: __init__() got an unexpected keyword argument 'checksec' [closed]

I was watching this video https://youtu.be/GTQxZlr5yvE?t=2185 (Ippsec's Rope CTF) and he defines checksec argument here ! when I run the code i get this error Traceback (most recent call last): ...
0
votes
0answers
6 views

SQL SELECT AVG in Flask returns a 2D array [migrated]

(*) I am learning both Flask and SQL. I am cloning existing, working code. I am running my Flask code in the PythonAnywhere environment. The code I have modified starts @app.route('/print_my_dogs') ...
1
vote
0answers
14 views

unable to execute VBoxManage command in python executable (created with pyinstaller)

OS: Ubuntu 16.04 LTS make an install.py file executable: pyinstaller -w install.py --onefile install.py script: import os VM = os.system('VBoxManage startvm win10 --type headless') if VM == 0: ...
0
votes
1answer
29 views

macOS Console Vim Python3 Install

I know this question has been asked in many various forms, but I have not yet been able to get any of the answers to work. If anybody can point me in the right direction, it would be greatly ...
0
votes
2answers
34 views

Is it possible for a windows service to print a PDF file?

I have this function within a Python script that has been installed as a windows service with NSSM. When the Python script is run normally (i.e. not as a service), the file is printed. However, when ...
0
votes
0answers
4 views

Append elements to a copied variable append them also to the source variable [migrated]

I am trying to use one variable containing a list of strings as base. After that I woud like to set different variables to use the base list and append their elements to the list. It should be ...
0
votes
1answer
15 views

Cron jobs do not execute

I have 3 python scripts which are scheduled in the same crontab as : # Script 1 0 0,6,12,18 * * * cd path/to/script && /usr/bin/python3.8 -W ignore script1.py >> file1.out # Script 2 0 ...
0
votes
0answers
9 views

0 active kernels and getting 500 : Internal Server Error when trying to open .ipynb with jupyter notebook

I was using jupyter notebook couple days ago, and everything was all right, now I get this error, can you help me solve it, I really need to solve this. [E 10:32:26.681 NotebookApp] Uncaught ...
0
votes
0answers
10 views

Adding pip, pip3, pip3.7 to PATH [duplicate]

Hi after the installation, I got this warning: The scripts pip, pip3 and pip3.7 are installed in '/Users/stevetsang/Library/Python/3.7/bin' which is not on PATH. Consider adding this directory to ...
0
votes
0answers
7 views

pylint extremely slow in sshfs partition

pylint is taking a huge amount of time to lint my *.py files that are stored in a remote partition, which is mounted via SSHFS. If I make a local copy of the files and run pylint on those local copies,...
0
votes
1answer
42 views

unresolved import 'chromedriver_install' Python(unresolved-import)

py -m pip install chromedriver_install Requirement already satisfied: chromedriver_install in c:\users\bckelley\appdata\local\programs\python\python38-32\lib\site-packages (1.0.3) Does anyone know ...
0
votes
0answers
22 views

Is it possible to have a ctypes meassege box for a python script that is installed as a NSSM service?

OS: Windows 10 I have this python script that asks the user if he/she would like to print a file. While running this python script manually it works fine. However, when installing the Python script ...
0
votes
1answer
110 views

Setting python shell version with .sh file

I am executing my ./shell.sh which contains eval "$(pyenv init -)" pyenv shell 3.8.2 But nothing happens. If i run this code in bash manually it works fine and shell version of python switches from ...
1
vote
0answers
31 views

Sending emails from Python 3 script with smtp library using a virtual machine in SUSE Linux Enterprise Server 11 SP4

I can't send emails from Python 3 script with smtp library using a virtual machine in SUSE Linux Enterprise Server 11 SP4. However, using exactly the same code from my Ubuntu 18.04 machine, works just ...
0
votes
0answers
41 views

How to Uninstall Python3.7.3 using cmd?

How to Uninstall Python3.7.3 using cmd ? i tried using cmd: Msiexec /uninstall C:\Python37\python.exe But it gives me below error: enter image description here how do i uninstall it ?
0
votes
0answers
72 views

i get unmet dependencies while installing python3-pip in ubuntu 18.04 LTS

i am getting unmet dependencies while installing python3-pip in ubuntu 18.04 LTS nv@nv-Lenovo-ideapad-320-15IAP:~$ sudo apt-get install python3-pip Reading package lists... Done Building dependency ...
0
votes
1answer
87 views

Ubuntu-MATE 18.04 not starting GUI after python3 reinstall

I have Lenovo Thinkpad T-480, with dual boot Ubuntu-MATE 18.04 LTS and Windows 10 using GRUB. Normally I use Ubuntu-MATE for my programming needs and Windows 10 for editing images. Two days ago I ...
0
votes
1answer
49 views

Calling MSYS2 terminal commands from python on windows 10

It is possible to call cmd commands from python using the following script import os os.system('cmd /k "Your Command Prompt Command"') Is there a similar method to call MSYS2 terminal commands from ...
1
vote
0answers
17 views

Setting up custom “Windows Hello” on laptop

I have a Lenovo 330 ideapad without "Windows Hello" feature. I am a big Computer Vision buff and wrote a python script to perform the same (with face detection). I was hoping there was some way I ...
1
vote
1answer
51 views

Installing python3-pip to WSL Ubuntu 18.04 from Powershell

Scenario In an automated installation procedure I am trying to install python3-pip. However during the manual installation of the package installer pip, I got a purple screen prompting me for a ...
0
votes
1answer
84 views

PyEnv alternative to manage multiple versions of Python on Windows 7 [closed]

I have a system developed in Python and I need to run the tests on all versions 3.5 and above. On Unix it is possible to use the PyEnv dependency manager and install all versions but it does not work ...
0
votes
2answers
1k views

How to install python packages with all dependencies offline via pip3?

first of all I have managed to install Ansible on a server which has no internet access. But I wonder if my approach is correct. At first I downloaded the necessary dependencies via pip3. pip3 ...
0
votes
1answer
116 views

Pycharm doesn't detect python installed from Microsoft store

I have python 3.7 installed on my pc downloaded from python's official website and pycharm detects it and is fine. But, windows's powershell doesn't detect it. I have added it to path of system and ...
1
vote
2answers
77 views

Permission Denied When Trying to Create Python3 Virtual Environment

Ubuntu 18.04 LTS I'm trying to allow users to create their own virutalenv for python3, however when trying to create said environment using a standard user account with this command:$ python3 -m venv ...
0
votes
0answers
11 views

How to NOT changing the shell prompt when activating a python venv?

I created a venv like so: python3 -m venv .venv When I activate it, the shell prompt is changed. antkong@konga-mbp ~/dev/my-project (git-branch-name) $ source .venv/bin/activate (.venv) konga-mbp:...
0
votes
0answers
85 views

How can I use Python macros in Libreoffice calc?

Is it possible use Python macros in Libreoffice calc 6.0.7.3 and Ubuntu 18.04? I meant something like when Calc runs a macro, it would save the data to CSV format, open it in Python, modify the data ...
0
votes
1answer
399 views

ERROR: Package 'flake8-2020' requires a different Python: 3.5.2 not in '>=3.6'

I know it is saying that I should use python version in >=3.6, but the issue is here. I am an offline user of Ubuntu 16.04 server and if I want to install any package I just download its wheel first ...
0
votes
0answers
615 views

could not find or load spatialindex_c-64.dll error

I am using a Windows 10 64 bit pc . When I tree to install Rtree using pip install Rtree It rises the following error Collecting Rtree Using cached https://files.pythonhosted.org/packages/11/1d/...
1
vote
1answer
723 views

macOS Catalina - Getting SSL: CERTIFICATE_VERIFY_FAILED with Python 3

I'm getting SSL: CERTIFICATE_VERIFY_FAILED - certificate verify failed: unable to get local issuer certificate error when I try to connect a service hosted through HTTPS. Many have proposed executing ...
0
votes
0answers
69 views

How to open ubuntu 18.04 subsytem w/ python subprocess from windows?

Essentially I want to run linux scripts in my ubuntu subsystem by passing arguments through python on my windows os. I know where my ubuntu.exe is in program files. Normally subprocess.call(program....
0
votes
0answers
91 views

Borderless window Tkinter Mac OS Mojave

I have been having issues with this for a while and cannot find a solution online. What I want: A borderless, title-less window. Pretty straight forward. But when i try to use overideredirect(True) ...
0
votes
0answers
32 views

Latest version installed but not being used

I've been trying to upgrade python to 3.7 on a Debian buster server. If I type python3 --version it returns python 3.6.1. However, if I run sudo apt install python3 it returns the following: Reading ...
0
votes
0answers
68 views

pip3 not working after reinstall

I have recently reinstalled python3 on my Ubuntu Xenial Gnome system using apt. I also installed python3-pip. However, now pip3 no longer works. Attempting to run pip3 gives a strange error: bash: /...
1
vote
0answers
220 views

fireeye flare-vm: Updating 'python3 3.7.2' to 'python3 3.8.0' failed

I have been trying to install fireeye flare-vm when seeing this error at the end of the installation process. Error Message python3 (exited 1) - python3 not upgraded. An error occurred during ...
1
vote
1answer
315 views

How do Install and run python scripts for GIMP?

There appear to be 2 directories where GIMP looks for plugins. One is C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins and C:\Users\Sam\AppData\Roaming\GIMP\2.10\plug-ins However, when I go look at the ...
1
vote
0answers
58 views

Change from universal serial bus controllers to COM port

When I plug my USB device it is recognized as universal serial bus controllers in device manager but I would like to be on COM port because I would like to use python script to control it. It works ...
1
vote
2answers
1k views

Why did keyboard shortcut Ctrl-Alt-N stop working in Visual Studio Code?

So, I recently installed Visual Studio Code(1.40.0) on Windows 10. Everything was working fine as I was working around to see how to run Python Code, I installed Python extension, pylint, Auto PEP-8 ...
0
votes
0answers
67 views

Error occurs when I try to install sklearn by pip

Version info: python: 3.8 scipy: 1.3.2 numpy: 1.17.4 Details: It works well when I install other libs; however, it throws the below error message when I install sklearn by pip or pip3. Error ...
-2
votes
1answer
44 views

Error while running python file

(base) C:\Users\Admin>activate RR-1722-stage1 (RR-1722-stage1) C:\Users\Admin>pip -m pip install --upgrade pip Usage: pip <command> [options] no such option: -m (RR-1722-stage1) C:\...
1
vote
1answer
81 views

Mac OS X, python 3.8 install, Jupyter notebook kernel fail

I have been using jupyter notebook on my mac via python 3.7 with no issues. Just upgraded to Python 3.8, now jupyter notebook launches but attempting to open any prior notebooks, get error that I ...
0
votes
0answers
419 views

Jupyter Kernel Error

Red Kernel error at the top right. Just updated to Mac OS Catalina and I'm using Safari browser. Traceback (most recent call last): File "/usr/local/Caskroom/miniconda/base/lib/python3.7/site-...
0
votes
0answers
454 views

Problems/Error occured while installing Python SciPy on Windows [duplicate]

I installed numpy without any trouble. I just write in Windows powerShell... python -m pip install numpy And it is installed troubleless. But if I wanted to install scipy with this command I get ...
0
votes
0answers
82 views

Aborted (core dumped) after breaking a python progrm

I was following this post, and released a python program running on my console using the combination CTRL+z. Now, each time I try to run this program I am getting: Aborted (core dumped) I am new ...
1
vote
0answers
104 views

ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

I am using ubunutu 18.04 this is the result of nvidia-smi: Mon Oct 28 12:00:58 2019 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 435.21 ...
0
votes
0answers
369 views

Pip not working

My problem is pip install [module] gives me this error Traceback (most recent call last): File "c:\program files (x86)\python37-32\lib\runpy.py", line 193, in _run_module_as_main "__main__", ...
0
votes
0answers
129 views

Scheduling a R/Python Script in RunDeck

I have written one python/R code and kept inside the edge node. I want to run the scripts through RunDeck. Can you explain the step by step process flow to achieve the same.
1
vote
0answers
74 views

pymongo - LookupError: unknown encoding: idna

I'm having an error with pymongo (version 3.6.0) when I try to instantiate a MongoClient. My python version is 3.7.4, running on OS X Mojave. Does any one know how this problem can be fixed or if ...
0
votes
0answers
152 views

pip3 install [package] failed no matter with proxy or without proxy

Environment Windows 1903 WSL (kali) python3.7 Description when using pip3 install flask the output display like such WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, ...
0
votes
0answers
202 views

Cannot open Jupyter Notebook

Cannot open Jupyter Notebook in the new zsh shell in macOSHello, I am a student in communications science and we are using Jupiter Notebook for one assignment, therefore I have very limited knowledge ...

1
2 3 4 5
7