SimpleFOCStudio Fresh Install Error


I’m following the installation setup for SimpleFOCStudio on WIndows 10 and I believe the instructions are possibly out of date.

Basically I run though the instructions found in the link below and are unable to successfully run SimpleFOC Studio

Guide Link:

I’ll include a step by step guide of what I’ve done.

  1. Install of Anaconda3-2021.11

  2. Open anaconda prompt
    Type : conda create -n simplefoc python=3.6.0
    Results in the following error: PackagesNotFoundError: The following packages are not available from current channels: - python=3.6.0
    If you type Type : conda create -n simplefoc python=3.6
    Python 3.6.13 will install.

  3. Steps 2 to 3 work fine but step 4 work has an issue.

pip install -r "requirements.txt"
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
spyder 5.1.5 requires pyqtwebengine<5.13, which is not installed.
spyder 5.1.5 requires pyqt5<5.13, but you have pyqt5 5.15.2 which is incompatible.
  1. Launch Error
    Using the following command in the SimpleFOCStudio folder
conda activate simplefoc



The program is unable to load. Here is the error message:

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "", line 8, in <module>
    from src.gui.mainWindow import UserInteractionMainWindow
  File "C:\Users\xxx\Documents\SimpleFOCStudio\src\gui\", line 6, in <module>
    from src.gui.workAreaTabbedWidget import WorkAreaTabbedWidget
  File "C:\Users\xxx\Documents\SimpleFOCStudio\src\gui\", line 10, in <module>
    from src.gui.configtool.minimalCodeDisplay import MinimalCodeDisplay
  File "C:\Users\xxx\Documents\SimpleFOCStudio\src\gui\configtool\", line 241, in <module>
    from git import Repo
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\git\", line 89, in <module>
    raise ImportError('Failed to initialize: {0}'.format(exc)) from exc
ImportError: Failed to initialize: Bad git executable.
The git executable must be specified in one of the following ways:
    - be included in your $PATH
    - explicitly set via git.refresh()

All git commands will error until this is rectified.

This initial warning can be silenced or aggravated in the future by setting the
$GIT_PYTHON_REFRESH environment variable. Use one of the following values:
    - quiet|q|silence|s|none|n|0: for no warning or exception
    - warn|w|warning|1: for a printed warning
    - error|e|raise|r|2: for a raised exception

    export GIT_PYTHON_REFRESH=quiet

Install the old version of anaconda. I remember with the latest version simple Foc was having an error. Install 3.2.0

Thank you for your reply MoidKhan.

Which version would that be as 3.2.0 isn’t in the archive.

I’m thinking it could be Anaconda3-2020.11-Windows-x86_64

Hey @redknight106,

the error is due to the simplefocstudio version.
The one you’re installing is the dev version in at the simplefoc organisation.

Please install the original version of the studio:

The dev version has some dependances with git to download the simplefoc library code, if you wanna try it out install git in your anaconda envirnonment:

conda install -c anaconda git

Hello @Antun_Skuric

Thank you for your reply. Just to double check but does the version of Anaconda matter?

As there are still errors when installing the libraries using the following commend: pip install -r "requirements.txt"


ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

spyder 4.1.5 requires pyqtwebengine<5.13; python_version >= "3", which is not installed.
spyder 4.1.5 requires pyqt5<5.13; python_version >= "3", but you'll have pyqt5 5.15.2 which is incompatible.