GithubHelp home page GithubHelp logo

Comments (7)

filpia avatar filpia commented on September 18, 2024 10

@okhat I had success by running cp /usr/include/crypt.h /opt/conda/include/python3.8/ to copy the crypt.h file into the location where it's expected at runtime. In your case I think you'd modify to cp /usr/include/crypt.h /opt/conda/envs/colbert/include/python3.8/.

Another choice depending on how much you're able to modify your environment is...

conda install --channel=conda-forge libxcrypt

export CPATH=/opt/conda/include/

or possibly even export CPATH=/opt/conda/envs/colbert/include.

Either way, good luck!

from colbert.

Jimmy9507 avatar Jimmy9507 commented on September 18, 2024 5

Yeah I also copied crypt.h to python environment and it works. But wondering if there is a easy way to include it in conda env creation step.

from colbert.

filpia avatar filpia commented on September 18, 2024 4

Digging into this a bit more, I have a hunch that the issue may be in conda-forge as mentioned here.

I copied /usr/include/crypt.h to the /opt/conda/include/crypt.h and that fixed my issue. I'm looking close into whether there's a modification to the conda build to ensure that crypt.h is installed in the include/ of the conda environment being used.

from colbert.

filpia avatar filpia commented on September 18, 2024

I just started seeing this issue today too in a sagemaker-deployed job and haven't figured out a fix for it. Are you using a Red Hat Linux base Docker image?

from colbert.

okhat avatar okhat commented on September 18, 2024

Ah thanks @filpia for the catch.... I don't really have a strong insight on this right away, it's entirely outside colbert per se, it's just the compiler as you noted

from colbert.

jinghan23 avatar jinghan23 commented on September 18, 2024

Same here. Copying from /usr/include/ works and curious why

from colbert.

filpia avatar filpia commented on September 18, 2024

@jinghan23 because in this case pytorch is looking for crypt.h in a specific directory. Previous to the conda-forge change, the file was being created at the anticipated location but following the changes it seems like it's being created elsewhere. This is just a lazy fix to ensure that the file exists where pytorch is expecting. FWIW I'm seeing similar behavior with theano

from colbert.

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.