-
Notifications
You must be signed in to change notification settings - Fork 60
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
Error when building Pkg on Julia 1.4 #63
Comments
It says
It looks like you do not have permission to write to Could you try run the following command in your terminal manually?
If it is successful, you can rebuild ADCME using |
Hello! Thank you for the response! The error I showed was not the proper one (my bad I didn't know that I had to also manually remove package files so I had a file /Users/rafaelorozco/.julia/adcme/bin/unzip that I had added manually but didnt contain anything). After clean start,
It seems that there is a file that should be there but isn't. Thank you very much for the help! |
Could you check if |
|
That's strange. It should be installed by ADCME automatically. Or you have an old ADCME installation that interferes with your current version. Could you try either of the two ways:
|
Hello! Thank you for the advice. That was successful. I can now build the package. But now I have a problem when using ADCME:
I also get the recommendation to downgrade to julia 1.3 after running doctor()
If I ignore these warning and try the Parameter Inverse Problem example from the github homepage I get these errors:
Thank you for the ongoing help on this problem! My team and I are excited to use this tool! |
Could you quit Julia and try it again? If it doesn't work, the problem may be because Julia PyCall is not using the Python environment built by ADCME. It happens when you (or some package you installed after ADCME) build PyCall with another Python binary. You can check using ENV["PYTHON"] = `/Users/rafaelorozco/.julia/adcme/bin/python`
using Pkg; Pkg.build("PyCall") Additionally, you get a warning when you start ADCME:
You can fix the problem by Note: Unfortunately, currently it is kind of challenging to use one Python environment for ADCME and another Python environment for your other Julia packages. Hope this is not a problem for you. |
Hello!
does not change the output of In any case, after setting the environment variable and building PyCall then ADCME seems to be trying to use the system wide conda julia:
As you said, ADCME should be using its own python version, so I think I did something wrong here. Also, the precompile command doesnt seem to run well:
Ninja is not present in that folder. I am not married to using this version of Julia. Would it be easier if I just use Julia 1.3? Thank you for the advice! |
I see. It looks like ADCME is not built from the very beginning. I guess you tried the second approach instead of this one
I would suggest you to remove the entire directory Also, remember to quit Julia and let all your changes take effect (e.g., |
Hello! Oh my bad for not saying that I attempted that first approach to no avail. I tried it again just now and it also gives the same errors. I really appreciate the ongoing assistance! |
My bad! It should be (quotation marks!)
|
Hello, this doesn't change any of the behaviors. I still get the same errors when I try to use the package as in this comment:
precompile() also still gives the same error. I also want to mention that a colleague has been trying to install ADCME in tandem with me but on julia 1.5. So far we have been having the same errors. Is ADCME more stable on Julia 1.3? |
Hi Kailai, I am the colleague Rafael mentioned about installing on Julia 1.5. I actually tried both Julia 1.5.0 and 1.4.2 and encountered error in both cases. If I do precompile, it leads to this error. julia> ADCME.precompile()
[ Info: Changed to directory build
CMake Error at CMakeLists.txt:2 (project):
Running
'/Users/francisyin/.julia/adcme/bin/ninja' '--version'
failed with:
No such file or directory
-- Configuring incomplete, errors occurred!
See also "/Users/francisyin/.julia/packages/ADCME/XXrZo/deps/CustomOps/build/CMakeFiles/CMakeOutput.log".
ERROR: failed process: Process(setenv(`/Users/francisyin/.julia/packages/CMake/ULbyn/deps/usr/bin/cmake -G Ninja -DCMAKE_MAKE_PROGRAM=/Users/francisyin/.julia/adcme/bin/ninja -DJULIA=/Applications/Julia-1.4.app/Contents/Resources/julia/bin/julia -DCMAKE_C_COMPILER=/Users/francisyin/.julia/adcme/bin/clang -DCMAKE_CXX_COMPILER=/Users/francisyin/.julia/adcme/bin/clang++ '' /Users/francisyin/.julia/packages/ADCME/XXrZo/deps/CustomOps/`,["XPC_FLAGS=0x0", "_CE_M=", "PATH=/opt/anaconda3/bin:/opt/anaconda3/condabin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin", "CONDA_PROMPT_MODIFIER=(base) ", "PWD=/Users/francisyin", "HDF5_USE_FILE_LOCKING=FALSE", "XPC_SERVICE_NAME=0", "TERM_PROGRAM=Apple_Terminal", "CONDA_PYTHON_EXE=/opt/anaconda3/bin/python", "SHELL=/bin/zsh" … "SECURITYSESSIONID=186a9", "USER=francisyin", "CONDA_SHLVL=1", "MPLBACKEND=qt5agg", "CONDA_EXE=/opt/anaconda3/bin/conda", "TERM=xterm-256color", "HOME=/Users/francisyin", "TERM_PROGRAM_VERSION=433", "DEVITO_ARCH=gcc-8", "OPENBLAS_MAIN_FREE=1"]), ProcessExited(1)) [1]
Stacktrace:
[1] pipeline_error at ./process.jl:525 [inlined]
[2] run(::Cmd; wait::Bool) at ./process.jl:440
[3] run at ./process.jl:438 [inlined]
[4] cmake(::String; CMAKE_ARGS::String) at /Users/francisyin/.julia/packages/ADCME/XXrZo/src/extra.jl:73
[5] cmake at /Users/francisyin/.julia/packages/ADCME/XXrZo/src/extra.jl:52 [inlined] (repeats 2 times)
[6] #240 at /Users/francisyin/.julia/packages/ADCME/XXrZo/src/extra.jl:331 [inlined]
[7] require_cmakecache(::ADCME.var"#240#242", ::String) at /Users/francisyin/.julia/packages/ADCME/XXrZo/src/toolchain.jl:342
[8] require_cmakecache at /Users/francisyin/.julia/packages/ADCME/XXrZo/src/toolchain.jl:320 [inlined]
[9] precompile(::Bool) at /Users/francisyin/.julia/packages/ADCME/XXrZo/src/extra.jl:330
[10] precompile() at /Users/francisyin/.julia/packages/ADCME/XXrZo/src/extra.jl:318
[11] top-level scope at REPL[2]:1 Really appreciate your help! Francis |
I tried to reproduce your problem but cannot. Maybe we can schedule an online meeting to resolve the problem? Could you send me an email if you wish? kailaix at hotmail dot com |
Hello! I'm trying to run Pkg.add('ADCME') on windows, but I get some error WARNING: Method definition length(PyCall.PyObject) in module PyCall at C:\Users\92463.julia\packages\PyCall\BD546\src\PyCall.jl:811 overwritten in module ADCME at C:\Users\92463.julia\packages\ADCME\hCmEo\src\variable.jl:238. WARNING: Method definition lastindex(PyCall.PyObject) in module PyCall at deprecated.jl:70 overwritten in module ADCME at C:\Users\92463.julia\packages\ADCME\hCmEo\src\variable.jl:454. WARNING: Method definition *(PyCall.PyObject, PyCall.PyObject) in module PyCall at C:\Users\92463.julia\packages\PyCall\BD546\src\pyoperators.jl:11 overwritten in module ADCME at C:\Users\92463.julia\packages\ADCME\hCmEo\src\ops.jl:102. ┌ Warning: Cannot load C:\Users\92463.julia\packages\ADCME\hCmEo\deps\CustomOps\build\adcme.dll. Please recompile the shared library by Could you help me with this? Thank you very much |
Hello! I am trying to install the package using Julia Version 1.4.2 (2020-05-23). (on mac)
Pkg.add("ADCME")
ran succesfully but after trying to dousing ADCME
I get an error saying that I need to build the package:The error I get during building seems to be about a unzip tool that isnt found in the proper place. Could you help me with this?
Thank you very much for your attention on this!
The text was updated successfully, but these errors were encountered: