Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Segmentation Fault in IDLE or CLI #49

Closed
Xiaohong-Deng opened this issue Feb 22, 2019 · 2 comments
Closed

Segmentation Fault in IDLE or CLI #49

Xiaohong-Deng opened this issue Feb 22, 2019 · 2 comments

Comments

@Xiaohong-Deng
Copy link

The following scenarios are all in conda virtual environment

Simplest reproducible scenarios

Run the script in command line python hello.py

import biosppy

if __name__ == '__main__':
    print("hello")

or in IDLE

>>> import biosppy

In jupyter notebook it works fine. Any idea why it's the case?

@capcarr
Copy link
Contributor

capcarr commented Feb 22, 2019

Hi @Xiaohong-Deng

Can you show the exact error message that you get?
And the Python version you're using?
I'm assuming that in all cases you're pointing to the same conda environment, right?

@Xiaohong-Deng
Copy link
Author

Resolved. It's long existing issue between Qt5 and matplotlib. Before import biosppy first

    import matplotlib as mpl
    mpl.use('TkAgg')
    from matplotlib import pyplot as plt

I should have known it because I encountered this before.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants