Open GoogleCodeExporter opened 9 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
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
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
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
[...]
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
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
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
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
Original issue reported on code.google.com by
kibris....@gmail.com
on 13 Jan 2010 at 11:52