Re: Are YOU interested in a potential remote sprint sometime in October/November? (yes YOU!)

2022-08-20 Thread Karthik
On Thu, Aug 18, 2022 at 5:53 AM Louis-Philippe VĂ©ronneau
 wrote:
>
> Hello folks,
>
> At DC22, a few people seemed interested in a potential Python Team
> remote sprint, sometime between October and early December.
>
> I'm thus writing to the list to see if there is indeed interest for
> this. If only 2 people reply, I won't push this further :)
>
> Here are a few potential ideas of things people could work on, in no
> particular order:
>
> - working on testing and merging the pybuild-autodep8 feature [1]
> - fixing the ~50 packages that are still using 'python3 setup.py' [2]
> - reviewing and merging unnoticed salsa MRs on the Team's packages [3]
> - fixing policy violations [4]
> - upstreaming CPython patches [5]
> - trying to remove all remaining Python 2 packages [6]
> - working on PEP 668 [7] [8]
> - working on lintian tags for the team [9]
> - patching tracker.debian.org (Django) to show pending MRs [10] [11]
>
> People are of course welcome to work on whatever other things they see
> fit for the betterment of the Team :)
>
> I've done a remote sprint for the Clojure Team back in May and it went
> great.
>
> Each people registered and we asked for a food budget, based on the
> "Meals and Incidentals Rate" the US government publishes for most cities
> in the world [12] [13]. I encourage you to look up your city, but I know
> I ended up eating pretty well :)
>
> I would envision a 3 day sprint (Friday, Saturday, Sunday) being long
> enough yet not too long for most of us to make progress on key issues
> without being over-tiring.
>
> Happy to hear back from y'all (please do if you're interested). If I see
> people are interested, I'll send a poll to find the most suitable dates.
>
> Cheers,
>
>
> [1]:
> https://salsa.debian.org/python-team/tools/dh-python/-/merge_requests/27
> [2]: https://lists.debian.org/debian-python/2022/08/msg00046.html
> [3]: https://salsa.debian.org/groups/python-team/packages/-/merge_requests
> [4]: https://github.com/sandrotosi/dpt-repos-check/blob/main/violations.txt
> [5]: see https://pad.riseup.net/p/dc22pythonsprint-keep
> [6]: see https://lists.debian.org/debian-python/2022/07/msg00065.html
> [7]:
> https://discuss.python.org/t/pep-668-marking-python-base-environments-as-externally-managed/
> [8]: https://peps.python.org/pep-0668/
> [9]: see https://lists.debian.org/debian-python/2022/07/msg00065.html
> [10]: https://tracker.debian.org/teams/python/
> [11]: https://salsa.debian.org/qa/distro-tracker
>
> [12]:
> https://www.gsa.gov/travel/plan-book/per-diem-rates/per-diem-rates-lookup
> [13]: https://aoprals.state.gov/web920/per_diem.asp
>

I'm in ...



Re: Need a Python 3.8 virtual environment

2021-03-03 Thread Karthik
On Wed, Mar 3, 2021 at 8:56 AM Steven Robbins  wrote:
>
> Hi,
>
> I'm trying to use a (non-Debian) python system built on python 3.8.  Debian's
> default is currently 3.9 so I am advised to use a virtual environment.   Being
> a newbie, I searched around and found a writeup covering several different
> virtualization tools [1].   Note I am using Debian 'sid'.
>
> I can use the tool "virtualenv" to create a virtual environment for default
> python:
>
> steve@riemann:/tmp$ virtualenv blah
> created virtual environment CPython3.9.1.final.0-64 in 77ms
>   creator CPython3Posix(dest=/tmp/blah, clear=False, no_vcs_ignore=False,
> global=False)
>   seeder FromAppData(download=False, pip=bundle, setuptools=bundle,
> wheel=bundle, via=copy, app_data_dir=/home/steve/.local/share/virtualenv)
> added seed packages: pip==20.1.1, pkg_resources==0.0.0,
> setuptools==44.0.0, wheel==0.34.2
>   activators
> BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
>
>
> But not for python 3.8:
>
> steve@riemann:/tmp$ virtualenv -p python3.8 blah38
> RuntimeError: failed to find interpreter for Builtin discover of
> python_spec='python3.8'
>
>
> I have installed literally all the Debian python packages whose name contains
> 'python3.8'.   A very short list:
>
> ii  libpython3.8:amd643.8.7-1
> amd64Shared Python runtime library (version 3.8)
> ii  libpython3.8-dev:amd643.8.7-1
> amd64Header files and a static library for Python (v3.8)
> ii  libpython3.8-minimal:amd643.8.7-1
> amd64Minimal subset of the Python language (version 3.8)
> ii  libpython3.8-stdlib:amd64 3.8.7-1
> amd64Interactive high-level object-oriented language (standard
> library, version 3.8)
> ii  python3.8 3.8.7-1
> amd64Interactive high-level object-oriented language (version 3.8)
> ii  python3.8-dev 3.8.7-1
> amd64Header files and a static library for Python (v3.8)
> ii  python3.8-minimal
>
>
>
> I have also tried the module 'venv':
>
> steve@riemann:/tmp$ python3.8 -m venv v38
> The virtual environment was not created successfully because ensurepip is not
> available.  On Debian/Ubuntu systems, you need to install the python3-venv
> package using the following command.
>
> apt-get install python3-venv
>
> You may need to use sudo with that command.  After installing the python3-venv
> package, recreate your virtual environment.
>
> Failing command: ['/tmp/v38/bin/python3.8', '-Im', 'ensurepip', '--upgrade',
> '--default-pip']
>
> steve@riemann:/tmp$ python3.8 -m venv blah38
> The virtual environment was not created successfully because ensurepip is not
> available.  On Debian/Ubuntu systems, you need to install the python3-venv
> package using the following command.
>
> apt-get install python3-venv
>
> You may need to use sudo with that command.  After installing the python3-venv
> package, recreate your virtual environment.
>
> Failing command: ['/tmp/blah38/bin/python3.8', '-Im', 'ensurepip', '--
> upgrade', '--default-pip']
>
>
> Note that I do have 'python3-venv' installed, but it is the 3.9 version:
> ii  python3-venv  3.9.1-1
> amd64pyvenv-3 binary for python3 (default python3 version)
>
>
> Is there something I've missed?
>
> Thank you,
> -Steve
>
> [1] 
> https://linuxconfig.org/how-to-set-up-a-python-virtual-environment-on-debian-10-buster


try using pyenv
https://mentors.debian.net/package/pyenv/