-
Notifications
You must be signed in to change notification settings - Fork 31
Installation Issues
Here we capture issues that people have had when installing and running PSyclone in case it helps others.
If you get a message like the following when running the psyclone script:
PSyclone configuration error: psyclone.cfg not found in any of ['/home/rupert/proj/PSyclone/examples/lfric/eg3/.psyclone', '/home/rupert/.local/share/psyclone', '/usr/share/psyclone']
then you have probably installed PSyclone in a non-standard location or used a live install (using pip -e ...). If so the psyclone.cfg configuration file will not be found in the standard Python paths. To solve this you first need to find the file. For a non-standard installation location the file will be in the installation location under share/psyclone. For a live install the file will be in the config directory in the local PSyclone source code. Once you have found the file, the simplest solution is to set the PSYCLONE_CONFIG environment variable to point to this file e.g. export PSYCLONE_CONFIG=/home/userx/psyclone/config/psyclone.cfg.
-
If both Python 2 and 3 are installed then you might need to explicitly call the correct version of pip. The particular problem was that
pip installdefaulted to Python 2 whereas the default Python environment was Python 3. Usingpip3resolved the issue. -
Depending on the system setup, a local install of PSyclone using pip might not add example and tutorial directories. if this is an issue, a workaround is to use
python setup.py installinstead. This is captured in issue #861.