Giter Club home page Giter Club logo

Comments (5)

khyox avatar khyox commented on August 15, 2024

Thank you very much for the bug report. Recentrifuge is developed and tested on my mac:

Darwin Kernel Version 15.6.0: Wed May  2 21:04:22 PDT 2018; root:xnu-3248.73.10~1/RELEASE_X86_64

So, I will try to reproduce your issue with conda. Anyway, it may be a problem with the matplotlib backend (like in this SO question). In the meantime, could you please set the environment variable MPLBACKEND to PDF before running retest to check if something changes? Thanks!

from recentrifuge.

khyox avatar khyox commented on August 15, 2024

There are some well-known (not for me) issues with matplotlib/conda/osx (see matplotlib docs for example) so that some fine-tuning is required. I found two ways to get retest properly ending under conda/bash/osx on my mac:

  1. Setting the matplotlib backend to PDF:
$ conda create -n recentrifuge python=3.7
$ conda activate recentrifuge
(recentrifuge)$ git clone https://github.com/khyox/recentrifuge.git
(recentrifuge)$ cd recentrifuge
(recentrifuge)$ conda install --file=requirements.txt
(recentrifuge)$ export MPLBACKEND=PDF
(recentrifuge)$ ./retest -d -l -r
  1. Using use pythonw rather than python as suggested on matplotlib docs:
$ conda create -n rcf python=3.7
$ source activate rcf
(rcf)$ git clone https://github.com/khyox/recentrifuge.git
(rcf)$ cd recentrifuge
(rcf)$ conda install python.app
(rcf)$ conda install --file=requirements.txt
(rcf)$ pythonw retest -d -l -r

Please, confirm me if any of these works for you. If so, I will update the docs with instructions for conda users. Thanks!

from recentrifuge.

BenKaehler avatar BenKaehler commented on August 15, 2024

Thanks @khyox, that fixed it!

I ran

conda create -n recentrifuge python=3.7 pandas openpyxl xlrd matplotlib
source activate recentrifuge
export MPLBACKEND=PDF
pip install recentrifuge
retest -d -r

and got

$ echo $?
0

Note that using pythonw isn't really a fix, because it jumps outside the conda environment:

$ which pythonw
/usr/local/bin/pythonw

from recentrifuge.

khyox avatar khyox commented on August 15, 2024

Thanks for the feedback @BenKaehler!

That's interesting. In my mac, pythonw is executed inside the conda enviroment where I installed the python framework build with conda install python.app:

(rcf)$ which pythonw
/anaconda3/envs/rcf/bin/pythonw

Anyway, I think I will hardwire the matplotlib PDF backend in the retest code to avoid future problems.

from recentrifuge.

BenKaehler avatar BenKaehler commented on August 15, 2024

Thanks @khyox. I would guess that's because I didn't install python.app.

from recentrifuge.

Related Issues (20)

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.