[solved] run bimtester by python on Windows

edited October 2020 in General

Has someone tried to run bimtester on Windows? I have problems with its dependencies behave and pystache. In behave I just had to fix one line but pystache seams totally outdated. Last changes in 2014 https://github.com/defunkt/pystache/commits/master for example https://github.com/defunkt/pystache/issues/208

I wonder why on Debian Buster it runs smooth? This is very strange ...

Comments

  • Does it run on BlenderBIM on Windows? There it should have the same problems. Or are the dependencies of bimtester which must be included in BlenderBIM for Windows patched?

  • tried bimtester with BlenderBIM AddOn on Windows. Runs smooth without any problems.
    @Moult
    Have you patched any of the dependencies included in BlenderBIM to get it run on Windows. Mostly behave and pystache?

    bernd

  • I tried to run bimtester from FreeCAD but I get a

    10:14:04 Exception UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 401: invalid continuation byte

    10:14:04  //fbj.local/dats/Daten FBJ/02 Projekte offen/FBAG/2015_Z/15025 Erweiterung SH Glärnisch Wädi/10 BIM/1 Aktuell/3_15025_KiGa_ING_N_TRW.ifc
    10:14:04  ['01_proj.feature', '04_elem.feature']
    10:14:04  C:\Users\BHA\AppData\Roaming\FreeCAD\Mod\bimtester\code_bimtester\fcbimtester.py
    10:14:04  ['C:\\Users\\BHA\\AppData\\Local\\Temp\\tmpc_ravs9h\\features', '--format', 'json.pretty', '--outfile', 'C:\\Users\\BHA\\AppData\\Local\\Temp\\tmpc_ravs9h\\report\\report.json']
    10:14:04  Exception UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 401: invalid continuation byte
    10:14:04  Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\BHA\AppData\Roaming\FreeCAD\Mod\bimtester\freecad\bimtester\run_bimtester.py", line 64, in open
        "ifcfilename": the_ifcfile_name
      File "C:\Users\BHA\AppData\Roaming\FreeCAD\Mod\bimtester\code_bimtester\fcbimtester.py", line 145, in run_intmp_tests
        behave_main(behave_args)
      File "C:\0_BHA_privat\progr\FreeCAD_0.19.xxxxx_Py3Qt5\bin\lib\behave\__main__.py", line 183, in main
        return run_behave(config)
      File "C:\0_BHA_privat\progr\FreeCAD_0.19.xxxxx_Py3Qt5\bin\lib\behave\__main__.py", line 127, in run_behave
        failed = runner.run()
      File "C:\0_BHA_privat\progr\FreeCAD_0.19.xxxxx_Py3Qt5\bin\lib\behave\runner.py", line 804, in run
        return self.run_with_paths()
      File "C:\0_BHA_privat\progr\FreeCAD_0.19.xxxxx_Py3Qt5\bin\lib\behave\runner.py", line 818, in run_with_paths
        features = parse_features(feature_locations, language=self.config.lang)
      File "C:\0_BHA_privat\progr\FreeCAD_0.19.xxxxx_Py3Qt5\bin\lib\behave\runner_util.py", line 326, in parse_features
        feature = parser.parse_file(filename, language=language)
      File "C:\0_BHA_privat\progr\FreeCAD_0.19.xxxxx_Py3Qt5\bin\lib\behave\parser.py", line 17, in parse_file
        data = f.read().decode("utf8")
    <class 'UnicodeDecodeError'>: 'utf-8' codec can't decode byte 0xe4 in position 401: invalid continuation byte
    
    
  • edited October 2020

    @bernd said:
    10:14:04 //fbj.local/dats/Daten FBJ/02 Projekte offen/FBAG/2015_Z/15025 Erweiterung SH Glärnisch Wädi/10 BIM/1 Aktuell/3_15025_KiGa_ING_N_TRW.ifc
    ```

    this seams to be the problem. I used a path on a network resource. Tried in Blender, same problem but different error message came up. If the file is copied localy it runs smooth in Blender and in FreeCAD :-)

  • @bernd great to hear it was fixed :)

Sign In or Register to comment.