srbhr / Resume-Matcher

Resume Matcher is an open source, free tool to improve your resume. It works by using language models to compare and rank resumes with job descriptions.
https://www.resumematcher.fyi/
Apache License 2.0
4.92k stars 2.11k forks source link

Missing _lzma module #115

Closed ThePavolC closed 1 year ago

ThePavolC commented 1 year ago

Issue Title

When running run_first I got error that _lzma module is missing.

Type

Description

It looks like it's something to do with pyenv, since _lzma is builtin the python since 3.3.

Environment

Possible Solution (if you have any in mind)

As suggested in https://github.com/pyenv/pyenv/issues/1800#issuecomment-1010250299

You need to do brew install xz and then rebuilt pyenv

srbhr commented 1 year ago

Thanks for the update. I haven't used pyenv, but rather venv and virtualenv. If you can provide instructions to run this with pyenv. I'd be very grateful if you can raise a PR here in the Resume Matcher Docs: https://github.com/srbhr/Resume-Matcher-Docs

pragati2112 commented 1 year ago

Hi @srbhr , I am using pyenv for managing multiple python versions.

Here is the link, which helped me a lot- https://realpython.com/intro-to-pyenv/#installing-pyenv

for build dependencies- sudo apt-get install build-essential zlib1g-dev libffi-dev libssl-dev libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev libncurses-dev

sudo apt-get install python-tk python3-tk tk-dev

sudo apt-get install build-essential zlib1g-dev libffi-dev libssl-dev libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev

Refer this - https://stackoverflow.com/questions/60775172/pyenvs-python-is-missing-bzip2-module

pyenv installer- curl https://pyenv.run | bash

Install desired python version- pyenv install -v 3.11.0

pyenv with vurtual enviroment- pyenv virtualenv 3.11.0 myenv_name

Activate virtualenv with pyenv- pyenv activate myenv_name

Install requirements- pip install -r requirements.txt

Then run- run_first.py

These are the mandatory steps need to follow while working with pyenv. Thanks!

srbhr commented 1 year ago

Thanks @pragati2112 , can you please add these steps in the readme as well. As a PR.