-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Able to run with incorrect version of Python [Ubuntu 16] #125
Comments
it would seem that you are not using the required version of python. That said we should check for python version and exit earlier. |
bitnami@ip-172-31-20-203: |
JobFunnel requires Python 3.8 or later. |
bitnami@ip-172-31-20-203: During handling of the above exception, another exception occurred: Traceback (most recent call last): |
can I see output of |
bitnami@ip-172-31-20-203:~/python/indeedjobsearch$ pip3.9 freeze |
Are you able to get results with the default settings per instructions in readme? |
Seems like there are bigger issues...... bitnami@ip-172-31-20-203:
Failed to build numpy
ERROR: Command errored out with exit status 1: /usr/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zon116aq/numpy_dba34e690e744051845d8400f189dd77/setup.py'"'"'; file='"'"'/tmp/pip-install-zon116aq/numpy_dba34e690e744051845d8400f189dd77/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-m6n9enr_/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-dwelbm6v/overlay --compile --install-headers /tmp/pip-build-env-dwelbm6v/overlay/include/python3.9/numpy Check the logs for full command output.ERROR: Command errored out with exit status 1: /usr/bin/python3.9 /usr/local/lib/python3.9/dist-packages/pip-20.3b1-py3.9.egg/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-dwelbm6v/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.28.5' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation == '"'"'CPython'"'"'' 'numpy==1.14.0; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation != '"'"'CPython'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'scipy>=0.19.1' Check the logs for full command output. |
Sorry but jobfunnel installs and runs with the default settings per our CI, this seems to be on your end. Also this is too way too much traceback. |
This is starting to look like an issue with the way python/pip is installed in your system. I think it might help us if you share your OS and how exactly you installed python and pip on your system. It also looks like the issue might be related to user permission, which is something pip, to the best of my knowledge, can be sensitive to if you don't do things in the canonical way. So if possible, you should post your OS version and exactly how you installed python and pip. |
sudo apt-get install python3-pip python is aliased to python3.9 pip give the following error. pip give the following error |
Could you give us the output for this command: |
Also quick question: Did you alias these things yourself? |
Used sudo update-alternatives --config python3 to alias python to python3.9 bitnami@ip-172-31-20-203:~/python/indeedjobsearch/Canada$ cat /etc/os-release |
Let's take it one step at a time. Run this: And post the output in a comment. |
bitnami@ip-172-31-20-203:~/python/indeedjobsearch/Canada$ funnel --help positional arguments: optional arguments: |
Awesome. You have Could you run |
bitnami@ip-172-31-20-203:~/python/JobFunnel-3.0.1$ ls -all |
I meant in the In other words, run |
I do not have virtual env running..... Give me a few mins, I think I may have fixed by re-installing some things. |
Ok. That's a good idea! Make sure you do things in the Canonical way. Any help you need let me know 👍. |
@thebigG Still appears to be the same problem. |
Ok. I will try to reproduce. Give me a few minutes and I will get back to you with feedback. |
It looks like Ubuntu 16 is riddled with Problems when it comes to these newer python versions, but no worries; these steps should work for you 😄 .
Hopefully these will solve your issues! |
@PaulMcInnis @thebigG Working now. Thanks again for all your help. :) |
Awesome! Thanks for reporting the issue. Now we know of these issues in Ubuntu 16. Will be adding a |
Seems like this has been resolved. Thanks for reaching out @paul-ojm |
Issue Template
Description
Getting the following error when running funnel load -s my_settings.yaml
SyntaxError: invalid syntax.
Steps to Reproduce
~/python/JobFunnel-3.0.1$ funnel load -s my_settings.yaml
Traceback (most recent call last):
File "/home/bitnami/.local/bin/funnel", line 5, in
from jobfunnel.main import main
File "/home/bitnami/.local/lib/python3.5/site-packages/jobfunnel/main.py", line 6, in
from .backend.jobfunnel import JobFunnel
File "/home/bitnami/.local/lib/python3.5/site-packages/jobfunnel/backend/jobfunnel.py", line 296
f"{cache_file} not found! Have you scraped any jobs today?"
^
SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered: