nextfoam / baram

CFD for Everyone
https://baramcfd.org/
GNU General Public License v3.0
100 stars 17 forks source link

baramFlow.main errors when I run it #59

Closed CSutter5 closed 8 months ago

CSutter5 commented 8 months ago

Describe the bug and To Reproduce I am following the Installation Guide on the website. Once I get to the step where I run python -m baramFlow.main it throws the following error

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/colin/build/baram/baramFlow/main.py", line 22, in <module>
    from baramFlow.app import app
  File "/home/colin/build/baram/baramFlow/app.py", line 14, in <module>
    from baramFlow.coredb.region_db import RegionDB
  File "/home/colin/build/baram/baramFlow/coredb/region_db.py", line 5, in <module>
    from baramFlow.coredb.material_db import MaterialDB, Phase
  File "/home/colin/build/baram/baramFlow/coredb/material_db.py", line 20, in <module>
    class Specification(Flag):
  File "/usr/lib/python3.11/enum.py", line 566, in __new__
    raise exc
  File "/usr/lib/python3.11/enum.py", line 279, in __set_name__
    enum_class._flag_mask_ |= value
TypeError: unsupported operand type(s) for |=: 'int' and 'str'

Expected behavior It should not throw an error

Desktop (please complete the following information):

kdg5424 commented 8 months ago

Hi @PizzaRules668 This is Donggyu. First of all, thank you for your interest in BARAM.

Actually, BARAM doesn't support the Arch Linux like Manjaro Linux, Endeavour Linux. But there is a way to install and run BARAM on Manjaro Linux. We recommend you to install with Apptainer. You can follow on this page.

https://baramcfd.org/docs/installationApptainer/

After following this page if you have the same problem again, please contact to us again.

jiban commented 8 months ago

Hi, @PizzaRules668. Thank you for the report. The exception Traceback shows crucial information for a bug. I will fix it in next release. By the way, it may happen with Python 3.11 and is ok with Python 3.9. Could you try running BARAM with Python 3.9?

CSutter5 commented 8 months ago

@jiban thanks for the response switching to python 3.9 fixed the problem