-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
question about localDBConn arguments / error in guess_header #55
Comments
Your option 2 is the correct one. Even though the database is structured as a folder on the disk, it is logically a single "database file". As to the error you are getting, I've not seen it before. From what I can tell, it's an error that Windows produces when there's a problem with the filesystem. See, for example the answers here: |
Thanks for the clarification! I got it working. |
I am also experiencing exactly the same problem. How did you resolve this? |
Hi, |
Hi, I'm really sorry but now I can't remember how I resolved this. I think it might have been that I was mis-specifying the path to the directory, but I'm not sure. Make sure you give it the full path to the output directory |
@Silviameteoro could you tell me what version of the |
@rplzzz, note the error really doesn't have anything to do with readr (see #50; I've fixed the issue in readr which produces the message and I assume will be included the next release). The real error is it is unable to open the database for whatever reason. I think we will need more details from the users including the exact commands they have tried. |
@rplzzz @pralitp @Silviameteoro So basically we are runningthe localDBConn command with a database path and the database name and we get the error being discussed here: rgcam::localDBConn(gcamdatabasePath_i,gcamdatabaseName_i) Error in guess_header_(datasource, tokenizer, locale) : Cannot read file C:/Users/sant073/AppData/Local/Temp/RtmpWKBvlu/file20dc727515e4: The volume for a file has been externally altered so that the opened file is no longer valid. Some notes to summarize what we have tried so far:
|
@pralitp Maybe a failure in trying to run the query then? Would it be worth turning on the option to capture the model interface's console output? |
Maybe, although the simple query we run to test if the |
Hi @rplzzz, The rgcam version I have installed is 1.0.0. |
I wonder if this was related to #68: basically the value for the maximum memory set inside of the package is greater than your system can provide (possibly due to a 32-bit version of Java) We've just fixed that issue by allowing users to explicitly set the max memory. Perhaps try updating to the latest version (1.1.0) and setting the max memory value at 1 GB: |
Just throwing my two cents on the problem: it might be because the path is too long, or the folder to the database is sync-ed on cloud. I was experiencing the same issue, and it disappeared after I copied the whole GCAM directory out of my OneDrive sync-ed folder into C:/user/admin/Documents/ |
I think the trick is that the working dictionary has to be different than the |
In my case, db_conn <- localDBConn("D:/GCAM/gcam-core-gcam-v5.1.3/output", "database_basexdb") the first one works well, the second one fails (with the same error in guess_header_). |
I'm using GCAM for the first time and would like to use rgcam to further analyze the results. I think I'm just confused about what the arguments to
localDBConn
are supposed to be, so hopefully this is an easy question!I've run the reference GCAM configuration, as well as the five SSP scenarios, and I am able to view the results using the GCAM ModelInterface. In the default setup, a folder "output/database_basexdb" was created containing several basex files. When I use the GCAM ModelInterface, I select the whole folder "output/database_basexdb" in order to view the results.
But when trying to use rgacm, I'm having trouble with the
localDBConn
call. I'm not sure what I'm supposed to be providing asdbPath
anddbFile
. I've tried the following (where the provided path is the same that works for ModelInterface).My error in both cases is the following:
This seems like there might be something else wrong with my R setup, but even if that's the case, my question about
dbPath
anddbFile
still stands! Thanks in advance for any help!The text was updated successfully, but these errors were encountered: