Running ospgrillage 0.1.1 on Windows 10 with Python 3.9
With the default installation the command
import ospgrillage as og
returns a message that Python 3.8 is required.
I tried modifying the init.py file in the openseespywin folder to:
if sys.version_info[0] == 3 and sys.version_info[1] >= 8:
This then returns the following message:
Python 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
import numpy as np
import ospgrillage as og
Traceback (most recent call last):
File "d:\Users\dougj\Miniconda64\lib\site-packages\openseespywin_init_.py", line 20, in
from openseespywin.opensees import *
ImportError: DLL load failed while importing opensees: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "d:\Users\dougj\Miniconda64\lib\site-packages\openseespy\opensees_init_.py", line 19, in
from openseespywin.opensees import *
File "d:\Users\dougj\Miniconda64\lib\site-packages\openseespywin_init_.py", line 23, in
raise RuntimeError('Failed to import openseespy on Windows.')
RuntimeError: Failed to import openseespy on Windows.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "d:\Users\dougj\Miniconda64\lib\site-packages\ospgrillage_init_.py", line 6, in
from ospgrillage.osp_grillage import *
File "d:\Users\dougj\Miniconda64\lib\site-packages\ospgrillage\osp_grillage.py", line 11, in
import openseespy.opensees as ops
File "d:\Users\dougj\Miniconda64\lib\site-packages\openseespy\opensees_init_.py", line 23, in
raise RuntimeError('Failed to import openseespy on Windows.')
RuntimeError: Failed to import openseespy on Windows.