by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 22 2016 16:56
    User @jtigger unbanned @dshamany
  • Nov 13 2016 06:36
    @jtigger banned @dshamany
Eric the Cerise
@spiraldancing
Hello all ... quick(?) question about pip in the python track.
I'm (re-)starting python track, independent mode ... I'm running on Pop!_OS, the System76 derivative of Ubuntu. I have not installed any kind of pip. I installed pytest directly with "apt install python-pytest", that worked. I have completed the hello-world, and tested it successfully.
Eric the Cerise
@spiraldancing
Now, I'm looking at the python "how to do tests" page ( https://exercism.io/tracks/python/tests ), and it's telling me I need to install pip and/or pip3 before I can install pytest.
Meanwhile, on the actual pip site ( https://pip.pypa.io/en/stable/installing/ ), I'm told that if I'm running python >=2.7.9 and/or python >=3.4 (both true on my system), then I already auto-have pip installed, and do not need to install it.
... and yet, pip --version (and sundry variations) gives me a "command not found" error.
Eric the Cerise
@spiraldancing
So, my question is ... do I have pip installed? Do I want/need it for exercism? How can I install and/or upgrade/use it?
Danke, y gracias.
Norbert Melzer
@NobbZ
You said you installed python through your package manager. So you did not download it from the official release page, but only that is guaranteed to have pip distributed. Linux distributions are free to split as they like.
Eric the Cerise
@spiraldancing
No.
Python came pre-installed with the Linux distro.
Same result? Maybe the distro included pip, maybe not?
Norbert Melzer
@NobbZ
But I'm not sure if you need pip for the exercises or not as I'm not following the python track. It might be that there are additional requirements specified on more advanced exercises that require you to install some packages.
Eric the Cerise
@spiraldancing
I guess I'm confused by the exercism directions that I will need pip to install pytest ... however, I successfully installed pytest with apt, directly (and apparently? w/o pip).
Norbert Melzer
@NobbZ
Gentoo, CentOS, Debian and most of their derivatives rely on python for their internal tooling. Thats why it comes pre-installed, though to save some diskspace, they usually strip pip as most consumers won't need it.
Eric the Cerise
@spiraldancing
ps: Hello Norbert, thanks for the feedback.
Norbert Melzer
@NobbZ
Gerne
Eric the Cerise
@spiraldancing
I've seen a couple things on AskUbuntu suggesting that pip sometimes gets installed with alternative command (eg pip-3.2 instead of pip) ... I have no pip-aliases ...
Safe to assume that I do not have pip installed, and I can go ahead and install it (as needed)?
Norbert Melzer
@NobbZ
yes
Eric the Cerise
@spiraldancing
@NobbZ thanks ... but now, further warnings on the "how to install pip" site has led me to (re-)learning virtual environments for python. Since much of my actual OS relies on (presumably) specific versions of python and python-add-ons, it seems prudent to do any python dev-work (including exercism practice) in python sandboxes.
Hopefully/Presumably system-required python-stuff is already segregated from my student-fumbling ... but, y'know, just in case.
Eric the Cerise
@spiraldancing
Actually ... follow-up question for anyone ... can the exercism python track be run inside a python venv? Is it recommended?
Norbert Melzer
@NobbZ
It definitely can be run in a venv, at work I use a mix of venv and asdf-python to manage environments and python versions.
Eric the Cerise
@spiraldancing
@NobbZ Now ... I'm trying to find guidance on preferred naming and/or management conventions for multiple python virtual environments (venv vs pyenv vs pyenv-virtualenv). For the moment, I'm sure venv is plenty, but soon enough, I'll need python2/python3 differentiation so ...
To start with, do I just turn the ~/exercism/python/ directory into a python venv, and then activate it? Is that the best/simplest way?
-- afk for a bit. Thanx in advance.
Norbert Melzer
@NobbZ
No need to differentiate between py2 and py3. py2 is finally obselete and wont receive any support after February 2020.
Just use venv module that comes with python 3 to switch environments based on your current project.
anissouissi
@anissouissi
Hello,
Is it possible to configure exercism cli to use proxy ?
Norbert Melzer
@NobbZ
Yes. HTTP_PROXY and HTTPS_PROXY environment variables need to be set accordingly.
anissouissi
@anissouissi
@NobbZ thanks a lot !
Eric the Cerise
@spiraldancing
Hello ... is there any way to rename the exercism exercise-directories without screwing up the exercism download-and-submit functions?
specifically, I want to rename each exercise to auto-sort in the order I complete them, so I'm trying to rename them to, eg, 001_hello-world, 002_two-fer, etc.
But then 'exercism submit' freaks out with "The exercise directory does not match exercise slug in metadata" error message.
Can I retool the metadata, or am I wandering down a messy trail here?
I mean, I can easily enough edit the ".exercism/user.json" file to match my new directory name ... but is that going to start screwing up other exercism functionality?
Eric the Cerise
@spiraldancing
(Ahem...), I mean the ".exercism/metadata.json" file.
Eric the Cerise
@spiraldancing
Still hoping for feedback on the above ... but New Question --
Is there any reason not to apply Git tracking to either the individual exercises, or to the entire exercism/python directory?
Any recommendations on what (if anything) should be added to a .gitignore?
Norbert Melzer
@NobbZ
No, folders in the workspace needs to be as created by the tool.
And of course you can use git to track your stuff, some of us do and even have their repositories publicly available.
You can find an example of a polyglot-mono-repo at https://gitlab.com/NobbZ/exercism-solutions, others split their polyglottal stuff into one repository per track.
@spiraldancing :point_up_2:
Eric the Cerise
@spiraldancing
@NobbZ Danke, trying to set up my own GitLab exercism project now.
amitrintzler
@amitrintzler
Hi All, trying to install CLI\ exercism on my windows and get REST request failed: Error sending data (12007) the server name or address could not be resolved - anyone here faced it?
Norbert Melzer
@NobbZ
@amitrintzler could you please copy and paste the full error? And what command caused it? Usually the CLI does not print out such numbers...
JacCas2014
@JacCas2014

Hi, I'm just trying to configure the exercism CLI. When I run exercism configure --token=MY_CLI_TOKEN I receive: Error: The base API URL 'https://api.exercism.io/v1' cannot be reached.

API returned 403 Forbidden

Norbert Melzer
@NobbZ
Have you checked if your token is correct?
Highspeedtrooper79
@Highspeedtrooper79
I got the same thing when I tried to configure the CLI