Roundup Tracker - Issues

Issue 2551290

classification
pip install roundup Hangs on Windows 10
Type: crash Severity: major
Components: Installation Versions: 2.3.0
process
Status: fixed fixed
:
: rouilj : Eph, rouilj
Priority: high :

Created on 2023-08-17 13:24 by Eph, last changed 2023-09-06 17:51 by rouilj.

Messages
msg7826 Author: [hidden] (Eph) Date: 2023-08-17 13:24
I tried to follow the instructions to install roundup in a virtual environment. When I got to 
`pip install roundup` it downloaded fine and then just hung (waited 15 minutes just in case). 
This was on Windows 10 with Python 3.7 and pip version 23.2.1.
msg7827 Author: [hidden] (rouilj) Date: 2023-08-17 16:37
Hello Eph:

I was going to ask for some additional info and outline my ability to reproduce it.
While I was doing that I found the bug in setup.py. Apparently this has been
broken on windows since roundup 2.1.0 was released 8-(.

Sorry I didn't catch it earlier. We don't have many windows users, so welcome aboard 8-)?

Python under windows uses 'Lib' and not 'lib' and I was only looking for lower case
lib. This triggers an infinite loop. I will be committing a change shortly that fixes
this in two different ways.

However this won't help you right now. I discovered that 'pip download' runs the
setup.py script from the source distribution 8-(. This means that pip download
also hangs 8-/.

If you still want to use Roundup, download the tarball from

https://files.pythonhosted.org/packages/90/09/2ad041409f24346804a8e5f56f18c2203afa6c2e6e669d839f4649ef3585/roundup-2.3.0.tar.gz
 
using your browser or other means not involving pip 8-).

Untar it using your virtualenv with:

  python -c "import tarfile, sys; tarfile.open(sys.argv[1]).extractall();" roundup-2.3.0.tar.gz

(note the version on the home page is missing the sys import and has the wrong quotes.)

Use cd to change into the roundup-2.3.0 directory and run:

  python setup.py install --prefix=%VIRTUAL_ENV%

Setting an explicit prefix bypasses the buggy code and will install Roundup.

The command line tools (roundup-admin, roundup-server, roundup-demo etc.) will
be installed into the Scripts subdirectory of your virtual environment.
Depending on how you installed Python they should be on your PATH.

I tested this with:

   https://www.python.org/ftp/python/3.7.0/python-3.7.0-amd64.exe

and the 3.11.4 release. I used cmd in a non-elevated/non-admin shell.

   > \some\path\python3 -m venv roundup
   > roundup\Scripts\activate
   (roundup)> python -c "import tarfile, sys; tarfile.open(sys.argv[1]).extractall();" roundup-
2.3.0.tar.gz
   (roundup)> cd roundup-2.3.0
   (roundup)> python setup.py install --prefix=%VIRTUAL_ENV%
    [...]
   (roundup)> roundup-admin
   Roundup 2.3.0 ready for input.
   Type "help" for help.
   Note: command history and editing not available
   roundup> [admin prompt not virtualenv prompt]

I hope this helps.

We don't have many (perhaps any given how long this bug existed) windows users. If you
still want to use Roundup, subscribing to the roundup-users mailing list
(see the Contacts menu item on the home page) is a good idea.

Also, I will be committing a change to enable command line editing under windows
for roundup-admin using pyreadline. You will have to edit the installed admin.py
to use it. Let me know if you are interested and I'll post the directions.
msg7828 Author: [hidden] (rouilj) Date: 2023-08-17 18:29
setup.py fixed in changeset:   7607:bb443db61d1c

web homepage and installation pages have their tarfile extractions examples fixed.

Errata page updated with
https://wiki.roundup-tracker.org/ReleaseErrata#Install_under_windows_fails

I wonder how many people just gave up on Roundup under windows due to this bug....

Setting to pending waiting for reply from Eph.
msg7830 Author: [hidden] (rouilj) Date: 2023-08-25 01:02
Hello Eph:

I meant to follow up on this yesterday. Did my reply help you to get
Roundup installed, or have you decided to pass on investigating Roundup?

I am not available tomorrow, but I will check email on Saturday.

Have a great weekend.

-- rouilj
msg7831 Author: [hidden] (rouilj) Date: 2023-09-06 17:51
No response from original user, but I got a private email that the workaround worked.
S/he is successfully using Roundup on windows.

Closing.
History
Date User Action Args
2023-09-06 17:51:58rouiljsetstatus: pending -> fixed
resolution: remind -> fixed
messages: + msg7831
severity: minor -> major
2023-08-25 01:02:47rouiljsetmessages: + msg7830
2023-08-17 18:29:36rouiljsetpriority: high
status: open -> pending
resolution: remind
messages: + msg7828
2023-08-17 16:37:46rouiljsetstatus: new -> open
assignee: rouilj
messages: + msg7827
nosy: + rouilj
2023-08-17 13:24:05Ephcreate