suno-ai / bark

🔊 Text-Prompted Generative Audio Model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

steup.py empty? It needs some name description dependencies etc for pip to install properly

shoaib42 opened this issue · comments

I tried to install (via git+ and after git clone) and I get a package created with the name UNKNOWN. Needless to say you won't be able to import the bark module :).

$ python3 -m pip install git+https://github.com/suno-ai/bark.git
Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/suno-ai/bark.git
  Cloning https://github.com/suno-ai/bark.git to /tmp/pip-req-build-hxhd9cpf
  Running command git clone --filter=blob:none --quiet https://github.com/suno-ai/bark.git /tmp/pip-req-build-hxhd9cpf
  Resolved https://github.com/suno-ai/bark.git to commit 773624d26db84278a55aacae9a16d7b25fbccab8
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: UNKNOWN
  Building wheel for UNKNOWN (pyproject.toml) ... done
  Created wheel for UNKNOWN: filename=UNKNOWN-0.0.0-py3-none-any.whl size=1784 sha256=ef480923bf0b28e33eb82c15f570f5cbd35531bf2e3c829bb97ad3d608bdf351
  Stored in directory: /tmp/pip-ephem-wheel-cache-ngthky8o/wheels/e6/6d/c2/107ed849afe600f905bb4049a026df3c7c5aa75d86c2721ec7
Successfully built UNKNOWN
Installing collected packages: UNKNOWN
Successfully installed UNKNOWN-0.0.0

A quick fix with updating the setup.py with

setup(
   name='bark',
   version='0.1.0',
   packages=['bark']
)

Gets it going

$ pip3 install .
Defaulting to user installation because normal site-packages is not writeable
Processing /home/shoaib/gitshit/bark
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: bark
  Building wheel for bark (pyproject.toml) ... done
  Created wheel for bark: filename=bark-0.1.0-py3-none-any.whl size=16377 sha256=d6378cbf93993082366944ee0d61c81a71c514c481d7b8ed61df57e33b749e97
  Stored in directory: /tmp/pip-ephem-wheel-cache-c5rbx_tq/wheels/77/bf/8a/48b8a7f3e47fcadd6efa66010b534058ef42e5d317b2dae836
Successfully built bark
Installing collected packages: bark
Successfully installed bark-0.1.0

But dependencies are the next hurdle. So finally after going over each dependency I was able to run the sample.

pip3 install encodec
pip3 install funcy
pip3 install tqdm
pip3 install transformers

So eventually what you need is this in the setup.py file to get this installed via pip

from setuptools import setup

setup(
   name='bark',
   version='0.1.0',
   packages=['bark'],
   install_requires=['encodec', 'funcy', 'tqdm', 'transformers']
)

Would be nice if the author can add these to the setup

description='Some description goes here',
author='Authors Name',
author_email='upto you to provide :)',

👍