Configuration file not found after installing with root privileges

Open
#997 8 comments 0 reactions 4 assignees View on GitHub

@TeranIvy is already working on this.

Since Nov 24, 2020.

Assessment

This issue has not been assessed yet.

Description

bug question

During the tutorial there were two cases identified where we fail to find the installed PSyclone configuration file:

  1. PSyclone installed using root privileges under WSL2
  2. PSyclone installed in a Singularity container built with root privileges

In case 1., the config file is installed to /usr/local/share/psyclone/psyclone.cfg and PSyclone does not look there:

ConfigurationError: "PSyclone configuration error: psyclone.cfg not found in any of ['/mnt/c/Users/USERNAME/Projects/PSyclone/tutorial/notebooks/psyir/.psyclone', '/root/.local/share/psyclone', '/usr/share/psyclone']
Dominant language
Python
Stars
137
Forks
36
Avg merge
6d 16h
Merged PRs (30d)
18

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stfc/PSyclone

All issues in stfc/PSyclone

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.