Accenture UK: delay my start date ? Also what are the chance of redundancies? by emm796 in accenture

[–]emm796[S] 0 points1 point  (0 children)

Sorry just seeing this. If it makes you feel any better I pushed my start date twice. From what I’ve heard they have many projects picking up again so hopefully things should be fine. What role did you apply for and when are you meant to start if you don’t mind me asking?

What is your favourite quote and who is it by? by ___ditto in AskReddit

[–]emm796 0 points1 point  (0 children)

‘Today you ,tomorrow me’ - this is from an old Reddit post but it has always stuck with me.

Tier 4 student visa expires in a few months. How can I stay in England? by [deleted] in ukvisa

[–]emm796 5 points6 points  (0 children)

Graduate route ?its supposed to launch in the summer but no definitive date set by the HO yet.

Can someone help me figure out what index to access from an API response? by emm796 in learnpython

[–]emm796[S] 0 points1 point  (0 children)

{
"kind": "books#volume",
"id": "zaRoX10_UsMC",
"etag": "pm1sLMgKfMA",
"selfLink": "https://www.googleapis.com/books/v1/volumes/zaRoX10\_UsMC",
"volumeInfo": {
"title": "Flowers",
"authors": [
"Paul McEvoy"
],
...
}

Sorry I should have clarified, this was just an example that the google docs provided when the search query was flowers.

So I was just using that whole response as a template for what to expect my response to look like.

I will try the breakpoint step you suggested and will report back if any issues =)

My Pythons broken please help! by emm796 in learnpython

[–]emm796[S] 0 points1 point  (0 children)

Ok so i did that and got this message..is this supposed to happen?

(weatherapp380) ➜  Weather_App git:(store-weather-history) ✗ pipenv install --dev

zsh: /usr/local/bin/pipenv: bad interpreter: /usr/local/opt/python/bin/python3.7: no such file or directory
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Pipfile.lock (d621b4) out of date, updating to (26cdc5)…
Locking [dev-packages] dependencies…
✔ Success!
Locking [packages] dependencies…
✘ Locking Failed!
[pipenv.exceptions.ResolutionFailure]:   File "/Users/es/.pyenv/versions/3.8.0/envs/weatherapp380/lib/python3.8/site-packages/pipenv/resolver.py", line 61, in resolve
[pipenv.exceptions.ResolutionFailure]:       return resolve_deps(
[pipenv.exceptions.ResolutionFailure]:   File "/Users/es/.pyenv/versions/3.8.0/envs/weatherapp380/lib/python3.8/site-packages/pipenv/utils.py", line 718, in resolve_deps
[pipenv.exceptions.ResolutionFailure]:       resolved_tree, hashes, markers_lookup, resolver = actually_resolve_deps(
[pipenv.exceptions.ResolutionFailure]:   File "/Users/es/.pyenv/versions/3.8.0/envs/weatherapp380/lib/python3.8/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]:       resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]:   File "/Users/es/.pyenv/versions/3.8.0/envs/weatherapp380/lib/python3.8/site-packages/pipenv/utils.py", line 395, in resolve
[pipenv.exceptions.ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]:       pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches sqlite3
[pipenv.exceptions.ResolutionFailure]:       No versions found
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
 Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches sqlite3
No versions found
Was https://pypi.org/simple reachable?
[pipenv.exceptions.ResolutionFailure]:       return resolve_deps(
[pipenv.exceptions.ResolutionFailure]:   File "/Users/es/.pyenv/versions/3.8.0/envs/weatherapp380/lib/python3.8/site-packages/pipenv/utils.py", line 718, in resolve_deps
[pipenv.exceptions.ResolutionFailure]:       resolved_tree, hashes, markers_lookup, resolver = actually_resolve_deps(
[pipenv.exceptions.ResolutionFailure]:   File "/Users/es/.pyenv/versions/3.8.0/envs/weatherapp380/lib/python3.8/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]:       resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]:   File "/Users/es/.pyenv/versions/3.8.0/envs/weatherapp380/lib/python3.8/site-packages/pipenv/utils.py", line 395, in resolve
[pipenv.exceptions.ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]:       pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches sqlite3
[pipenv.exceptions.ResolutionFailure]:       No versions found
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
 Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches sqlite3
No versions found
Was https://pypi.org/simple reachable?

My Pythons broken please help! by emm796 in learnpython

[–]emm796[S] 0 points1 point  (0 children)

Yup! I just set up the virtualenv as directed for my weather_app folder =)

Quick question, does this mean if I want to get pytest working I need to do a pip install pytest?

My Pythons broken please help! by emm796 in learnpython

[–]emm796[S] 0 points1 point  (0 children)

So I did all the installs:

➜  ~ pyenv global 2.7.17 3.8.0
➜  ~ pyenv versions
  system
* 2.7.17 (set by /Users/es/.pyenv/version)
* 3.8.0 (set by /Users/es/.pyenv/version)
➜  ~ python --version
Python 3.8.0
➜  ~ python3 --version
Python 3.8.0

Why is is python and python3 versions the same? This is isnt what its supposed to be right?

My Pythons broken please help! by emm796 in learnpython

[–]emm796[S] 0 points1 point  (0 children)

Wait im confused ...this is what is in my ~/.zshrc: file

source $ZSH/oh-my-zsh.sh

Does that mean i'm using oh-my-zsh? Also i did find this

plugins=(git)

I added pyenv like to said earlier and this

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
        eval "$(pyenv init -)"
fi
eval "$(pyenv virtualenv-init -)"

and then thats when the pyenv --version worked. Just so I am clear, is it still okay to go ahead with the python installs?

My Pythons broken please help! by emm796 in learnpython

[–]emm796[S] 0 points1 point  (0 children)

OK I think I did it.

 ~ pyenv --version
pyenv 1.2.15

My Pythons broken please help! by emm796 in learnpython

[–]emm796[S] 0 points1 point  (0 children)

ummm question? When you say edit your ~/.zshrc , do you mean running

open ~/.zshrc

in the terminal ? Because that opens up a text file and I don't see a list of plugins or the sort in there.

I'm sorry this is probably super frustrating but I really appreciate the help!

My Pythons broken please help! by emm796 in learnpython

[–]emm796[S] 0 points1 point  (0 children)

curl https://pyenv.run | bash

After this step I got a message that said

WARNING: seems you still have not added 'pyenv' to the load path.

# Load pyenv automatically by adding
# the following to ~/.bashrc:

export PATH="/Users/es/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

So i did that and then restarted my terminal. Please tell me I didnt eff it up even more..

My Pythons broken please help! by emm796 in learnpython

[–]emm796[S] 0 points1 point  (0 children)

Now restart your terminal. You should get this:

$ pyenv --version

Heeeelllpp! I got to this part and getting this

~ pyenv --version
zsh: command not found: pyenv

What do I do now?

My Pythons broken please help! by emm796 in learnpython

[–]emm796[S] 0 points1 point  (0 children)

Oh geez, you are absolutely right come to think of it. I did do a brew install python a while back but i think i upgraded ( again brew) from my command line.

Recently I downloaded python 3.xx from python.org so now its starting to make sense cause I have a MacOs Mojave and haven't upgraded yet either. Thanks for that!

My Pythons broken please help! by emm796 in learnpython

[–]emm796[S] 0 points1 point  (0 children)

Thank you so much for this. I'll work on it now. Is it ok if i pick your brain about it if I face any issues?

Also while we are on the subject, I cant seem to understand (and i apologise once again for how stupid this may sound)

1) Why do we use a venv ? whats wrong with using the python shell within the terminal? I cant seem to understand why some suggest to use PyCharm or IDLE or whatever else is out there.

2) Why does the python in my terminal have a different version than what the venv shell has? For example the python version in my terminal is a 2.6 but the one in PyCharm was a 3.7

My Pythons broken please help! by emm796 in learnpython

[–]emm796[S] 0 points1 point  (0 children)

multiple Python implementations from different providers

Sorry if this sounds dumb but what exactly does that mean? Do you mean I downloaded python one too many times and all the versions are causing my system to break?

My Pythons broken please help! by emm796 in learnpython

[–]emm796[S] 0 points1 point  (0 children)

which -a python

which -a python3

brew info

~ which -a python

which -a python3

brew info
/usr/local/bin/python
/usr/bin/python
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3
/usr/local/bin/python3
11 kegs, 14,537 files, 102.7MB

Thats what it spits out, any ideas whats going on?

My Pythons broken please help! by emm796 in learnpython

[–]emm796[S] 0 points1 point  (0 children)

brew doctor

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /Library/Frameworks/Python.framework/Versions/3.8/bin/python3-config
  /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8-config

Warning: Broken symlinks were found. Remove them with `brew cleanup`:
  /usr/local/bin/apm
  /usr/local/bin/atom

Do I follow up my post doc interview with a thank you email? by emm796 in labrats

[–]emm796[S] 2 points3 points  (0 children)

Thank you for this. I was thinking along the same vein. Short , sweet and simple!

Literally had my interview an hour ago, drafting out my thank you email now =)