Error opening file in H5PY (File signature not found)

I've been using the following bit of code to open some HDF5 files, produced in MATLAB, in python using H5PY: import h5py as h5 data='dataset.mat' f=h5.File(data, 'r') However I'm getting the...

Shapely OSError: Could not find lib c or load any of its variants []

I'm just trying to use the demo code. I run the following in Jupyter Notebook: from shapely.geometry import shape Which gives me the following: OSError Traceback...

ffmpeg plagin imageio on Python

I simply try to call from moviepy.editor import VideoFileClip but I receive this error File "/Users/macbook/python/main_video.py", line 3, in <module> from moviepy.editor import...

OSError: [WinError 10022] An invalid argument was supplied - Windows 10 Python

I am currently learning python, coming from java, and stumbled into an error I can't find the answer to. I am using the latest python version on Windows 10, though I assume the tutorial I followed...

uninstall virtualenv in mac

I try to install tensorflow via virtualenv in mac, the reference is here: for I have python already, so I install virtualenv by: sudo pip install --upgrade virtualenv build a new virtualenv...

ffmpeg osx error while writing file : "Unrecognized option 'preset'.Error splitting the argument list: Option not found

I have the following simple Python Code: yellow_output = 'test_videos_output/solidYellowleft.mp4' clip1 = VideoFileClip("test_videos/solidYellowLeft.mp4") yellow_clip =...

ImportError: MagickWand shared library not found[windows]

Good morning, After a lot of attemps running from wand.image import Image I get the following error: Traceback (most recent call last): File...

SpaCy OSError: Can't find model 'en'

even though I downloaded the model it cannot load it [[email protected] entity-sentiment-analysis]$ which python /scratch/sjn/anaconda/bin/python [[email protected] entity-sentiment-analysis]$ sudo python -m...

Flask tutorial: AttributeError teardown_appcontext

I'm a beginner of Python and Flask. I was going through Flask tutorial up to "Define and Access the Database" section. Wrote up all codes, saved, and did below on Windows command prompt. flask...

OSError: [Errno 48] Address already in use

I'm trying to setup a server from Mac terminal. I've established a connection on port 5000 and want to open another port in 5002 using this command: python Blockchain.py -p 5002 But this gives...

Discord-py Rewrite - Basic aiohttp webserver in a Cog

I am trying to integrate a basic aiohttp webserver in a Cog (using discord-py rewrite). I am using the following code for the cog: from aiohttp import web import discord from discord.ext import...

Windows: Python SSL certificate verify failed

I've installed Anaconda and had SSL problems when trying to do API calls via Jupyter Notebooks: import requests import certifi r = requests.get('https://github.com/') print(r) This first...

How to work with HEIC image file types in Python

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...

Python Ctypes - loading dll throws OSError: [WinError 193] %1 is not a valid Win32 application

I have tried to run an exemple of a python code that gets a function from a library using ctypes. The exemple can be found here. I followed the instruction and beside one minor modification, I...

Twint Module and creating a dataframe from tweets

I have an issue converting twint results into a dataframe. I am unable to fetch the tweet results and store it into a dataframe. Everytime I set c.Pandas=True I get an error. Any ideas how to...

PortAudio library not found by sounddevice during runtime [WINDOWS]

PROBLEM: Similar to this question for Linux, I'm running into a OSError: PortAudio library not found after I package my app with pyinstaller and execute the .exe. (Note, I do not encounter any...

Python pysftp put_r does not work on Windows

I'd like to upload multiple files from a Windows directory to an SFTP server using pysftp 0.2.8. I've read up the doc and it suggests to use put_d or put_r but both give me the following...

How to fix:- libmxnet.so: cannot open shared object file: No such file or directory

I'm trying to install mxnet on Yocto (Rocko) for my 64-bit Armv8-A. I did pip3 install mxnet and it was successfully installed. It was installed in - /usr/lib/python3.5/site-packages I copied...

OSError: [E050] Can't find model 'de'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory

So I am trying to make a seq to seq model for translating german to english using pytorch on online notebook like kaggle notebook and google colab import torch import torch.nn as nn import...

OSError: [Errno 30] Read-only file system: '/User'. macOS Catalina

I was coding sorter for downloads folder. I'm getting this error, I tried to change permissions: chmod: Unable to change file mode on Users: Operation not permitted import os from_dir =...

Python: Could not install packages due to an OSError: [Errno 2] No such file or directory

I try to use pip to install sklearn, and I receive the following error message: ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory:...

Could not install packages due to an OSError: [Errno2] No such file or directory

When I try to install Tensorflow this message appears. I use the latest version of python and pip. ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory:...

Error in line where ChatBot() function is invoked

After installing the chatterbot module by using pip with the following command: pip install chatterbot --user I attempt to run following commands in the python shell >>> import chatterbot >>> from...

Error (893) can't open camera by index, python and jupyter notebook

The code: import cv2 cap= cv2.VideoCapture(1) if not cap.isOpened(): raise IOError("Cannot open webcam") cntr =0 while True: ret,frame = cap.read() cntr= cntr+1; if...

I am not able to use RemBg Python Software. Help me

I was using RemBg Software provided in this Repository. Whenever I used it. It gives me the following error- Failed to import ahead-of-time-compiled modules. This is expected on first...

Problems in loading a tf.keras model

I'm new to tensorflow and don't know anything much about it. However, with help from the net I was able to train a very simple model. But now, whenever I try to load it I get this error: Traceback...

getting "Error on reading from the event loop self pipe" error

I am looking to write a program to filter out and analyze PCAP file. Here is my current code, which is throwing an error. import pyshark import asyncio pcap_file = 'c:/sip.cap' capture =...

M1 Mac - GDAL Wrong Architecture Error [Django]

I'm trying to get a django project up and running, which depends on GDAL library. I'm working on a M1 based mac. Following the instructions on official Django docs, I've installed the necessary...

SSL error while sending email using smtp with Python

I want to send an email using outlook. The code is as follows: import smtplib from email.message import EmailMessage msg = EmailMessage() msg['From'] = '*******' msg['Subject'] = 'Some subject...

poetry run worker.py | FileNotFound [Errno 2] No such file or directory: b'/snap/bin/worker.py'

I execute the below command, in the same working directory as file worker.py: poetry run worker.py Terminal: [email protected]:~/.ssh/workers-python/workers/composite_key/compositekey$ poetry...