Questions tagged [invalid-argument]

263 questions
92
votes
16 answers

GIT pull failed: 'unable to unlink file: invalid argument'

New GIT user here, managing a Moodle course web site system on a Windows server. Trying to do my first Pull update of the core code (using TortoiseGit) and it's not working. Git is unable to unlink old versions of any the 200+ files to be updated…
pillsbur
  • 921
  • 1
  • 6
  • 3
11
votes
2 answers

window.open error only in IE - Invalid argument

I have a simple calendar popup window come up when a date on the calendar is clicked. The code below works in Opera, FF and Chrome but not in IE6-8. It comes up with the Error on Page at the bottom and shows the error invalid argument.
Chris Bornhoft
  • 4,195
  • 4
  • 37
  • 55
8
votes
1 answer

Python -How to solve OSError: [Errno 22] Invalid argument

I am learning about file objects in python but whenever i try to open file it shows the following error. I have already checked that file is in same directory and it exists this error occurs only if i name my file as test if i use any other name…
Tanishq Trivedi
  • 101
  • 1
  • 1
  • 7
7
votes
2 answers

Write error: Invalid argument, when file is opened with O_DIRECT

it is very important to me to write to a file with the O_DIRECT flag. This is how I open the file: //Open the file int fd; if((fd = open(inFilepath, O_WRONLY | O_CREAT |O_SYNC |O_DIRECT,S_IRUSR|S_IWUSR))<0) { //Error handling return; } I…
LoneDuck
  • 1,852
  • 1
  • 21
  • 28
6
votes
4 answers

tensorflow.python.framework.errors_impl.InvalidArgumentError: Invalid argument: assertion failed:

While training using TensorFlow Object Detection API from Google Colab I got the following error (There are two similar errors in the following verbose..one of them is in the end of it): WARNING:tensorflow:Forced number of epochs for all eval…
hafiz031
  • 2,236
  • 3
  • 26
  • 48
6
votes
0 answers

Invalid Procedure Call or argument with hyperlink

I am trying to automatically add hyperlink and increment each time a new hyperlink is added. However, I am getting in my vba script of hyperlink : "invalid procedure call or argument error" I am getting error at end of code from…
vinit
  • 85
  • 9
6
votes
1 answer

pyPdf error invalid argument

I'm actually using pyPdf to open, read and write the content of a PDF file. for that I use these lines of code : from pyPdf import PdfFileWriter, PdfFileReader pdf = PdfFileReader(file("/myPdfFile.pdf", "w+b")) content =…
kschaeffler
  • 4,083
  • 7
  • 33
  • 41
5
votes
0 answers

InvalidArgumentError: assertion failed: [Labels must be <= n_classes - 1] [Condition x <= y did not hold element-wise:] [x (head/losses/Cast:0) = ]

I've been trying to implement this ML Linear Model into my dataset. (https://www.tensorflow.org/tutorials/estimator/linear) Language: Python 3.8.3 Lİbraries: TensorFlow 2.4.0 Numpy: 1.19.3 Pandas Matplotliband the others: import os import…
Tevfik Sastım
  • 31
  • 1
  • 12
5
votes
1 answer

Tensorflow issue with GPU on matmul. GPU isn't recognized

I installed tensorflow with gpu, cuda 7.0 and cudnn 6.5. When I import tensorflow it works well. I am trying to run a simple matrix multiplication on Tensorflow and it doesn't want to use my gpu though it seems to recognize it. I have this issue on…
4
votes
4 answers

Need help with simple powershell command copy using foreach

I'm new to powershell and this question will prove that point. I'm trying a simple task from the command line where I have a txt file containing filenames separated by semicolons like... fnameA.ext;fnameB.ext;fnameC.ext;.... I'm trying to run a…
Dave
  • 6,141
  • 2
  • 38
  • 65
4
votes
1 answer

Perl IO::Socket::INET confusing "Invalid argument" error

Consider the following snippet of a Perl script: use IO::Socket; # ... my $sock = IO::Socket::INET->new( PeerAddr => $host, # e.g. "google.com" PeerPort => $port, # e.g. 80 Proto => 'tcp' ); die("no socket: $!") unless $sock; #…
maerics
  • 151,642
  • 46
  • 269
  • 291
3
votes
1 answer

Trouble saving file in SD card with special characters in filename

My application has a function to save file on SD card. Following is my code to save the file try { File mediaDir = new File( Environment.getExternalStorageDirectory(), "Media"); if (!mediaDir.exists()) { …
PH7
  • 3,926
  • 3
  • 24
  • 29
3
votes
1 answer

SignalR Hub Connection Error With Flutter

I am unable to invoke my hub method in my asp.net core backend , this is my CommentHub in flutter: import 'package:signalr_client/signalr_client.dart'; import 'package:logging/logging.dart'; import 'package:xperience/models/global.dart'; final…
DCodes
  • 789
  • 1
  • 11
  • 27
3
votes
1 answer

`ioctl` to read and write GPIO: invalid argument

I'm imitating the gpio-hammer example in Linux source code. I'm using Raspberry Pi 3B+ and want an LED to blink. Here's what I do: #include #include #include #include #include #include…
3
votes
0 answers

Error:java: invalid flag: --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED

Information:java: Errors occurred while compiling module 'WarrantySystem' Information:javac 1.8.0_201 was used to compile java sources Information:2/21/2019 6:16 PM - Compilation completed with 1 error and 0 warnings in 1 s 846 ms Error:java:…
1
2 3
17 18