Questions tagged [invalid-argument]

225 questions
52
votes
9 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
  • 521
  • 1
  • 4
  • 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
  • 3,775
  • 4
  • 34
  • 54
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
  • 3,663
  • 7
  • 29
  • 41
5
votes
1 answer

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…
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…
5
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
  • 75
  • 8
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
  • 133,300
  • 39
  • 246
  • 273
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,806
  • 2
  • 20
  • 28
3
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
  • 5,913
  • 2
  • 36
  • 63
3
votes
2 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…
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:…
3
votes
0 answers

invalid_argument when calling FireBase notification send API with Google Playground

When trying to use the FireBase notification API from Google Playground, "invalid_argument" is returned with a bad request (400) response. Has anyone already faced this issue ? POST /v1/projects/project-XXXXX/messages:send HTTP/1.1 Host:…
3
votes
0 answers

python 3 file.close() Errorno 22 - accessing compact flash card

I am using python to directly access the bytes written on a compact flash card. With windows (the OS I am currently using) a drive can be accessed directly by adding a '\\\\.\\' (\\.\ when printed) before the drive name. The result is a string…
Nuclear_Man_D
  • 114
  • 10
3
votes
5 answers

IE8 gives error "Invalid argument" when using prototype.js, how do I find where the error is?

I have a fairly complex piece of Javascript that works flawlessly with no errors in Google Chrome, Firefox, Safari, and Opera. However, as tends to always be the endlessly annoying case, it completely fails in Internet Explorer. I have tested in…
James Simpson
  • 12,799
  • 25
  • 71
  • 104
3
votes
1 answer

Is it possible that CUDA's memcpy(dst, src, 0) writes to *dst?

I have some kernel code which calls memcpy(my_dst, my_src, my_num_bytes) - and sometimes I have my_num_bytes equal to 0. Strangely enough, some sporadic experimentation (with Titan X, CUDA 7.5, driver 358.16) suggests data does get written into the…
einpoklum
  • 86,754
  • 39
  • 223
  • 453
1
2 3
14 15