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
"file could not be opened" error when running brewcolordb, replace #45
Comments
@jdmarvel can you confirm your ADOPATH variables? On the Non-*nix OS machine that I have at work it looks like: . adopath
[1] (BASE) "C:\Program Files (x86)\Stata14\ado\base/"
[2] (SITE) "C:\Program Files (x86)\Stata14\ado\site/"
[3] "."
[4] (PERSONAL) "c:\ado\personal/"
[5] (PLUS) "c:\ado\plus/"
[6] (OLDPLACE) "c:\ado/" If nothing else you should be able to use: ! rm -r "/Users/johnmarvel/Library/Application Support/Stata/ado/personal/brewcolors" To erase the existing directory and then the command should execute without a problem. |
@wbuchanan my ADOPATH variables are shown below (I'm on a Mac with OS X Yosemite):
I ran the command you suggested above in the terminal, but get the message that no such file or directory exists. All brewscheme files are located in my /plus directory. |
I'm having difficulty replicating the issue you're running into. I just deleted all of the files/directories/subdirectories from my adopath and was able to install without fault: . about
Stata/MP 14.1 for Mac (64-bit Intel)
Revision 30 Mar 2016
Copyright 1985-2015 StataCorp LP
Total physical memory: 16.00 GB
Single-user 8-core Stata perpetual license:
Serial number: XXXXXXXXXXXXXX
Licensed to: William Buchanan
. di `"`c(os)'"'
MacOSX
. adopath
[1] (BASE) "/Applications/Stata/ado/base/"
[2] (SITE) "/Applications/Stata/ado/site/"
[3] "."
[4] (PERSONAL) "~/Library/Application Support/Stata/ado/personal/"
[5] (PLUS) "~/Library/Application Support/Stata/ado/plus/"
[6] (OLDPLACE) "~/ado/"
. ado, find(brewscheme)
. net inst brewscheme, from("http://wbuchanan.github.io/brewscheme/")
checking brewscheme consistency and verifying not already installed...
installing into /Users/billy/Library/Application Support/Stata/ado/plus/...
installation complete.
. brewcolordb, rep over
(142 real changes made) |
weird. I replicated your sequence of commands from above (after deleting all files etc.) and still get the "file could not be opened" message.
I'll try it on my work computer tomorrow to see if that makes a difference. Thanks for your help. |
Perhaps it is a file permissions issue? Do you have read/write permissions in the PERSONAL directory on the ADOPATH? The commands create several different files that all get placed there and others have had similar issues with file permissions on other platforms. |
I checked into that and it doesn't appear to be the case. I navigated to my user folder, right clicked, selected "Get Info", and confirmed that the PERSONAL director has read/write permission. |
@jdmarvel have you had any luck with things since earlier this week? Another way you can check the file permission for the personal/plus ado paths is: ! ls -lah "/Users/johnmarvel/Library/Application Support/Stata/ado" It will show the subdirectories in /Users/johnmarvel/Library/Application Support/Stata/ado and will list the permissions for each file/subdirectory that is found. The only other thing I can think of is perhaps that "/Users/johnmarvel/Library/Application Support/Stata/ado/personal/" doesn't exist at the moment (e.g., the location is defined in the macros used by Stata, but some times this directory doesn't exist on the users' computer). |
@wbuchanan thanks for checking in. Your second thought was right. the /personal directory did not exist. I created it and things now work fine. Thanks very much for your help. |
@jdmarvel awesome! Glad to hear everything worked out well. Knowing that was the issue I'll try to add something that will check for that directory before doing anything else. This way it hopefully won't affect anyone else. The should be an updated version (what you already installed from the project page) available from the SSC archives in the not too distant future as well. Thanks again |
… create the PERSONAL directory on the ADOPATH if it does not exist prior to attempting to build the local files used by brewscheme.
The text was updated successfully, but these errors were encountered: