# Problem "dynamic module does not define module export function" (Mac M1 14.4)

**URL:** <https://fluka-forum.web.cern.ch/t/problem-dynamic-module-does-not-define-module-export-function-mac-m1-14-4/7022>\
**Category:** Flair\
**Created:** [12 February 2025 09:53 UTC](https://fluka-forum.web.cern.ch/t/problem-dynamic-module-does-not-define-module-export-function-mac-m1-14-4/7022 "2025-02-12T09:53:13Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![luillo](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/l/4bbf92/32.png) [@luillo](https://fluka-forum.web.cern.ch/u/luillo)\
**Post date:** [12 February 2025 15:29 UTC](https://fluka-forum.web.cern.ch/t/problem-dynamic-module-does-not-define-module-export-function-mac-m1-14-4/7022/5 "2025-02-12T15:29:45Z")

</div>

Dear @a.zanelli4 ,

I noticed from your snapshot (second column in the table) that you’re actually using Python 3.12. This shouldn’t be a problem, as we have a solution that should work with all Python versions:

> [@Flair on macOS Sequoia 15.2](https://fluka-forum.web.cern.ch/t/flair-on-macos-sequoia-15-2/6925/9):
>
> Hello @mchin , After contacting MacPorts support, we have a solution for Python 3.13 (or Python3.12 as well for you). You can test it with the following instructions: sudo port install tk +x11 # not needed in your case Then rebuild py313-tkinter from source sudo port -ns upgrade --force py313-tkinter Or, if you haven’t installed the port yet, use: sudo port -ns install py313-tkinter Before testing, remember to select the proper Python version slight_smile sudo port select --set python…

I think that your problem is related to the mixed environment HomeBrew/MacPorts. The recommended approach is to avoid mixing Homebrew and MacPorts, as this often leads to conflicts. I would suggest cleaning your environment settings as in this post

> [@SIGBUS error on first run](https://fluka-forum.web.cern.ch/t/sigbus-error-on-first-run/6601/7):
>
> Hello @mrivers , I see that you have a mixed environment HomeBrew/MacPorts: this is not a good approach as libraries can be mixed and generate conflicts. For the installation of FLUKA/Flair, it is recommended to use MacPorts (at the moment we have no working solution with HomeBrew). Therefore, my recommendation is to use reinstall FLUKA in a Terminal where only MacPorts environments is defined. To do this, follow these steps: Define environment switching functions in your shell startup fil…

Please let us know if this works for you.

---

_[View the full topic](https://fluka-forum.web.cern.ch/t/problem-dynamic-module-does-not-define-module-export-function-mac-m1-14-4/7022)._
