[issue27051] Create PIP gui

2017-10-31 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue27051] Create PIP gui

2017-02-06 Thread Nick Coghlan
Nick Coghlan added the comment: Regarding pip installability, the intended beneficiaries of that are: * folks *collaborating* on the GUI, since it means it can be installed into virtual environments, tested across multiple versions with tox, etc * developers that would like a pip GUI, and alrea

[issue27051] Create PIP gui

2017-02-03 Thread Upendra Kumar
Upendra Kumar added the comment: I have tried to inquire about the possibility of a pip API, however currently it doesn't seem that it is top priority for pip organisation as per these issue threads : 1. https://github.com/pypa/pip/issues/924 2. https://github.com/pypa/pip/issues/3999 Current

[issue27051] Create PIP gui

2017-02-03 Thread Upendra Kumar
Upendra Kumar added the comment: @Terry, I believe pip package doesn't solve the core purpose of GUI. Instead of that I should make a .deb, .rpm or .exe package so that beginners can directly install it. However, I will create the PyPI package by 10th Feb. -- _

[issue27051] Create PIP gui

2017-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: As far as I am concerned, this upload fulfills your obligation to CPython and PSF with respect to sponsoring your GSOC project. I wanted to get at least this loose end completed. I have no further expectation of you. I would *like* for you to make this pip

[issue27051] Create PIP gui

2017-02-03 Thread Upendra Kumar
Upendra Kumar added the comment: @Terry, The attached files contain the master branch of the pip_gui. It contains all the work done by me till now in pip_gui. If this projects need to be continued as open source project, is it expected to be continued as independent project, or CPython projec

[issue27051] Create PIP gui

2017-02-01 Thread Nick Coghlan
Nick Coghlan added the comment: Rather than "rejected" per se, I've closed this as "postponed" - I still think there's potential value in bundling a component management GUI in the future, but it should be *after* a project has established itself as the de facto introductory approach via PyPI.

[issue27051] Create PIP gui

2017-01-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upendra, can you upload a zipped copy of your code as of the end of GSOC or later? We should have a permanent copy of your work even if your github account goes away. Since the idea of adding a pipgui to the CPython repository has been rejected, I believe th

[issue27051] Create PIP gui

2016-08-28 Thread Nick Coghlan
Nick Coghlan added the comment: As David hinted at, the pip GUI should *not* support privilege escalation on Linux - needing to do so indicates someone is attempting to install into the system Python, and the GUI should never do that. If there's no active virtual environment, it should do a us

[issue27051] Create PIP gui

2016-08-26 Thread R. David Murray
R. David Murray added the comment: Something like gksudo would be what you would use to use this application to do a GUI install, but what specific program you use to get root for running a gui application does depend on the distribution. (For example, I'd use 'sux' to become root and then run

[issue27051] Create PIP gui

2016-08-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't know anything about user permissions on *nix. There are people on python-list who should. -- ___ Python tracker ___ _

[issue27051] Create PIP gui

2016-08-26 Thread Upendra Kumar
Upendra Kumar added the comment: Can I somehow change the setup.py script such that I can create a new set of (group, user) with specific privileges only needed for installation and uninstallation. Once a new set of (group, user) is created, I can always do os.setgid(gid) and os.setuid(uid)

[issue27051] Create PIP gui

2016-08-26 Thread Upendra Kumar
Upendra Kumar added the comment: I facing problems in running the GUI application with root or elevated privileges. I earlier used gksudo for linux. It turns out be a not very general solution as all linux distros don't have gksudo. Therefore, how to manage user permissions or group permission

[issue27051] Create PIP gui

2016-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Window stacking order can be queried with tcl calls: https://stackoverflow.com/questions/10343759/determining-what-tkinter-window-is-currently-on-top/10391659#10391659. I do not if there is the equivalent for frames. Note that uses can change window stack or

[issue27051] Create PIP gui

2016-07-06 Thread Upendra Kumar
Upendra Kumar added the comment: @Terry, I am switching between different frames using frame.tkraise() method in order to switch the user attention. Now, if I want to test which frame is at top what should I check for or which parameter I should check. -- ___

[issue27051] Create PIP gui

2016-07-02 Thread Upendra Kumar
Upendra Kumar added the comment: For using threading with Tkinter there are two options : either to use threading or asyncio ( coroutines ). Because asyncio is easier as compared to threading, therefore I would like to use it. But, coroutines are available only in Python >=3.5. Therefore shoul

[issue27051] Create PIP gui

2016-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: With respect to threading: I have close to 0 experience. I know that tkinter is supposed to be 'thread-safe' (Martin Loewis) and that people have real problems mixing threads with tkinter. If you can create a minimal complete verifiable example (SO MCVE), tr

[issue27051] Create PIP gui

2016-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upendra, with respect to the error installing timingwheel, msg268983, that looks like a bug in timingwheel. Report it to the pip or timingwheel list or tracker. I ran the command normally and got the same exception, with less noise. It is not a problem with

[issue27051] Create PIP gui

2016-06-26 Thread Upendra Kumar
Upendra Kumar added the comment: Refer to : msg269285 This is the code : ... from pip_tkinter.utils import pip_install_from_PyPI curr_item = self.multi_items_list.scroll_tree.focus() item_dict = self.multi_items_list.scroll_tree.item(curr_item) selected_mod

[issue27051] Create PIP gui

2016-06-26 Thread Upendra Kumar
Upendra Kumar added the comment: I am trying something similar to BrownTruck in issue : https://github.com/pypa/pip/pull/3733 I tried to execute pip.main('install','-U',) from a thread. I got a similar error : Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/p

[issue27051] Create PIP gui

2016-06-26 Thread Upendra Kumar
Upendra Kumar added the comment: In ref. to msg269264: @Terry, I am ready to maintain this project. But for as backup is concerned I really don't know a lot of people and where should I look for them. In reference to msg269038: I was more engrossed in reading through other messages related to

[issue27051] Create PIP gui

2016-06-25 Thread Nick Coghlan
Nick Coghlan added the comment: As far as the security questions go, yes, this is one of the benefits of education focused stributions like the Raspbian used on the Raspberry Pi - they can make extra packages available without introducing kids to the idea of downloading and running arbitrary c

[issue27051] Create PIP gui

2016-06-25 Thread Nick Coghlan
Nick Coghlan added the comment: Right, I think we need to separate two questions here: 1. Making a GUI for pip available *at all*. At the moment, there isn't really one, so even if instructors want to offer one, they can't without writing it first. That's a reported PyPA issue here: https://g

[issue27051] Create PIP gui

2016-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Our messages crossed. See msg269266 for fuller response. -- ___ Python tracker ___ ___ Python-bugs-

[issue27051] Create PIP gui

2016-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upendra: you own the code you are writing. Are you willing to create and maintain for some time a PyPI project? If so, Nick, Donald, or someone should be willing and able to help. If you do so, please make someone a backup co-owner, to make it less likely th

[issue27051] Create PIP gui

2016-06-25 Thread Nick Coghlan
Nick Coghlan added the comment: Terry, would you be open to overseeing the merge of a version that bootstrapped itself as follows: - IDLE gained a pip GUI launcher that, if the pip GUI was not importable, offered to install it from PyPI (always using a "--user" install if it doesn't detect an

[issue27051] Create PIP gui

2016-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Raymond, since you are the one who proposed making a pip-gui accessible from IDLE, you might want to comment on where and how it should be installed. Ned Deily and Nick Coughlin are dubious about putting it anywhere in the stdlib, including idlelib. One alte

[issue27051] Create PIP gui

2016-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am unassigning myself because this has moved out of my sphere of expertise and authority. Someone else should take responsibility for getting this committed. I added this as a dependency of #23551, which is about the IDLE menu entry and invocation of the g

[issue27051] Create PIP gui

2016-06-21 Thread Nick Coghlan
Nick Coghlan added the comment: pip_gui.pip_tkinter.utils.runpip has indeed switched to using subprocess (and yes, the PyPA crew are significantly more careful with backwards compatibility there), but there are still a couple of other API imports in that module: https://github.com/upendra-k14/

[issue27051] Create PIP gui

2016-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I rechecked #23351 and in msg249924 Donald did disclaim any guarantee that using main() would work forever. He suggested instead using subprocess and the command line interface as presumably more stable. In tem_pip_v3.py Upendra switched to using subprocess a

[issue27051] Create PIP gui

2016-06-21 Thread Nick Coghlan
Nick Coghlan added the comment: Unfortunately, Ned's right in highlighting a potential pip integration problem here: pip DOES NOT expose a supported Python API, but pip_tkinter currently imports APIs from within the pip package. This means that somebody doing "pip install --upgrade pip" may br

[issue27051] Create PIP gui

2016-06-21 Thread Upendra Kumar
Upendra Kumar added the comment: Sorry for trouble. I think I messed up with my Python installation. I reinstalled Python and pip. The "pip install command issue" is fixed. -- ___ Python tracker __

[issue27051] Create PIP gui

2016-06-21 Thread Upendra Kumar
Upendra Kumar added the comment: Hey, can anyone help me with this code : ### Python 3.4.3 (default, Oct 14 2015, 20:33:09) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import pi

[issue27051] Create PIP gui

2016-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I seem to have anticipated some of your expansion, but I note this: while Raymond's first post could be interpreted as suggesting a new IDLE feature, with its own PIP menu with multiple options, I immediately said it should be a standalone module that IDLE st

[issue27051] Create PIP gui

2016-06-20 Thread Ned Deily
Ned Deily added the comment: One other possibility: decouple the gui from both Python and pip releases by packaging and, at least initially, releasing it through PyPI as an independent project. That is, after all, the preferred mechanism for adding new functionality to the standard library.

[issue27051] Create PIP gui

2016-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, my response was to your first message. I am just now reading the second. -- ___ Python tracker ___ ___

[issue27051] Create PIP gui

2016-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, I agree with you in principle, and would have preferred that this had been handled by PPA/distutils/PIP folk. But see at least the first 4 messages on the original issue #23551, Feb 28 2015, where Donald Stufft says he would like to see it happen but wou

[issue27051] Create PIP gui

2016-06-20 Thread Ned Deily
Ned Deily added the comment: Let me just expand on my concerns here. I apologize for not thinking about these earlier: I haven't been paying enough attention to this project. And I certainly do not intend this to be a criticism of anyone's work on this, especially your work, Upendra and your

[issue27051] Create PIP gui

2016-06-20 Thread Ned Deily
Ned Deily added the comment: Terry et al: is anyone from the Python Packaging Authority (and or distutils-sig) involved in this project? After all, pip is developed and maintained by them, not by python-dev. I don't think we should be committing code to the Python Standard library for an int

[issue27051] Create PIP gui

2016-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should mention that the reason we have multiple alpha and beta releases for a new version is that new modules such as this are *typically* incomplete, a bit rough in the API, and even buggy, when first committed. We have had the most problems when modules a

[issue27051] Create PIP gui

2016-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upendra, Lorenzo is doing your midterm evaluation. 3.6.0a3 is scheduled for 7/11. A week before that, I would like to see a patch posted here that I could potentially commit. Work out the details of what to include with Lorenzo. The patch should include add

[issue27051] Create PIP gui

2016-06-20 Thread Upendra Kumar
Upendra Kumar added the comment: For blog posts related to this project, here is the blog link : https://scorython.wordpress.com For now, there are following posts : 1. Application Screenshots 2. Design Patterns: How to write reusable and tidy software? ( to be completed) 3. Menace of Global V

[issue27051] Create PIP gui

2016-06-15 Thread lorenzogotuned
lorenzogotuned added the comment: I made it run from the root directory with: python pip_tkinter/__main__.py For sure the right way should be python -m pip_tkinter The first view works fine for PyPi, the second one is just void. I added a issue for an enhancement at

[issue27051] Create PIP gui

2016-06-14 Thread Upendra Kumar
Upendra Kumar added the comment: For executing it currently, we need to run it like this: python -m pip_tkinter Recently, I have changed code. Therefore we can't execute individual pages/layouts by running it with "python -m pip_tkinter.". I will change the code in "__main__" section so that

[issue27051] Create PIP gui

2016-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: install_page.py fails with Traceback (most recent call last): File "F:\Python\mypy\tem2.py", line 611, in install_app = InstallPage(root) TypeError: __init__() missing 1 required positional argument: 'controller' manage_installed_modules_page.py would ha

[issue27051] Create PIP gui

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: sys.executable has the path to the current executable. But you don't even need that. When you import pip, it gets that itself to find site-packages. You are making this way too complicated and are trying to do what pip can do. I don't see that we need to kno

[issue27051] Create PIP gui

2016-06-10 Thread Upendra Kumar
Upendra Kumar added the comment: I, actually want to make a 'configuration object' before running the 'pip' GUI. Therefore one of the parameters of the configuration object will be to detect the path to installed 'python.exe' in Windows. In order to get executable paths I need to read the Wind

[issue27051] Create PIP gui

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't know what you mean by 'print with winreg'. I presume you need admin privilege to alter the registry. But why are you involved with it? I just want you to use the pip interface, and let pip worry about such low level stuff. -- __

[issue27051] Create PIP gui

2016-06-10 Thread Upendra Kumar
Upendra Kumar added the comment: I am unable to print anything using winreg module. Does it require administrative privileges? I am using this code sample : import os import errno import winreg proc_arch = os.environ['PROCESSOR_ARCHITECTURE'].lower() try: proc_arch64 = os.environ['PRO

[issue27051] Create PIP gui

2016-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is apparently no way to insert widgets in a Treeview -- text only. See for instance https://stackoverflow.com/questions/16755176/tkinter-insert-a-combobox-inside-a-treeview-widget. I don't know whether clicks on a row can be pinpointed to a specific fi

[issue27051] Create PIP gui

2016-06-03 Thread Upendra Kumar
Upendra Kumar added the comment: @Terry and @Lorenzo, As shown in the GUI of "install_pyPI_v1.png", I needed to add some tkinter widget into treeview. For example, adding a checkbox to the treeview so that multiple selections are possible. In figure "install_pyPI_v1.png", a checkbox in each r

[issue27051] Create PIP gui

2016-06-01 Thread Upendra Kumar
Upendra Kumar added the comment: Actually now we don't need "pip list" command to get list of installed distributions. We can directly get it : from pip_tkinter._vendor import pkg_resources installed_packages = [p.project_name for p in pkg_resources.working_set] -- _

[issue27051] Create PIP gui

2016-06-01 Thread Upendra Kumar
Upendra Kumar added the comment: @Terry, code updates can be followed on https://github.com/upendra-k14/pip_gui/tree/dump_code Please review the code in dump_code branch. For now, only pip_gui_v3.py is relevant. 1. I had doubt about including a private module from pip ( "pip._vendor" ). As

[issue27051] Create PIP gui

2016-05-25 Thread Upendra Kumar
Changes by Upendra Kumar : Added file: http://bugs.python.org/file42998/update_package_v1.png ___ Python tracker ___ ___ Python-bugs-list mail

[issue27051] Create PIP gui

2016-05-25 Thread Upendra Kumar
Changes by Upendra Kumar : Added file: http://bugs.python.org/file42997/install_local_archive_v1.jpg ___ Python tracker ___ ___ Python-bugs-li

[issue27051] Create PIP gui

2016-05-25 Thread Upendra Kumar
Changes by Upendra Kumar : Added file: http://bugs.python.org/file42996/install_requirement_v1.jpg ___ Python tracker ___ ___ Python-bugs-list

[issue27051] Create PIP gui

2016-05-25 Thread Upendra Kumar
Changes by Upendra Kumar : Added file: http://bugs.python.org/file42995/install_pyPI_v1.png ___ Python tracker ___ ___ Python-bugs-list mailin

[issue27051] Create PIP gui

2016-05-25 Thread Upendra Kumar
Changes by Upendra Kumar : Added file: http://bugs.python.org/file42993/welcome_v1.jpg ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue27051] Create PIP gui

2016-05-25 Thread Upendra Kumar
Changes by Upendra Kumar : Added file: http://bugs.python.org/file42994/select_venv_system.jpg ___ Python tracker ___ ___ Python-bugs-list mai

[issue27051] Create PIP gui

2016-05-25 Thread Upendra Kumar
Upendra Kumar added the comment: I am posting flow of logic for application and related page layouts. Related layouts are : 1. welcome_v1 2. select_venv_system 3. install_pyPI_v1 4. install_local_archive_v1 5. install_pythonlibs_v1 6. install_requirements_v1 7. update_package_v1 8. remove_packa

[issue27051] Create PIP gui

2016-05-25 Thread lorenzogotuned
lorenzogotuned added the comment: @Terry: Fine, we can do it. @Upendra: All the checks you mentioned have to be performed at start-up, so create a script that returns a configuration object for the UI. I think you can try to build a first easy view in which a package is selected (an input form

[issue27051] Create PIP gui

2016-05-24 Thread Upendra Kumar
Upendra Kumar added the comment: 3. Detecting Virtual Environment Virtual environment can be detected using pip module : from pip.locations import running_under_virtualenv if running_under_virtualenv(): #If user provided path for virtual environment, evrything okay else: #Prompt fo

[issue27051] Create PIP gui

2016-05-24 Thread Upendra Kumar
Upendra Kumar added the comment: 2. Detecting different versions of Python installed : For Windows : It is explained in PEP 514 by Steve Dower. Windows has registry keys which can be accessed by winreg or _winreg module. Priority of registry keys : HKEY_CURRENT_USER > HKEY_LOCAL_MACHINE On

[issue27051] Create PIP gui

2016-05-24 Thread Upendra Kumar
Upendra Kumar added the comment: These are some of the code parts which may be necessary : 1. Code for identification of OS from sys import platform if platform.startswith("linux"): #linux elif platform == "darwin": #mac os x else platform == "win32": # Windows -- ___

[issue27051] Create PIP gui

2016-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: My main concern is that the project produce something good enough, even if not 'perfect' and 'complete', to commit before 3.6.0 beta 1, scheduled 09-07 https://www.python.org/dev/peps/pep-0494/. I would actually like to have a preliminary version in alpha 4 (

[issue27051] Create PIP gui

2016-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I posted notice of this issue on #23551. I did some research on simulating user interaction for testing. The results are exemplified in the attached tk.generate_event.py with test setups and assertions. Events are generated, to fire event handlers, with wi

[issue27051] Create PIP gui

2016-05-21 Thread lorenzogotuned
lorenzogotuned added the comment: Ok Upendra. Nice summary. In the next days: - Explain each *top task* (install, unistall, update) and in detail the way the underlying pip commands work (underline mandatory and optional parameters, requests performed to servers, filesystem storage and anythi

[issue27051] Create PIP gui

2016-05-21 Thread Upendra Kumar
Upendra Kumar added the comment: I have uploaded my first iteration of design process for Tkinter. In the uploaded document "Design_notes_v1.docx", we have tried to identify different use cases and tasks to be fulfilled by the PIP GUI. If there are any suggestions regarding further changes or

[issue27051] Create PIP gui

2016-05-18 Thread lorenzogotuned
Changes by lorenzogotuned : -- nosy: +lorenzogotuned ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue27051] Create PIP gui

2016-05-17 Thread Upendra Kumar
New submission from Upendra Kumar: This is new issue opened for creating a GUI (tkinter) front end for pip. It is in continuation with Issue #23551. -- components: Tkinter messages: 265810 nosy: terry.reedy, upendra-k14 priority: normal severity: normal status: open title: Create PIP gu