# unable to bundle extension on osx-arm64

**URL:** <https://forum.knime.com/t/unable-to-bundle-extension-on-osx-arm64/80300>\
**Category:** KNIME Analytics Platform\
**Tags:** machine-learning, python, bug\
**Created:** [June 11, 2024, 11:52am UTC](https://forum.knime.com/t/unable-to-bundle-extension-on-osx-arm64/80300 "2024-06-11T11:52:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppav](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/p/cab0a1/32.png) [@ppav](https://forum.knime.com/u/ppav)\
**Post date:** [June 11, 2024, 11:52am UTC](https://forum.knime.com/t/unable-to-bundle-extension-on-osx-arm64/80300/1 "2024-06-11T11:52:10Z")

</div>

Hello,  
I wrote the knime extension in python, made tests for it and verified that they work in a local condi environment. After that I want to bundle this package for more testing, but it only works on linux, windows and osx64, but not on osx-arm64, I get this error:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/9/8/988f9cb0cf8b968acab73aa5a9d8cf52ba9c3c68.png)

I’ve tried installing packages (pandas, openssl, tensorflow) that aren’t there, but I either get another package that can’t be installed, or I get an error saying that I need to install a specific version of some package that I already have downloaded, but another version. I also created a yml file from my environment using different methods (as in the knime tutorial), but it also does not work.  
The biggest issue for me is that I need tensorflow to install the “fluoriclogppka” and “dgl” libraries, even though it’s not used and it’s not in the environment I used to test the extension locally, where I only installed one library “fluoriclogppka” and all dependencies installed themselves. It is also worth adding that these problems started after adding the “dgl” library to the package. Can anyone advise how to fix dgl installation for osx-arm64?  
My yml file:

```auto
name: knime_env
channels:
  - anaconda
  - defaults
  - knime
  - conda-forge
  - dglteam
dependencies:
  - python=3.11
  - knime-extension
  - knime-python-base
  - dgl
  - pip:
    - fluoriclogppka

```

Thank you and I apologize for the slightly unclear question, I don’t know how to formulate it properly.

---

<div class="post-metadata">

**Author:** ![ppav](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/p/cab0a1/32.png) [@ppav](https://forum.knime.com/u/ppav)\
**Post date:** [June 11, 2024, 12:03pm UTC](https://forum.knime.com/t/unable-to-bundle-extension-on-osx-arm64/80300/2 "2024-06-11T12:03:54Z")

</div>

it is also worth adding that the previous version of the pypi package of “fluoriclogppka” wasn’t just bundled in knime, but it could also be connected to knime and use all nodes correctly from this bundled extension.

---

<div class="post-metadata">

**Author:** ![steffen\_KNIME](https://forum-cdn.knime.com/user_avatar/forum.knime.com/steffen_knime/32/33719_2.png) [@steffen\_KNIME](https://forum.knime.com/u/steffen_KNIME)\
**Post date:** [June 12, 2024, 9:30am UTC](https://forum.knime.com/t/unable-to-bundle-extension-on-osx-arm64/80300/3 "2024-06-12T09:30:16Z")

</div>

Hi @ppav,

from a quick test on my M1 Mac and an examination of your [Python package ‘dgl’](https://anaconda.org/dglteam/dgl/files?channel=main), I have some thoughts:

- The `dgl` package is not available for osx-arm64 → Which `dgl` package should it use?
- My test generated this [create\_env\_report.log](https://forum.knime.com/uploads/short-url/7KBkRRTGRMg9v7DYtENYzkgDHMU.log) (44.0 KB) (and it did not work)
- I propose to set the version of `dgl` in your `environment.yml` to narrow my report down, but I do not know which version you actually want to use
- At least I have an `python=3.11` issue, that might be related to the first bullet

Maybe you can work with these points already.

Furthermore, for licensing reasons I advise to not use the channel `anaconda`.

If that does not help, we might need to have a look at the extension itself and how it is bundled, or maybe you can send a log of the whole bundling part.

Best regards  
Steffen

---

<div class="post-metadata">

**Author:** ![ppav](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/p/cab0a1/32.png) [@ppav](https://forum.knime.com/u/ppav)\
**Post date:** [June 12, 2024, 11:13am UTC](https://forum.knime.com/t/unable-to-bundle-extension-on-osx-arm64/80300/4 "2024-06-12T11:13:37Z")

</div>

Hello Steffen,

Thanks for the reply and for the log file, it helped, I specified the version of dgl - 2.2.0 and installed it via pip, not the conda channels, because it’s not there for some reason, although the anaconda site definitely lists the versions of this package for aarch. But that is not so important, because it now works as it does locally and all tests are performed correctly.  
Thank you very much for telling me about the “anaconda” channel - I will be aware of possible licensing issues.  
And now I will try to publish this extension)

Best regards  
Petro

---

<div class="post-metadata">

**Author:** ![steffen\_KNIME](https://forum-cdn.knime.com/user_avatar/forum.knime.com/steffen_knime/32/33719_2.png) [@steffen\_KNIME](https://forum.knime.com/u/steffen_KNIME)\
**Post date:** [June 12, 2024, 12:02pm UTC](https://forum.knime.com/t/unable-to-bundle-extension-on-osx-arm64/80300/5 "2024-06-12T12:02:32Z")

</div>

Hi @ppav,

glad it worked. However, there is no version of osx-aarch64, I am not sure how you come to that conclusion. Even [here](https://anaconda.org/dglteam/dgl) it does not show it:

![Screenshot 2024-06-12 at 14.00.52](https://forum-cdn.knime.com/uploads/default/original/3X/4/e/4eaede5b6359c565df6f2a75a922702d7351e714.png)

---

<div class="post-metadata">

**Author:** ![steffen\_KNIME](https://forum-cdn.knime.com/user_avatar/forum.knime.com/steffen_knime/32/33719_2.png) [@steffen\_KNIME](https://forum.knime.com/u/steffen_KNIME)\
**Post date:** [June 12, 2024, 12:08pm UTC](https://forum.knime.com/t/unable-to-bundle-extension-on-osx-arm64/80300/6 "2024-06-12T12:08:03Z")

</div>

Hi @ppav,

I am also unsure why you use the `pip` version of `fluoriclogppka`, because it is also on `conda-forge`: [Fluoriclogppka :: Anaconda.org](https://anaconda.org/conda-forge/fluoriclogppka)

It seems like you could omit `pip` alltogether.

Best  
Steffen

---

<div class="post-metadata">

**Author:** ![ppav](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/p/cab0a1/32.png) [@ppav](https://forum.knime.com/u/ppav)\
**Post date:** [June 12, 2024, 12:40pm UTC](https://forum.knime.com/t/unable-to-bundle-extension-on-osx-arm64/80300/7 "2024-06-12T12:40:41Z")

</div>

Hello Steffen,

I tried to bundle the extension using fluoriclogppka from conda-forge, but somehow there is a problem with picking up the versions of the various libraries that fluoriclogppka and dgl need, by moving to pip I was able to fix it.

Although an interesting fact is that when I made virtual environments using conda or virtualenv for local work with knime, fluoriclogppka was installed without problems from pypi and conda-forge.

The problem with bundling I think might be because installing fluoriclogppka with conda-forge requires changing the environment config with the following command:

`conda config --set channel_priority strict` (from fluoriclogppka repo in conda-forge [conda-forge/fluoriclogppka-feedstock: A conda-smithy repository for fluoriclogppka. (github.com)](https://github.com/conda-forge/fluoriclogppka-feedstock))

But this cannot be done in a yaml file(

Best regards  
Petro

---

<div class="post-metadata">

**Author:** ![ppav](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/p/cab0a1/32.png) [@ppav](https://forum.knime.com/u/ppav)\
**Post date:** [June 12, 2024, 12:44pm UTC](https://forum.knime.com/t/unable-to-bundle-extension-on-osx-arm64/80300/8 "2024-06-12T12:44:35Z")

</div>

It looks like version dgl 2.2.0 is made only for two versions of mac on pypi, I don’t know why that is, to be honest, but it’s interesting)

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/d/c/dcee4ab54a7383a75ec1e5c4138f5fe7d57c6359.png)

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 19, 2024, 12:45pm UTC](https://forum.knime.com/t/unable-to-bundle-extension-on-osx-arm64/80300/9 "2024-06-19T12:45:07Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
