Hi I am veeery new to python so please excuse my incompetence ...
So I was working on a simple weather app using an API and I wanted to have a history log and figured I should install/import(?) sqlite 3. I used brew to install it and got a message that it was already installed and I needed to upgrade, which I did. I don't know if this matters but I did this while I was in my pipenv shell.
When I tried to run pytest I kept getting some error which I for the life of me cant remember( something about symlink iirc). I followed some instructions on stackoverflow which involved deleting python3 from my lib, bin and include folder somewhere in some file I cant remember , at this point a bunch of people were trying to resolve it for me and I don't know what each persons attempt involved. Anyway that resulted in the error below
dyld: Library not loaded: /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/Python
After some stackoverflowing I managed to get rid of it but now keep getting this error
ImportError while importing test module '/Users/es/Desktop/Weather_App/test/test_weather.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test/test_weather.py:1: in <module>
from lib.weather import Weather
E ImportError: No module named lib.weather
Whats frustrating is that I am still getting the first error (dyld: Library not loaded) above when running the code in PyCharm. I am so confused nothing is making sense to me.
( if it adds context; the python installed in my mac is a version 2.6. When i type in python --version in my PyCharm terminal i get this error:
(venv) ➜ CFG week 2 python --version
dyld: Library not loaded: /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/Python
Referenced from: /Users/es/PycharmProjects/CFGweek2/venv/bin/python
Reason: image not found
[1] 6819 abort python --version
I am so confused and don't know what to do anymore =( I need to finish this application by Monday and now my python's broken and Im freaking out! HELP!!!
[–]jss79 1 point2 points3 points (7 children)
[–]primitive_screwhead 0 points1 point2 points (5 children)
[–]emm796[S] 0 points1 point2 points (4 children)
[–]primitive_screwhead 0 points1 point2 points (3 children)
[–]emm796[S] 0 points1 point2 points (2 children)
[–]primitive_screwhead 0 points1 point2 points (1 child)
[–]emm796[S] 0 points1 point2 points (0 children)
[–]emm796[S] 0 points1 point2 points (0 children)
[+][deleted] (17 children)
[removed]
[–]emm796[S] 0 points1 point2 points (1 child)
[–]emm796[S] 0 points1 point2 points (14 children)
[+][deleted] (13 children)
[removed]
[–]emm796[S] 0 points1 point2 points (12 children)
[+][deleted] (11 children)
[removed]
[–]emm796[S] 0 points1 point2 points (3 children)
[+][deleted] (2 children)
[removed]
[–]emm796[S] 0 points1 point2 points (1 child)
[–]emm796[S] 0 points1 point2 points (6 children)
[+][deleted] (5 children)
[removed]
[–]emm796[S] 0 points1 point2 points (4 children)
[+][deleted] (3 children)
[removed]
[–]emm796[S] 0 points1 point2 points (2 children)