[Bug 1831306] Re: squid-deb-proxy is a python2 script

2021-02-16 Thread Rolf Leggewie
https://irclogs.ubuntu.com/2021/02/16/#ubuntu-devel.html#t10:29

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1831306] Re: squid-deb-proxy is a python2 script

2021-02-16 Thread Julian Andres Klode
** Changed in: squid-deb-proxy (Ubuntu Bionic)
   Status: New => Incomplete

** Changed in: squid-deb-proxy (Ubuntu Bionic)
   Status: Incomplete => Opinion

** Changed in: squid-deb-proxy (Ubuntu Bionic)
   Status: Opinion => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1831306] Re: squid-deb-proxy is a python2 script

2021-02-02 Thread Rolf Leggewie
** Description changed:

  [ IMPACT ]
  
  squid-deb-proxy is a python2 script.  I suggest to change the shebang to
  /usr/bin/python2 to reflect this.  The script crashes for users who have
  made python3 the default in bionic.  Anyone with python as python2 is
- fine (the default), but somehow who likes to stay in LTS yet program in
- python3 this results in avoidable and easily fixable problem.
+ fine (the default), but someone who likes to stay in bionic LTS yet
+ program in python3 this results in an avoidable and easily fixable
+ problem.
  
  [ TEST CASE ]
  
  Compare "python2 /usr/share/squid-deb-proxy-client/apt-avahi-discover"
  vs. "python3 /usr/share/squid-deb-proxy-client/apt-avahi-discover".
  
  [ REGRESSION POTENTIAL ]
  
  There should not be any.  It just makes the implicit assumption that the
  script runs via python2 explicit.
  
  The only time there could potentially be an issue is if python2 has been
  explicitly removed AND python pointed to python3.  I have a hard time
  thinking why somebody would do that and such a setup would certainly
  break in a number of other situations.

** Description changed:

  [ IMPACT ]
  
  squid-deb-proxy is a python2 script.  I suggest to change the shebang to
  /usr/bin/python2 to reflect this.  The script crashes for users who have
  made python3 the default in bionic.  Anyone with python as python2 is
  fine (the default), but someone who likes to stay in bionic LTS yet
  program in python3 this results in an avoidable and easily fixable
  problem.
  
  [ TEST CASE ]
  
  Compare "python2 /usr/share/squid-deb-proxy-client/apt-avahi-discover"
  vs. "python3 /usr/share/squid-deb-proxy-client/apt-avahi-discover".
  
  [ REGRESSION POTENTIAL ]
  
- There should not be any.  It just makes the implicit assumption that the
- script runs via python2 explicit.
+ There should not be (m)any.  It just makes the implicit assumption that
+ the script runs via python2 explicit.
  
  The only time there could potentially be an issue is if python2 has been
  explicitly removed AND python pointed to python3.  I have a hard time
  thinking why somebody would do that and such a setup would certainly
  break in a number of other situations.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1831306] Re: squid-deb-proxy is a python2 script

2021-02-02 Thread Rolf Leggewie
Julian, thank you for your comment.  I'm not sure I follow you.

https://packages.ubuntu.com/bionic/squid-deb-proxy-client certainly has
a dependency declared on python.  And while the default in bionic is for
python to be python2, is there a reason not to try and make the
experience better for those that want an LTS but program in python3 (I
belong to that camp)?  I see very little downside and if this had been
published two years earlier we could have made life different for a good
number of people.

** Description changed:

- squid-deb-proxy is a apparently a python2 script.  I suggest to change
- the shebang to /usr/bin/python2 to reflect this.  The script crashes for
- users who have made python3 the default.
+ [ IMPACT ]
+ 
+ squid-deb-proxy is a python2 script.  I suggest to change the shebang to
+ /usr/bin/python2 to reflect this.  The script crashes for users who have
+ made python3 the default in bionic.  Anyone with python as python2 is
+ fine (the default), but somehow who likes to stay in LTS yet program in
+ python3 this results in avoidable and easily fixable problem.
+ 
+ [ TEST CASE ]
+ 
+ Compare "python2 /usr/share/squid-deb-proxy-client/apt-avahi-discover"
+ vs. "python3 /usr/share/squid-deb-proxy-client/apt-avahi-discover".
+ 
+ [ REGRESSION POTENTIAL ]
+ 
+ There should not be any.  It just makes the implicit assumption that the
+ script runs via python2 explicit.
+ 
+ The only time there could potentially be an issue is if python2 has been
+ explicitly removed AND python pointed to python3.  I have a hard time
+ thinking why somebody would do that and such a setup would certainly
+ break in a number of other situations.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1831306] Re: squid-deb-proxy is a python2 script

2021-02-02 Thread Julian Andres Klode
The real problem here is missing a python dependency in the package for
bionic. In bionic, /usr/bin/python always points to /usr/bin/python2,
both are installed by python-minimal; it's only in focal that we have
python-is-python{2,3} packages allowing to choose.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1831306] Re: squid-deb-proxy is a python2 script

2021-01-09 Thread Mathew Hodson
** Also affects: squid-deb-proxy (Ubuntu Bionic)
   Importance: Undecided
   Status: New

** Changed in: squid-deb-proxy (Ubuntu)
   Importance: Undecided => Low

** Changed in: squid-deb-proxy (Ubuntu Bionic)
   Importance: Undecided => Low

** Changed in: squid-deb-proxy (Ubuntu)
   Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1831306] Re: squid-deb-proxy is a python2 script

2021-01-08 Thread Rolf Leggewie
** Patch added: "change the shebang in the affected script (patch)"
   
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+attachment/5450988/+files/LP1831306.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1831306] Re: squid-deb-proxy is a python2 script

2021-01-08 Thread Rolf Leggewie
reopening to get a fix in to bionic

** Changed in: squid-deb-proxy (Ubuntu)
   Status: Fix Released => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1831306] Re: squid-deb-proxy is a python2 script

2020-04-22 Thread Rolf Leggewie
the script was migrated to python3 at least in focal

https://bazaar.launchpad.net/~squid-deb-proxy-developers/squid-deb-
proxy/trunk/view/head:/apt-avahi-discover

** Changed in: squid-deb-proxy (Ubuntu)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1831306] Re: squid-deb-proxy is a python2 script

2019-08-24 Thread Rolf Leggewie
** Changed in: squid-deb-proxy (Ubuntu)
   Status: Expired => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1831306] Re: squid-deb-proxy is a python2 script

2019-08-12 Thread Launchpad Bug Tracker
[Expired for squid-deb-proxy (Ubuntu) because there has been no activity
for 60 days.]

** Changed in: squid-deb-proxy (Ubuntu)
   Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1831306] Re: squid-deb-proxy is a python2 script

2019-06-13 Thread Rolf Leggewie
My apologies for the terrible description.

Your attempt to run /usr/share/squid-deb-proxy-client/apt-avahi-discover
through python3 on bionic will run into problems.  There are many other
cases like this on bionic if you switch to python3 as default.

** Tags added: bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1831306] Re: squid-deb-proxy is a python2 script

2019-06-03 Thread Andreas Hasenack
Is the above what you meant?

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to squid-deb-proxy in Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1831306] Re: squid-deb-proxy is a python2 script

2019-06-03 Thread Andreas Hasenack
Which script do you mean, exactly? And on which ubuntu release?

/usr/share/squid-deb-proxy-client/apt-avahi-discover perhaps?

** Changed in: squid-deb-proxy (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to squid-deb-proxy in Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1831306] Re: squid-deb-proxy is a python2 script

2019-06-03 Thread Andreas Hasenack
Is the above what you meant?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1831306] Re: squid-deb-proxy is a python2 script

2019-06-03 Thread Andreas Hasenack
Which script do you mean, exactly? And on which ubuntu release?

/usr/share/squid-deb-proxy-client/apt-avahi-discover perhaps?

** Changed in: squid-deb-proxy (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1831306] Re: squid-deb-proxy is a python2 script

2019-06-03 Thread Andreas Hasenack
root@bionic-squid-deb-proxy-py2:~# 
/usr/share/squid-deb-proxy-client/apt-avahi-discover
http://10.0.100.136:8000/

root@bionic-squid-deb-proxy-py2:~# python3 
/usr/share/squid-deb-proxy-client/apt-avahi-discover
  File "/usr/share/squid-deb-proxy-client/apt-avahi-discover", line 130
print "http://[%s]:%s/; % (ip, port)
  ^
SyntaxError: invalid syntax

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to squid-deb-proxy in Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1831306] Re: squid-deb-proxy is a python2 script

2019-06-03 Thread Andreas Hasenack
root@bionic-squid-deb-proxy-py2:~# 
/usr/share/squid-deb-proxy-client/apt-avahi-discover
http://10.0.100.136:8000/

root@bionic-squid-deb-proxy-py2:~# python3 
/usr/share/squid-deb-proxy-client/apt-avahi-discover
  File "/usr/share/squid-deb-proxy-client/apt-avahi-discover", line 130
print "http://[%s]:%s/; % (ip, port)
  ^
SyntaxError: invalid syntax

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831306

Title:
  squid-deb-proxy is a python2 script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1831306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs