baiyunping333 / cyg-apt

Automatically exported from code.google.com/p/cyg-apt
0 stars 0 forks source link

Incompatibility with cygwin 1.7 release #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install cygwin 1.7 with gnupg and patch
2. Download and unpack cyg-apt-1.0.7-1.tar.bz2
3. Download patch cyg-apt-fix-quote-parsing-in-setupini.patch
4. Applu patch: patch cyg-apt < cyg-apt-fix-quote-parsing-in-setupini.patch
5. ./install-cyg-apt.sh

What is the expected output? What do you see instead?
I see this:
gpg: key 676041BA: "Cygwin <cygwin@cygwin.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
cyg-apt: creating /home/User/.cyg-apt
getting /etc/setup/setup-2.ini
Traceback (most recent call last):
  File "/usr/bin/cyg-apt", line 1581, in <module>
    main()
  File "/usr/bin/cyg-apt", line 1533, in main
    cas.setup()
  File "/usr/bin/cyg-apt", line 152, in setup
    self.update(self.cyg_apt_rc)
TypeError: update() takes at least 3 arguments (2 given)

What version of the product are you using? On what operating system?
cyg-apt 1.0.7-1
cygwin 1.7.1
python 2.5
windows XP Pro, SP3

Please provide any additional information below.
I think the problem lies in the fatc that it is assumed cygwin 1.7 is still
in beta.

Original issue reported on code.google.com by kibris....@gmail.com on 13 Jan 2010 at 11:52

GoogleCodeExporter commented 8 years ago
I get this error with 1.7.1:

# cyg-apt upgrade
Please be advised that this is a major release.
/bin/cyg-apt:308: DeprecationWarning: raising a string exception is deprecated
raise 'URG'
Traceback (most recent call last):
   File "/bin/cyg-apt", line 900, in <module>
     get_setup_ini ()
   File "/bin/cyg-apt", line 308, in get_setup_ini
     raise 'URG'
URG

Original comment by ajkes...@gmail.com on 26 Jan 2010 at 7:19

GoogleCodeExporter commented 8 years ago
Installation on cygwin-1.7.1-1:

pwc@mike cyg-apt-1.0.7-1> ./install-cyg-apt.sh
gpg: directory `/home/pwc/.gnupg' created
gpg: new configuration file `/home/pwc/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/pwc/.gnupg/gpg.conf' are not yet active during 
this run
gpg: keyring `/home/pwc/.gnupg/secring.gpg' created
gpg: keyring `/home/pwc/.gnupg/pubring.gpg' created
gpg: /home/pwc/.gnupg/trustdb.gpg: trustdb created
gpg: key 676041BA: public key "Cygwin <cygwin@cygwin.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no ultimately trusted keys found
Traceback (most recent call last):
  File "/usr/bin/cyg-apt", line 1581, in <module>
    main()
  File "/usr/bin/cyg-apt", line 1464, in main
    cas = CygAptSetup(main_cygwin_p)
  File "/usr/bin/cyg-apt", line 57, in __init__
    if os.environ['TMP']:
  File "/usr/lib/python2.5/UserDict.py", line 22, in __getitem__
    raise KeyError(key)
KeyError: 'TMP'

Original comment by pwcazen...@gmail.com on 1 Feb 2010 at 3:05

GoogleCodeExporter commented 8 years ago
Two different errors are occurring here.  The error reported by pwcazenave is 
due to 
the call os.environ['TMP'] throwing an exception.  The second, reported by the 
original 
reporter, is caused by looking for the file setup-2.ini when in cygwin 1.7.1 
the 
filename is actually just setup.ini.  They must have changed it back to 
setup.ini in 
between 1.7.0 and 1.7.1.

Original comment by geoff.sa...@gmail.com on 13 Feb 2010 at 12:31

GoogleCodeExporter commented 8 years ago
C:\cygwin\bin>uname -a
CYGWIN_NT-5.1 L40594 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin

$ cyg-apt install ssmtp
Please be advised that this is a major release.
/usr/bin/cyg-apt:308: DeprecationWarning: raising a string exception is 
deprecated
  raise 'URG'
Traceback (most recent call last):
  File "/usr/bin/cyg-apt", line 900, in <module>
    get_setup_ini ()
  File "/usr/bin/cyg-apt", line 308, in get_setup_ini
    raise 'URG'
URG

Original comment by kalpeshs...@gmail.com on 15 Sep 2010 at 11:01

GoogleCodeExporter commented 8 years ago
[...]
File "/usr/bin/cyg-apt", line 57, in __init__
    if os.environ['TMP']:
[...]

This error message caused by a non existing environment value.
Try to export TMP variable: $ export TMP=/tmp

Original comment by gern...@gmail.com on 28 Apr 2011 at 4:44

GoogleCodeExporter commented 8 years ago
I got issue the issue from the first post too. (kibris....@gmail.com)

Strangely enough, it runs, but I get the following error:

$ cyg-apt list
cyg-apt: downloading: http://cygwin.mirrors.hoobly.com/setup-2.bz2
cyg-apt: downloading: http://cygwin.mirrors.hoobly.com/setup-2.ini
cyg-apt: bad URL http://cygwin.mirrors.hoobly.com/setup-2.ini, exiting.

Please fix this if you can. At least work around somebody's server not having 
the rightly named ini file.

Original comment by Vigilant...@gmail.com on 3 Feb 2012 at 12:46

GoogleCodeExporter commented 8 years ago
It looks like the filename isn't the only problem.  I think there should be a 
discovery mechanism in place for that instead of relying on hardcoded filenames 
(if that's going to change often), however, even after the right file is added 
it appears there are schema differences between the old setup.ini files and the 
new ones.

Original comment by mrdanpsmith@gmail.com on 26 Oct 2012 at 9:08

GoogleCodeExporter commented 8 years ago
This issue is fixed in my fork of the project:

https://github.com/nylen/cyg-apt

Original comment by jny...@gmail.com on 4 Dec 2012 at 9:58