Git Product home page Git Product logo

Comments (5)

mobiusklein avatar mobiusklein commented on June 9, 2024

Could you post any messages you get during installation? It looks like the C extensions weren't compiled.

Are you installing ms_peak_picker from source as well?

from ms_deisotope.

infusini avatar infusini commented on June 9, 2024

Hi, thanks for your reply!

Yes, I have installed ms_peak_picker from source first, and brainpy just before installing ms_deisotope. I have also tried with the latest releases (rather than cloning the repos, but the result was the same.

The output is here: https://gist.github.com/infusini/836118414f3b52f37262ccb91deeed2f

from ms_deisotope.

mobiusklein avatar mobiusklein commented on June 9, 2024

Hmm. I wasn't testing on Py3.7, but I've just updated my Travis config and it seems to build fine there. What kind of environment are you running this on? An AWS hosted instance?

Are you running Python directly from the source directory for ms_deisotope?

from ms_deisotope.

infusini avatar infusini commented on June 9, 2024

I have tried on both an Ubuntu instance on AWS, and a CentOS here on our internal VMs

Yes, I did run python from within the source directory of ms_deisotope (sorry). It didn't occur to me to try from somewhere else to check... and, of course, it works perfectly fine now. Thanks for your help :(

buntu@ip-172-31-24-45:~/ms_deisotope$ python
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ms_deisotope
No module named 'ms_deisotope._c.averagine' averagine
No module named 'ms_deisotope._c.scoring'
No module named 'ms_deisotope._c.deconvoluter_base'
No module named 'ms_deisotope._c.deconvoluter_base'
No module named 'ms_deisotope._c.deconvoluter_base'
>>>
ubuntu@ip-172-31-24-45:~/ms_deisotope$ cd ..
ubuntu@ip-172-31-24-45:~$ python
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ms_deisotope
>>>

from ms_deisotope.

mobiusklein avatar mobiusklein commented on June 9, 2024

Glad it was resolved. I've spent days of investigation to only find that was the culprit. When run from the source directory, Python tries to import from the local directory first, where it finds the source (without the compiled C extensions), and never looks in site-packages.

If you find yourself needing to do that, or to tweak things, you can install it with python setup.py develop or pip install -e, which will compile the C extensions and then place the .so files alongside the source code. These "editable" installations have some downsides for package metadata introspection, but I rarely have an issue with that.

from ms_deisotope.

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.