Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

baramFlow.main errors when I run it #59

Closed
CSutter5 opened this issue Mar 5, 2024 · 3 comments
Closed

baramFlow.main errors when I run it #59

CSutter5 opened this issue Mar 5, 2024 · 3 comments

Comments

@CSutter5
Copy link

CSutter5 commented Mar 5, 2024

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):

  • OS: Manjaro Linux
  • Version [e.g. 22]
@kdg5424
Copy link
Collaborator

kdg5424 commented Mar 6, 2024

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
Copy link
Contributor

jiban commented Mar 6, 2024

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
Copy link
Author

CSutter5 commented Mar 6, 2024

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

@CSutter5 CSutter5 closed this as completed Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants