Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479060 - sys-apps/portage: ftp binhost TypeError: %d format: a number is required, not error_perm
Summary: sys-apps/portage: ftp binhost TypeError: %d format: a number is required, not...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Depends on:
Reported: 2013-07-31 02:59 UTC by Jack Morgan (RETIRED)
Modified: 2013-09-28 11:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Jack Morgan (RETIRED) gentoo-dev 2013-07-31 02:59:42 UTC

I'm testing the latest stage3 tarball. I've got FEATURES=getbinpkgs. The default python is set to python3.2. I've can produce the following errors:

livecd ~ # emerge -pv ccache
Traceback (most recent call last):
  File "/usr/lib64/python3.2/urllib/", line 2195, in retrfile
  File "/usr/lib64/python3.2/", line 561, in cwd
    return self.voidcmd(cmd)
  File "/usr/lib64/python3.2/", line 260, in voidcmd
    return self.voidresp()
  File "/usr/lib64/python3.2/", line 234, in voidresp
    resp = self.getresp()
  File "/usr/lib64/python3.2/", line 229, in getresp
    raise error_perm(resp)
ftplib.error_perm: 550 Failed to change directory.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/", line 1052, in emerge_main
  File "/usr/lib64/portage/pym/_emerge/", line 3625, in run_action
    getbinpkgs="--getbinpkg" in myopts)
  File "/usr/lib64/portage/pym/portage/dbapi/", line 624, in populate
  File "/usr/lib64/portage/pym/portage/dbapi/", line 894, in _populate
    f = _urlopen(url, if_modified_since=local_timestamp)
  File "/usr/lib64/portage/pym/portage/proxy/", line 31, in __call__
    return result(*args, **kwargs)
  File "/usr/lib64/portage/pym/portage/util/", line 31, in urlopen
    return _urlopen(url)
  File "/usr/lib64/python3.2/urllib/", line 139, in urlopen
    return, data, timeout)
  File "/usr/lib64/python3.2/urllib/", line 370, in open
    response = self._open(req, data)
  File "/usr/lib64/python3.2/urllib/", line 388, in _open
    '_open', req)
  File "/usr/lib64/python3.2/urllib/", line 348, in _call_chain
    result = func(*args)
  File "/usr/lib64/python3.2/urllib/", line 1355, in ftp_open
    fp, retrlen = fw.retrfile(file, type)
  File "/usr/lib64/python3.2/urllib/", line 2197, in retrfile
    raise URLError('ftp error: %d' % reason) from reason
TypeError: %d format: a number is required, not error_perm


1) change python version from python3.2 to python2.7
2) remove FEATURES=getbinpkgs
Comment 1 dwfreed 2013-07-31 03:05:47 UTC
This looks more like a portage problem than a problem with a stage3.  You should go yell at Zac instead :).