I'm running Octave 4.0.1 on windows 7 and I'm having this weird issue.
I created a functioning script which is saved under C:/User/Documents/Octave. This script also reads some files in a subfolder of this same location.
The problem is : my script correctly runs TWICE then I have the error "no such file" saying the software did not find my script (the same one I just ran). The only "solution" I have is restarting the whole software but then it still goes nuts on the third run.
In addition to that, my coworker tried it on an ubuntu machine and it seemed to work fine. Do somebody see an explanation?
Thanks
Here is the script :
data = [];
figure();
for i=1:200
filename = strcat('C:/Users/Utilisateur/Documents/Octave/data/DAQ_data_decoded_', num2str(1800+i))
d=lvm_import(filename);
data=[data d.Segment1.data(:,2)];
end;
data=reshape(data,6600,1);
hist(data);
The function lvm_import is a function I found on the web to extract data from a Labview data file. (d.Segment1.data(:,2) is a 33x1 array)
And the error message :
>> daqDataHist
error: no such file, 'C:\Users\Utilisateur\Documents\Octave\daqDataHist.m'
So I still don't really know what was going on but by adding fclose all at the end of the script I got rid of any error and can run the file as many times as I want. It was probably something going wrong with opening and closing the .lvm files and it "jammed" at some point.
Thanks anyway :)
Related
I am trying to run a script to import data into MySQL. When I tried, this error shown up. I have searched for a workaround but none is helping. I deleted all the related .cnf file in the said path after a few attempts on trying to run the script but it kept on creating a new one. I have no other means of importing the data besides running that script. Terribly sorry if I somehow really ask a silly question about this but I am new with SQL, stuck and need help on the matter. Thanks in advance.
i have the same error as you, I've manage to solve it on my end by following these steps:
Rather than doing "run sql script", do "open sql script"
After the script open, Execute all (the lightning btn beside the save icon)
Hope this will work for you too!
I ran into this problem as well and, like #Alexandre-St-Amant, the size of my script prohibited opening the script as #vika suggests.
Before noticing #Kwaadpepper's suggestion, I tried using connecting to my database through mysqlsh.exe, then used SOURCE <data_file>. This has the added benefit of allowing linked scripts using SOURCE, solving #Adrian-Moldovan's issue.
Of course, this does not use mysql-workbench to solve the problem.
I had same problem with my sql script.
You may try reinstall the client and workbench. You should follow one version of applications. After that actions my script has worked.
My sql file was really big and I was not able to copy the contents or load the file. Instead, do this :
Server' -> 'Data Import
Dump the data from sql file from here. This worked for me.
i am running a long matlab script and it should run when i am not around.
part of the script cleans up previous created folder structures (temp data).
rmdir('dir','s');
however matlabs rmdir will ask me the following:
remove entire contents of dir? (yes or now)
and i need to supply either yes or no to proceed.
i tried piping
pipe(printf('yes'),rmdir('dir','s'));
and other things but nothing works so far.
Problem
how do i autoconfirm with 'yes' to 'rmdir' so my script will not get stopped because of this issue?m
Using confirm_recursive_rmdir you can turn this question on or off. This is a feature of octave, matlab never asks to confirm rmdir
confirm_recursive_rmdir(0) will do the trick
Question:
Does anyone else experience this problem? And if so, what is the solution or my best course of action?
Problem Statement:
Libraries Fatal Flaw: "Library with identifier FOO is missing (perhaps it was deleted?)" + "We're sorry, a server error occurred. Please wait a bit and try again."
Please provide a short description of the issue:
Running any function in my GAS project results in the following error message:
"Library with identifier FOO is missing (perhaps it was deleted?)"
If I try to make any changes to my libraries (under the Resources tab) including:
updating the library FOO to the latest version,updating a second library (let's call it BAR) to the latest versionupdating FOO or BAR to any other versionsdeleting FOO or BAR completely orturning off development mode for FOO or BAR (which are currently in development mode).
In short, any change to the library resources are met with the following error message:
"We're sorry, a server error occurred. Please wait a bit and try again."
I first observed this error message today.I have never seen this problem before since I started this project at least two years ago or more.
Please provide a small sample script that reliably reproduces the issue.
The sample should run as-is or with minimal setup, without external
dependencies.
function test(){Logger.log("A")}
What steps will reproduce the problem?
Delete all code in my project.
Copy and paste the above function named "test" into a script file in my project.
Attempt to run the above function named "test."
After attempting to run "test" and seeing the error message: "Library with identifier FOO is missing (perhaps it was deleted?)," open Resources > Libraries.
Attempt to update FOO to it's most recent version. Or make any change to any of the libraries.
What is the expected output?
After running the function "test" I expect to see that it has successfully completed and the logger reads "A."
After trying to update the libraries, I expect to see the new library version in the dialogue box.
What do you see instead?
I see the error message: "Library with identifier FOO is missing (perhaps it was deleted?)"
I see the error message: "We're sorry, a server error occurred. Please wait a bit and try again."
Please provide any additional information below.
I have created a new project (let's call it B), copied and pasted all the code from the problem project (let's call it A) to B and successfully integrated the FOO and BAR libraries (latest versions) into B. After doing so, B runs fine without any error. The problem is that all my scriptDB data is still stored in A. Without being able to run any functions from A, I can not export any of my data from A. Otherwise, I would attempt a "messy" workaround such as restarting with B and updating all my (3rd party) calls to A with calls to B, for example.
Summary from comments:
Per #SoftwareTester:
I also experience this problem. I created a new file, copied all my code, provided a new name the lib (so instead of 'var a = AAA.myFunction' I now use 'var a = BBBBBB.myfunction'), changed every name of function, variable and text into BBBBBB. But still I could not run my (short and easy) testscript because of the missing library. I noticed that I deleted an old version (version 1) of the library by accident. Maybe that created the problem. I can imagine that because of the versioning system (keeping track of every code changes) old code reffering to the deleted version-1 causes the problem.
My laptop crashed this morning after which the wampmanager.ini was corrupted. I found out how to resolve that by pasting in a replacement and ensuring that this line pointed to the correct directories:
Action: run; FileName: “c:/wamp/bin/php/php5.4.3/php-win.exe”;Parameters: “refresh.php”;WorkingDir: “c:/wamp/scripts”; Flags: waituntilterminated
However, I still get an error "Exception Eception in module wampmanager.exe at 000F15A0. Could not execute run action: The directory name is invalid.
I have check: “c:/wamp/bin/php/php5.4.3/php-win.exe” and “c:/wamp/scripts”. I even pasted them into the address line at the top of the page to make sure and they were found.
What are my options please?
Can I run a repair?
Is it just quicker to reinstall?
If I reinstall which directories do I need to copy in order to save my database?
I do not know much about this so if you can be specific please that would be very much appreciated (e.g., full file paths where possible).
Thanks,
Glyn
I have found this:
http://forum.wampserver.com/read.php?2,71125,printview,page=1
https://superuser.com/questions/373255/wamp-not-working-on-windows-7-64bit
Now I need to work out whether I am using WampServer 32 bit or 64 bit. How do I do this please?
You are nearly there, wampmanager.ini is recreated every time you run wamp. What you actually need is an uncorrupted wampmanager.tpl.
If you have a backup, replace the wampmanager.tpl file in \wamp
SECOND ANSWER:
You could try this.
Rename the old wamp folder.
Install WAMP again, using the same version of wamp Apache,MySQL.
Copy your database's from old location to new location + any website code.
That should get you back to where you were roughly.
In my case it happenned because I moved by mistake folder "scripts" from "C:\wamp" to "C:\wamp\tmp". I put it back and it works now.
I found this soltion looking in "wampmanager.ini" (section [StartupAction]) the directories expected to find, and I saw that "scripts" was missing.
I had a script that used the find method of the folder class and it has worked fine for quite a while. Suddenly today it stopped working. I get the 'We're sorry, a server error occured. Please wait a bit and try again' message. It stopped working this morning.
I was able to recreate this error with just a few lines of code in new small script.
function myFunction() {
folder = DocsList.getFolder('test');
folder.find('testfile');
Logger.log('anything');
}
I made sure I had a folder called test and a file called testfile inside of it.
Any ideas why I am getting this error?
Thank you.
This has been recently reported as an issue -
https://code.google.com/p/google-apps-script-issues/issues/detail?id=2482
Please star it so that you can get notified of updates.