modelon-community / PyFMI

PyFMI is a package for loading and interacting with Functional Mock-Up Units (FMUs) both for Model Exchange and Co-Simulation, which are compiled dynamic models compliant with the Functional Mock-Up Interface (FMI)
http://jmodelica.org/pyfmi
GNU Lesser General Public License v3.0
160 stars 38 forks source link

JModelica with spyder #118

Closed kosmylo closed 3 years ago

kosmylo commented 3 years ago

I have installed successfully jmodelica and I have tested it through jupyter notebook. However, when I am trying to do the same procedure, but then open spyder I am getting an error.

Specifically, what I am doing is the following:

open anaconda terminal

activate my environment in which spyder is installed

run setenv.bat 64

spyder

I am getting the following error:

Fatal Python error: initfsencoding: unable to load the file system codec
  File "C:\JModelica.org-2.4\\Python27\Python_64\lib\encodings\__init__.py", line 123
    raise CodecRegistryError,\
                            ^
SyntaxError: invalid syntax

Any idea of what is going on?

chria commented 3 years ago

This is unfortunately not related to PyFMI.