Troubleshooting
Last updated
All page cover images on this wiki are created with the help of DALL-E, an AI program developed by OpenAI, or stock images from Unsplash.
Last updated
Welcome to the troubleshooting page for pyspi. This section is dedicated to helping you resolve common issues and challenges you might encounter while installing our package. Here, we provide detailed solutions and guidance for a variety of scenarios that new users may face. Our aim is to make your experience with pyspi as smooth and efficient as possible.
Please note that this document is continually updated with new information and solutions. If you encounter a problem that is not covered in this documentation, we encourage you to raise an issue on our GitHub repository. Your feedback is invaluable to us, and we will gladly incorporate new resolutions and updates into this documentation to assist others. We are committed to maintaining a comprehensive and user-friendly troubleshooting guide.
We have sorted the troubleshooting guide by operating system. Select your operating system to receive relevant troubleshooting advice.
If you are using Windows and you get an error that pyspi cannot locate your system's Octave and/or Java paths, you can manually set these paths prior to importing pyspi:
Thank you to GitHub user rmzargar for reporting this issue and providing the solution.
A few users have reported encountering this issue during the installation process (particularly those on Windows OS). This appears to be related to a compatibility conflict between Python version 3.9.0 and sktime version 0.8.0. The current workaround is to re-install pyspi (either in a new conda environment or on your system) using python-3.8.0:
You can fix this error by manually removing numpy and pandas, and manually reinstalling the below versions with the following code:
Thank you to GitHub user rmzargar for reporting this issue and providing the solution.
This issue is similar to those reported here and here; it can arise from the version of OpenJDK identified as the system default. Some Java versions don't include all of the binary (DLL) files that pyspi looks for. We recommend following this helpful tutorial by Chamika Kasun to install AdoptOpenJDK. In a nutshell, here are the steps you should follow:
Install homebrew if you haven't already
Install jenv as your Java version manager
Add jenv to your shell's configuration file (e.g. .bashrc if you use bash, .zshrc if you use zsh)
Source your shell's configuration file:
Confirm proper installation of jenv
Even if this returns some errors, as long as you see jenv is correctly loaded, you're all set. We recommend using AdoptOpenJDK version 11. Note that AdoptOpenJDK has recently transitioned to Eclipse Adoptium, but in some cases, the Adoptium versions might not resolve specific issues. We suggest downloading an older version of AdoptOpenJDK. Here's how you can proceed:
Go to the AdoptOpenJDK GitHub releases page.
Look for the version of AdoptOpenJDK for your OS. For Apple Silicon (M1/M2), the OpenJDK11U-jdk_x64_mac_hotspot_11.0.9.1_1.pkg, while not specifically designed for the Apple ARM architecture, has been found to resolve certain issues.
Follow the installation instructions for your specific operating system to install the JDK. Make note of the location in which the JDK was installed.
Now you will need to add your AdoptOpenJDK path to your jenv environments. First, you can find where your jdk files are installed with the following command:
This will list all your installed java JDK versions. Locate the one for AdoptOpenJDK version 11 and paste the path:
Confirm AdoptOpenJDK version 11 was added to jenv:
You can set AdoptOpenJDK version 11 as your global Java version with the following:
You can fix this error by manually removing numpy and pandas, and manually reinstalling the below versions with the following code:
Some operating systems/pip versions may be unable to locate pyEDM. In this case, the workaround is to download and install the wheel locally as follows:
Download the wheel file (.whl) from the pyEDM repository for version 1.9.3 (one of the two Linux versions depending on whether you are running i686 or x86_64 architecture).
Install the wheel
package if you don't have it already using pip install wheel.
Navigate in your terminal to where you've downloaded the wheel file.
Install the wheel file directly with the command pip install [file.whl]
. For example, that might look like pip install pyEDM-1.9.3.0-cp39-cp39-manylinux2010_x86_64.whl
.