Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

Trouble installing #27

Open
KeironO opened this issue May 4, 2021 · 1 comment
Open

Trouble installing #27

KeironO opened this issue May 4, 2021 · 1 comment

Comments

@KeironO
Copy link
Collaborator

KeironO commented May 4, 2021

Describe the bug

I've just caught up with my inbox and a couple of you have emailed me in regards to being unable to install dimepy on newer versions of Python. I can't believe I'm having to say this, but please, in future, submit an issue as I prioritise them over cold emails. My inbox is not a suitable place to report issues, or ask for help.

To Reproduce
Steps to reproduce the behavior:

  1. Set up a virtualenv
  2. Install dimepy through pip
  3. Attempt to import dimepy.
  4. See error, given below:
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-44-01df2d44ecbd> in <module>
----> 1 from dimepy import Spectrum

~/Projects/mtbls/env/lib/python3.9/site-packages/dimepy/__init__.py in <module>
      2 # encoding: utf-8
      3 
----> 4 from .spectrum import Spectrum
      5 from .spectrumList import SpectrumList
      6 from .scan import Scan

~/Projects/mtbls/env/lib/python3.9/site-packages/dimepy/spectrum.py in <module>
     29 import itertools
     30 import os
---> 31 import matplotlib.pyplot as plt
     32 
     33 """

~/Projects/mtbls/env/lib64/python3.9/site-packages/matplotlib/__init__.py in <module>
    172 
    173 
--> 174 _check_versions()
    175 
    176 

~/Projects/mtbls/env/lib64/python3.9/site-packages/matplotlib/__init__.py in _check_versions()
    157     # Quickfix to ensure Microsoft Visual C++ redistributable
    158     # DLLs are loaded before importing kiwisolver
--> 159     from . import ft2font
    160 
    161     for modname, minver in [

ImportError: numpy.core.multiarray failed to import


Expected behavior
For it to be imported.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Red Hat Fedora 40 GNU/Linux
  • Python Version: 3.9
@KeironO
Copy link
Collaborator Author

KeironO commented May 4, 2021

Rightio, so it's an issue with Python 3.9. I've not got the time to really look into this too much, but it works 100% with Python 3.7 and lower.

Just use something like pyenv and you're good to go.

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

1 participant