Questions tagged [eoserror]

20 questions
14
votes
6 answers

I get "EOS" error with stylus when compiling with grunt-contrib-stylus

I keep getting this weird error message when compiling. Very hard to debug. (By the way: opacity in the example is a mixin) But I'm stuck on > 59| .red { opacity 0.4 } expected "indent", got "eos" I've tried .red { opacity(0.4) } .red {…
Claudiu
  • 3,700
  • 1
  • 38
  • 35
13
votes
2 answers

Possible causes of "EOSError 1400 - Invalid window handle"

I have a problem. I have a VCL application using a thread. This thread does some calculations and calls a MainForm's method through Synchronize(). It all works just fine, I have a "Start" button, which creates and runs the thread and a "Stop" button…
Martin Melka
  • 7,177
  • 16
  • 79
  • 138
6
votes
4 answers

OSError: [WinError 193] %1 is not a valid Win32 application - when trying to import numpy

I can install numpy or pandas, but I can't import them in cmd, jupyter notebook or sublime text. (However, I can install and import them in Pycharm). I've already searched different forums/stackoverflow, seeking for an answer, but the most common…
KamilaW
  • 199
  • 1
  • 1
  • 11
3
votes
4 answers

Tensorboard: OSError: [Errno 22] Invalid argument when trying to run tensorflow from command prompt

Every time I try to run tensorboard using command: tensorboard --logdir=logs/ --host=127.0.0.1 in command prompt after navigating to logs directory I get this error: OSError: [Errno 22] Invalid argument. I am using TensorBoard version 1.13.1 I have…
2
votes
2 answers

OSError: [WinError 6] Wrong descriptor error using Selenium through Python

Can you help me with my code? I want to parse phone numbers, but I need to activate button with tap. But this button is with a tag and this is a problem for me. How can I fix it? from selenium import webdriver from selenium.webdriver.common.keys…
2
votes
1 answer

OSError: PortAudio library not found

I wrote my code in Streamlit and I’ve been using “sounddevice” for my app. I placed sounddevice in my requirements.txt in my github repo and also imported it in my streamlit code. It works well in my local Streamlit. However, I keep on getting this…
emk
  • 21
  • 1
  • 2
2
votes
3 answers

Python: try/except OSerror errno 2

I'm writing a script where the user selects a directory and hits ok. That I've sussed pretty easily, but I'm trying to sort error handling side, but it's not going to plan. Essentially, I want to continue the script unless OSError Errno 2 is…
James Porter
  • 119
  • 2
  • 12
1
vote
0 answers

OSError, Type22Error, and a few other ones that have me stumped

So basically this all stems from a previous question I had, so I'll post that question & my edit in its entirely below: So I have a script I've been working with for a few days trying to get a list of emails from a csv I have, but now I've run into…
1
vote
0 answers

How to handle os.stat() permission issue? (Python 2.7)

I'm trying to create a subdirectory if it doesn't already exist. Here is the relevant portion of my function (TMP is the constant "-InProg"): def create_directories(parent, tmp_dir=""): """ Terminates program if tmp_dir already exists;…
B. Shefter
  • 877
  • 7
  • 19
1
vote
1 answer

"A call to an OS function failed" when loading Windows-1252 XML file

Edit: The error was indeed in the handling; parseError also fails ans reveals the real error; see follow-up question for that error. Old question: Somehow, sometimes the code below generates an exception when loading XML using the msxml unit in…
Jeroen Wiert Pluimers
  • 23,965
  • 9
  • 74
  • 154
0
votes
0 answers

Getting 'OSError: -2' while converting a tif image into jpg image using python

I'm trying to convert tiff images into jpg format and use it later in opencv. It is working fine in my local system but when I am executing it over linux server which is not connected to internet it is getting failed while saving the Image object as…
0
votes
0 answers

Reading gscript file with Colab

Imagine I got some gscript file sitting in my Google Drive in some Test folder. I can see it from Colab like so: from google.colab import drive drive.mount('/content/drive') import os files = os.listdir("drive/My Drive/Test")…
delimiter
  • 745
  • 4
  • 13
0
votes
0 answers

Unkown OSERROR -2 for keras CNN

I have been using keras to train a CNN. Earlier today I was able to train a model fine tuning VGG16 and decided to compare this to a fine tuned VGG19 model. Initially I was getting the "Failed to get convolution algorithm. This is probably because…
cdr
  • 21
  • 1
  • 7
0
votes
0 answers

How do I deal with [Errno 5] Input/output error when reading a csv in Python?

I am currently reading a csv in Python and writing to it. I have it running on an ec2 server but I do the development on my local windows laptop before pushing updates. I recently got the following error:[Errno 5] Input/output error, but it only…
bballboy8
  • 400
  • 6
  • 25
0
votes
0 answers

How to fix "OSError: cannot identify image file"? I am trying to get image size by passing the image url

I am passing url of an image to get its size (height and width) but it seems python is not able to fetch this url. I am using python 3.5 The actual code is:- from urllib.request import urlopen from PIL import Image url =…
1
2