Questions tagged [oserror]

218 questions
45
votes
6 answers

Python fromtimestamp OSError

For some reason when constructing datetimes using fromtimestamp, I get a "OSError [Errno22] Invalid Argument" when I use negative times less than -43200 (-12hrs). I am on Win7 64-bit and python 3.5.1. Here's code that produces the error. >>>…
Jon Hartnett
  • 451
  • 1
  • 5
  • 4
23
votes
4 answers

SavedModel file does not exist when using Tensorflow hub

When trying to use the hub.load function from tensorflow_hub, I get an OSError: SavedModel file does not exist at: error. The weird thing is that it worked a few days ago, so I don't quite understand why I'm getting this error now. Code to…
Kevin Sun
  • 1,171
  • 2
  • 8
  • 17
10
votes
2 answers

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

I know this question has been asked a couple of times but no matter how many solutions I've tried to run I still get the same error. This is the error I get: --------------------------------------------------------------------------- OSError …
Adorable
  • 119
  • 1
  • 1
  • 6
8
votes
0 answers

Python 3.8 concurrent.futures "OSError: handle is closed"

I have Python 3.8 and cannot upgrade (I have dependencies that only work with Python 3.8), so this SO post does not answer my question. How do I prevent the OSError: handle is closed error? This happens when returning a result to the main thread.…
adam.hendry
  • 4,458
  • 5
  • 24
  • 51
5
votes
1 answer

Python: os.listdir OSError [Errno 5] Input/output error: 'tmp/json_folder'

Problem: I have one folder(json_folder_large) which holds more than 200, 000 json files inside, another folder(json_folder_small) which holds 10, 000 json files inside. import os lst_file = os.listdir("tmp/json_folder_large") # this returns an…
Mapotofu
  • 268
  • 2
  • 4
  • 15
4
votes
2 answers

How to solve Flutter error while trying to write in a file: "OS Error: Operation not permitted, errno = 1"?

I am trying to write in a .txt file in my flutter program. I am using Permission_handler package and when I run the code (using mi 10) the app ask for permission to access to media and file and I hit allow, and the Debug console says "I/flutter…
afsane
  • 117
  • 3
  • 11
4
votes
2 answers

import torch OSError: [WinError 127]

I'm trying to install torch-gpu. I have installed cuda 11.1 and installed torch via the command pip3 install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio===0.8.1 -f https://download.pytorch.org/whl/torch_stable.html It is so stupid but…
4
votes
1 answer

OSError: [Errno 9] Bad file descriptor using GridSearchCV

I'm having little hard times figure out what's the problem with my code. I'm a newbie in the fabulous world of python, so forgive me for any kind of syntax problem. Thanks to anyone who's gonna spend his time to help me. Here's my…
4
votes
1 answer

Having too many uwsgi OSError messages

Running a Django 3 python 3.6 application with uwsgi & nginx is throwing too many of these! I have been spending way too much time trying to figure it out, so any help is welcome. They are defintely not client disconnections. When looking online I…
dross12
  • 41
  • 4
3
votes
1 answer

torch/lib/libgomp-d22c30c5.so.1: cannot allocate memory in static TLS block

I installed YoloV5 on my jetson nano. I wanted to execute my object detection code when this error appeared: python3.8/site-packages/torch/lib/libgomp-d22c30c5.so.1: cannot allocate memory in static TLS block. To fix the problem I tried to put in…
3
votes
0 answers

OSError running python script stating DLL libjli.dylib can't be found when it actually exists

While running a python script I am hitting this error stating that a DLL (libjli.dylib) can't be found, yet it exists. I am running on MacOS Big Sur version: 11.5.2 (Apple M1). OSError: [Errno 0] JVM DLL not found:…
3
votes
0 answers

Problem with hdbscan used with bertopic: OSError: [Errno 22] Invalid argument

I am writing because I have a problem (silly and obvious introduction, I know). I am trying to use the BERTopic package using the Python interpreter in RStudio and the reticulate extension: Python 3.6.13…
Francis
  • 31
  • 1
3
votes
1 answer

How to solve OSError: [WinError 2] Impossibile finding specified file: 'c:\\python39\\Scripts\\chardetect.exe'

As stated in the title, every time i try to install something via pip, at the end of the installation it gives me an error WARNING: Failed to write executable - trying to use .deleteme logic Rolling back uninstall of chardet Moving to…
Propino
  • 31
  • 1
  • 2
3
votes
0 answers

OSError: file does not exist using ytree

I've got some data I need to load using ytree which can be done via: import ytree a = ytree.load('ctrees.h5') However, doing this gives the following error: OSError: file does not exist: ctrees.h5. With traceback: Traceback (most recent call…
Tyr
  • 53
  • 1
  • 6
3
votes
1 answer

Python: map errno to subclass of OSError

I have a Python 3 program which calls a C function. The C function returns an integer: 0 upon success, or the appropriate errno upon failure. Upon failure, the Python code could simply raise OSError. But I'd rather it raise the appropriate subclass…
Bill Evans at Mariposa
  • 3,590
  • 1
  • 18
  • 22
1
2 3
14 15