Comments (14)
Thanks @spenpal for raising the issue.
@Sayvai can you take a look into this ?
from resume-matcher.
@spenpal - when you ran npm run fastapi-dev
, was your current working directory within the webapp/
sub-directory?
from resume-matcher.
@Sayvai
Yes, I was in the /webapp directory when I ran the command
from resume-matcher.
@spenpal I believe that since you're running a Windows WSL ubuntu shell, the error message you're seeing; sh: 1: source: not found
, indicates to me that your WSL shell does not recognise the source
command. I developed the script under a Mac OS environment, and hence the assumption that source
would work across all systems.
So try this.
In webapp/package.json
file, and for the fastapi-dev
script, temporarily replace source
with a period (.
) instead.
- "fastapi-dev": "source ../env/bin/activate && pip install -r ../requirements.txt && python -m uvicorn backend.api.index:app --reload",
+ "fastapi-dev": ". ../env/bin/activate && pip install -r ../requirements.txt && python -m uvicorn backend.api.index:app --reload",
Save the change locally, and try running npm run fastapi-dev
again.
If that works, then I'll raise a PR for that fix, so that the npm script will work in both Mac OS and Windows WSL Ubuntu shell environments.
from resume-matcher.
This is my new error, after making the changes you suggested.
> [email protected] fastapi-dev
> . ../env/bin/activate && pip install -r ../requirements.txt && python -m uvicorn backend.api.index:app --reload
sh: 1: .: cannot open ../env/bin/activate: No such file
from resume-matcher.
@spenpal the following error message suggests that the Python environment activation script (../env/bin/activate
) is not found, and so implies you may not have setup the Python Virtual Environment correctly?
sh: 1: .: cannot open ../env/bin/activate: No such file
Given that, did you visually inspect that the env/bin/
directory exist from the root of the project? And whether the activate
script exist within that directory?
If the directory and script does not exist, then that suggests the Python virtual environment (named env
) was not setup (or just not setup correctly). If so, then I suggest that the Python setup instructions is followed, which is set out in the projects' root README.md file (step 3 and 4), that is also referred to from the webapp/README.md instructions.
from resume-matcher.
@spenpal is this issue fixed now?
from resume-matcher.
@srbhr I realized my initial issue. I use a package manager called PDM, which uses virtualenv
by default, for virtual environments. But, the virtualenv environment folder's default name is .venv
, instead of env
, as stated in the setup instructions.
I changed the script command to reflect my setup, and it works perfectly fine now.
"fastapi-dev": ". ../.venv/bin/activate && python -m uvicorn backend.api.index:app --reload",
This is what I get now at the frontpage of the webapp:
I am getting the following debug messages. Not sure if it is pertinent to successfully run the app because I am getting the default screen for the Common Words between Job Descriptions and Resumes Highlighted
and Suggestions
, even after uploading my resume and job description.
[1] DEBUG Error retreiving service keys:
[1] INFO: ::ffff:127.0.0.1:0 - "GET /api/service-keys HTTP/1.1" 500 Internal Server Error
[0] No configurable service keys found. If this is unexpected, please check the GET API response to '/api/service-keys'.
from resume-matcher.
- the following error from the FastAPI server is nothing to be concerned about, and is just a background web app initialisation check which informs us that no service keys were found:
[1] DEBUG Error retreiving service keys:
[1] INFO: ::ffff:127.0.0.1:0 - "GET /api/service-keys HTTP/1.1" 500 Internal Server Error
[0] No configurable service keys found. If this is unexpected, please check the GET API response to '/api/service-keys'.
Until recently, the scripts/similarity/config.yml
was removed by the maintainer, due to the fact that a third-party service (cohere? qdrant?) no longer provides free API keys for the overall project to work.
- I would advise that your localisaed frontend web app changed to the npm
package.json
script changes are not committed to remote, as the official project environment name to be used isenv
(not.venv
).
- Also worth noting that the full stack web app currently returns fake results for demonstration purposes of its capabilities, and so is still under development. So I would not rely on the web app for real results. And if you're intending to get real results, and do not plan on contributing to the development on the web app, then i suggest you run the Streamlit app instead, provided you have signed up for the necessary API keys.
from resume-matcher.
Hey @Sayvai , I'm on Windows and not using WSL. Just have NodeJS and Python.
The Python virtual environment is activated via env/Scripts/activate instead of env/bin/activate. Would it be okay to add another script in package.json for Windows-targeted folks?
Probably need to add this:
"fastapi-dev-win": "..\\env\\Scripts\\activate && pip install -r ../requirements.txt && python -m uvicorn backend.api.index:app --reload",
"dev-win": "concurrently \"npm run next-dev\" \"npm run fastapi-dev-win\"",
Followed by:
npm run dev-win
Note: I have done this in my local workspace and not planning to push to main yet.
from resume-matcher.
Hey @imhalcyon,
Thanks for highlighting this particular issue for Windows (non-WSL) users. That makes perfect sense, and I agree with the consistent naming conventions for the additional npm scripts / tasks suggestions.
If you don't mind, please create a fork of the main
repository with the suggested changes, and then open a detailed PR which links back to this issue, in which the PR itself is configured to merge into main
as the base branch.
Good spot!
from resume-matcher.
If you don't mind, please create a fork of the
main
repository with the suggested changes, and then open a detailed PR which links back to this issue, in which the PR itself is configured to merge intomain
as the base branch.
Done. Please check whenever possible: #185
from resume-matcher.
Related Issues (20)
- Can't get Cohere free api key HOT 2
- Move API keys and qdrant URL from config file to environment varibales. HOT 1
- Conflict in Dependency Versions: urllib3 and typing_extensions HOT 4
- [Errno -3] Temporary failure in name resolution HOT 2
- Issue with docker pull HOT 9
- Streamlit App fails if base folder is not named "Resume-Matcher" HOT 6
- HR AI HOT 1
- Shift docs to a "Docs" folder. HOT 4
- Create a SECURITY.md HOT 4
- Feature Request: Enhanced Resume and Job Description Selection Experience (In-app Upload)
- Create a CONTRIBUTING.md HOT 3
- Use sidebar to utilize the screen area better HOT 5
- In local after running python run_first.py resumes and job description are not being processed into json.. HOT 3
- Adding a back to top button. HOT 5
- Misspell of `resume` on the contributing markdown file HOT 4
- To create a link that opens a new web page window or tab HOT 2
- [BUG] - Next.js Full Stack Web App Throws Exception to UI on Startup
- Modifications needed in extracting phone numbers from resume text. HOT 2
- Better support of PDF generated by Word (Export menu) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resume-matcher.