Giter Club home page Giter Club logo

Comments (10)

lauri-codes avatar lauri-codes commented on May 24, 2024

Hi @sirmarcel,

I cannot reproduce this issue on a clean python3.7 install using pip globally or within a virtualenv.

Both in this issue and #43 a conda environment is used. Maybe this has something to do with it? I will take a look into this. Could you give a try by using virtualenv instead of a conda environment?

from dscribe.

sirmarcel avatar sirmarcel commented on May 24, 2024

Hi -- okay, I will look into this. It might take a little way, as I'm knee-deep in a number of projects at the moment!

from dscribe.

lauri-codes avatar lauri-codes commented on May 24, 2024

I can reproduce the issue when installing dscribe with conda from conda-forge (i.e. conda install dscribe). The issue is however limited to the conda package manager, and is not present when installing with pip. The easiest work-around for now is to install dscribe with pip instead. You can do this even inside a conda environment with:

conda install pip
pip install pybind11
pip install dscribe

I would suggest using this for now until I can figure out the issue with the conda distribution.

from dscribe.

lauri-codes avatar lauri-codes commented on May 24, 2024

The issue is now also fixed in the conda package (there was actually an issue with the conda build system itself, not with dscribe). Just update to the latest version from conda-forge.

from dscribe.

sirmarcel avatar sirmarcel commented on May 24, 2024

Hi Lauri, that's great! In my case I was installing it via poetry though (which should just be pip under the hood), but inside a conda environment.

from dscribe.

lauri-codes avatar lauri-codes commented on May 24, 2024

Oh, my bad. I just saw conda in your filepath and leaped to an assumption 😛

From the error, I would guess that this might an issue with your compiler. Which version of GCC are you using? Maybe simply removing the package completely (make sure that that build/temp.linux-x86_64-3.7/dscribe/libacsf/acsfwrapper.o is removed) and switching to another compiler version could work?

from dscribe.

sirmarcel avatar sirmarcel commented on May 24, 2024

Hi! No worries. :D

I tried it with gcc6 and gcc9, the original report was with gcc8. It always looks like the same error. I'm not 100% sure I'm cleaning up after pip correctly, but I deleted ~/.caches/pip after each attempt, and as far as I know, pip automatically cleans up if the build fails...

from dscribe.

lauri-codes avatar lauri-codes commented on May 24, 2024

I'm quite sure that this has something to do with the platform or libraries in your HPC environment. What linux distribution is your HPC running? Can you attach the output of pip list within your conda env? If you are using slurm, can you attach the output of module list?

from dscribe.

lauri-codes avatar lauri-codes commented on May 24, 2024

Closing this for now as inactive. Reopen as needed. Also, there is a new version (0.3.5) that you may try out (the wrapper code has been updated so maybe that helps?)

from dscribe.

sirmarcel avatar sirmarcel commented on May 24, 2024

Hello, just a quick note: This error still occurred in my original setup even with 0.3.5, but did not persist when I did the following:

  • Clean conda environment with python 3.8, numpy, scipy
  • pip install dscribe

I think the original problem might have been due to the awkward interaction of having a virtualenv inside a conda environment, or something like that. Still a bit mysterious, but pleased that it seems to work.

EDIT: Same thing applies to python 3.7, still works.

from dscribe.

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.