Code Monkey home page Code Monkey logo

chipper's People

Contributors

asearfos avatar jamespino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ktsnyder a-savoy

chipper's Issues

Audio not working in Ubuntu 18.04 LTS | Issues with installation instructions

Hi,

I have been trying chipper today, congratulations on what looks like a fantastic tool!
I run into a couple of minor issues when trying to get it to work, and I thought I would let you know in case it's useful:

chipper_v1.0_linux, system info here.

I downloaded the .zip file, extracted its contents and started chipper by running start_chipper, as per the README.md. It started normally, but the audio didn't work:

[INFO   ] Setting up
[INFO   ] Loading file foo.wav
[CRITICAL] [AudioSDL2   ] Unable to open mixer: b'No such audio device'
[WARNING] Deprecated property "<AliasProperty name=filename>" of object "<kivy.core.audio.audio_sdl2.SoundSDL2 object at 0x7f1166f84590>" was accessed, it will be removed in a future version
[WARNING] [AudioSDL2   ] Unable to load foo.wav: b"Audio device hasn't been opened"

See the full output here and a similar issue reported here and possible solutions here. Everything else seems to work ok.

I then tried to install from source. The instructions will not work for a number of reasons (using conda, and for deb based Linux).

The following worked for me:

  1. Clone the repository with git clone https://github.com/CreanzaLab/chipper.git

  2. Create a new conda environment: conda create -n chipper_env python=3.7 -y

  3. Activate the conda environment: conda activate chipper_env and avigate to ./chipper.

  4. pip install --no-binary kivy kivy.

Note: Installing kivy from pypi directly by pip install -r requirements.txt resulted in the audio not working. Installing ffpyplayer resulted in the audio playing only once (might be the same issue reported here).

  1. Run pip install -r requirements.txt

Note: conda install -r requirements.txt is not a valid conda command. I tried conda install -c conda-forge anaconda --file requirements.txt instead, but soundfile is not available in any conda channels.

conda install pypiwin32 kivy.deps.sdl2 kivy.deps.glew kivy.deps.gstreamer kivy.deps.glew_dev kivy.deps.sdl2_dev kivy.deps.gstreamer_dev or its pip alternative also dont't work—and should't be necessary given that kivy is listed in the requirements file. Also, I'm guessing that pypiwin32 doesn't belong there.

  1. Install kivy packages

     garden install --kivy graph
     garden install --kivy filebrowser
     garden install --kivy matplotlib
     garden install --kivy progressspinner
    
  2. Next, make the setup.py file that is missing in ./chipper

     from setuptools import find_packages, setup
    
     setup(
         name='chipper',
         packages=find_packages(),
         version='1.0',
     )
    

    and run python setup.py develop

  3. Navigate to ./chipper/chipper and run python run_chipper.py

Everything works normally now, but the thresholded sonogram is not binary - i.e. it still has some red and yellow pixels, see example here. It doesn't seem to affect usability, however.

Thank you for putting the time to develop this tool! Will let you know if I run into any other issues.

Nilo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.