deezer / deezer/spleeter

[Bug] _pywrap_tensorflow_internal.so: invalid ELF header

Open
#704 1 comment 0 reactions 0 assignees View on GitHub
bug invalid
Dominant language
Python
Stars
28.4k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

## Description

After installing the Splitter (in docker using the instructions in the readme file), I can see that

```
root@cc0af452bb55:/spleeter# spleeter --version
Spleeter Version: 2.3.0
```

however, when I try to convert the demo file, I see this
```
root@cc0af452bb55:/spleeter# spleeter separate -p spleeter:2stems -o output audio_example.mp3
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py", line 64, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: /usr/local/lib/python3.8/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: invalid ELF header

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/spleeter", line 8, in
sys.exit(entrypoint())
File "/usr/local/lib/python3.8/site-packages/spleeter/__main__.py", line 256, in entrypoint
spleeter()
File "/usr/local/lib/python3.8/site-packages/typer/main.py", line 214, in __call__
return get_command(self)(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/typer/main.py", line 497, in wrapper
return callback(**use_params) # type: ignore
File "/usr/local/lib/python3.8/site-packages/spleeter/__main__.py", line 113, in separate
from .audio.adapter import AudioAdapter
File "/usr/local/lib/python3.8/site-packages/spleeter/audio/adapter.py", line 14, in
import tensorflow as tf
File "/usr/local/lib/python3.8/site-packages/tensorflow/__init__.py", line 41, in
from tensorflow.python.tools import module_util as _module_util
File "/usr/local/lib/python3.8/site-packages/tensorflow/python/__init__.py", line 39, in
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
File "/usr/local/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py", line 83, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py", line 64, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: /usr/local/lib/python3.8/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: invalid ELF header

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
root@cc0af452bb55:/spleeter#
```

and yes the files are present under same dir

## Step to reproduce

I created a docker-compose file and Dockerfile based on the repo itself.

## Environment

| Type | Value |
| ----------------- | ------------------------------- |
| OS | MacOS |
| Installation type | pip |
| RAM available | 64Go |
| Hardware spec | Apple M1|

## Additional context
I'm using MacBook with M1 Chip

If this was a mistake and we don't support the docker in the Apple M1 based, then I apologies, but before I stop my self, I wanted to be clear on this.

I don't have any another machine to test this on.

I have pushed the image to docker hub, so if any one wants to try it, can pull it from `docker pull nar3nd3r/spleeter:m1`

Any help is appreciated.

Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.