raven icon indicating copy to clipboard operation
raven copied to clipboard

Installation Issue: Installing Python libraries

Open stephen-hills opened this issue 4 years ago • 5 comments


Issue Description While following the instructions for installationWindowsNew, I had a problem during the third step. When on the step using the code: bash.exe scripts\establish_conda_env.sh --install --conda-defs <yourCondaDefsLocation> (where <yourCondaDefsLocation> is the replaced by my location) it is unable to find the conda environment: raven_libraries. It says a couple of times that permission is denied.

What did you expect to see happen?

I expected raven_libraries to be found and installed.

What did you see instead?

Unable to find the conda environment: raven_libraries. It says a couple of times that permission is denied. See the picture below for the output. image

Do you have a suggested fix for the development team?

No

Please attach the input file(s) that generate this error. The simpler the input, the faster we can find the issue.

For Change Control Board: Issue Review

This review should occur before any development is performed as a response to this issue.

  • [ ] 1. Is it tagged with a type: defect or task?
  • [ ] 2. Is it tagged with a priority: critical, normal or minor?
  • [ ] 3. If it will impact requirements or requirements tests, is it tagged with requirements?
  • [ ] 4. If it is a defect, can it cause wrong results for users? If so an email needs to be sent to the users.
  • [ ] 5. Is a rationale provided? (Such as explaining why the improvement is needed or why current code is wrong.)

For Change Control Board: Issue Closure

This review should occur when the issue is imminently going to be closed.

  • [ ] 1. If the issue is a defect, is the defect fixed?
  • [ ] 2. If the issue is a defect, is the defect tested for in the regression test system? (If not explain why not.)
  • [ ] 3. If the issue can impact users, has an email to the users group been written (the email should specify if the defect impacts stable or master)?
  • [ ] 4. If the issue is a defect, does it impact the latest release branch? If yes, is there any issue tagged with release (create if needed)?
  • [ ] 5. If the issue is being closed without a pull request, has an explanation of why it is being closed been provided?

stephen-hills avatar Jun 04 '20 15:06 stephen-hills

@joshua-cogliati-inl Any suggestion on this issue? I think we do not see this issue recently, and I guess it is not raven related issue, but an issue with respect to the users right on their system.

wangcj05 avatar Jul 08 '22 00:07 wangcj05

@wangcj05 I tried running this in various shell environments. Here is what I found:

The user that posted this issue was using the Windows Command Prompt. When I try running a very similar command I get the following error: cmd

When I try running a similar command in Windows PowerShell, I get the same error: powershell

When running in GitBash, the script successfully runs.

Part of the problem is that bash scripts do not work very well on Windows in general. I have not been able to get other bash scripts to work using Command Prompt. I am not as familiar with PowerShell, but in theory, it should be able to handle Unix style bash scripts. I have had success using GitBash to run the bash scripts in RAVEN. Maybe we should change the documentation/wiki to tell the users to use GitBash when running RAVEN on Windows?

dgarrett622 avatar Jul 11 '22 15:07 dgarrett622

@dgarrett622 Thanks for the update. It seems we have a different issue from the original one. Let's update our wiki first, and then we can try to fix the issue using command prompt and Windows PowerShell.

wangcj05 avatar Jul 12 '22 21:07 wangcj05

Hm, from the error message, it looks like there is a non-conda version of Python on the system, that is giving a permission error.

joshua-cogliati-inl avatar Jul 18 '22 14:07 joshua-cogliati-inl

Looking at the script, it should be doing source ${CONDA_DEFS} before trying to run python, so I am not sure how we could actually fix it if it is still finding the wrong python after that.

joshua-cogliati-inl avatar Jul 19 '22 14:07 joshua-cogliati-inl

Please let us know if you still have the issue. @stephen-hills

wangcj05 avatar Nov 18 '22 20:11 wangcj05