Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: function missing required argument 'bytes' (pos 2) #127

Open
rickysarraf opened this issue Jun 23, 2020 · 0 comments
Open

TypeError: function missing required argument 'bytes' (pos 2) #127

rickysarraf opened this issue Jun 23, 2020 · 0 comments
Assignees

Comments

@rickysarraf
Copy link
Owner

When run recently on my Debian BSD VM

root@debian-bsd:~# apt-offline  get /tmp/set.uris --bundle /tmp/set.zip --threads 5 --proxy-host aptproxy --proxy-port 3142

Fetching APT Data

WARNING: If you are on a slow connection, it is good to
WARNING: limit the number of threads to a low number like 2.
WARNING: Else higher number of threads executed could cause
WARNING: network congestion and timeouts.

Downloading debianutils - 97 KiB                                                             
Downloading libtext-charwidth-perl - 10 KiB                                                             
Downloading libtext-iconv-perl - 15 KiB                                                             
Downloading perl-openssl-defaults - 7 KiB                                                             
Downloading libnet-ssleay-perl - 313 KiB                                                             
libtext-charwidth-perl done                                                             
perl-openssl-defaults done                                                             
Exception in thread Thread-1:                   ]  14.3% of 443 KiB
Traceback (most recent call last):              ]  16.9% of 443 KiB
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
libtext-iconv-perl done                                                             
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in runf 443 KiB
    self._target(*self._args, **self._kwargs)   ]  24.1% of 443 KiB
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineLib.py", line 696, in run
Exception in thread Thread-5:                   ]  37.4% of 443 KiB
    self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1298, in DataFetcher
Traceback (most recent call last):              ]  41.9% of 443 KiB
Exception in thread Thread-2:##                 ]  44.6% of 443 KiB
Traceback (most recent call last):              ]  49.1% of 443 KiB
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
debianutils done                                                             
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    FetcherInstance.buildChangelog(pkgFile, PackageInstalledVersion[PackageName])
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1123, in buildChangelog
    self.run()s: [####################          ]  66.5% of 443 KiB
  File "/usr/lib/python3.8/threading.py", line 870, in runf 443 KiB
    self._target(*self._args, **self._kwargs)   ]  75.5% of 443 KiB
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineLib.py", line 696, in run
    self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1298, in DataFetcher
    FetcherInstance.buildChangelog(pkgFile, PackageInstalledVersion[PackageName])
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1123, in buildChangelog
    self.run()s: [#########################     ]  83.6% of 443 KiB
  File "/usr/lib/python3.8/threading.py", line 870, in runf 443 KiB
    pkgHandle = DebPackage(pkgPath)#############] 100.0% of 443 KiB
    pkgHandle = DebPackage(pkgPath)
  File "/usr/lib/python3/dist-packages/apt/debfile.py", line 77, in __init__
  File "/usr/lib/python3/dist-packages/apt/debfile.py", line 77, in __init__
    self.open(filename)
  File "/usr/lib/python3/dist-packages/apt/debfile.py", line 89, in open
    self.open(filename)#########################] 100.0% of 443 KiB
  File "/usr/lib/python3/dist-packages/apt/debfile.py", line 89, in open
    self._sections = apt_pkg.TagSection(control)] 100.0% of 443 KiB
TypeError: function missing required argument 'bytes' (pos 2)
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self._sections = apt_pkg.TagSection(control)] 100.0% of 443 KiB
TypeError: function missing required argument 'bytes' (pos 2)
    self.run()s: [##############################] 100.0% of 443 KiB
  File "/usr/lib/python3.8/threading.py", line 870, in run
libnet-ssleay-perl done                                                             
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineLib.py", line 696, in run
    self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1298, in DataFetcher
    FetcherInstance.buildChangelog(pkgFile, PackageInstalledVersion[PackageName])
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1123, in buildChangelog
    pkgHandle = DebPackage(pkgPath)
  File "/usr/lib/python3/dist-packages/apt/debfile.py", line 77, in __init__
    self.open(filename)
  File "/usr/lib/python3/dist-packages/apt/debfile.py", line 89, in open
    self._sections = apt_pkg.TagSection(control)
TypeError: function missing required argument 'bytes' (pos 2)
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineLib.py", line 696, in run
    self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1298, in DataFetcher
    FetcherInstance.buildChangelog(pkgFile, PackageInstalledVersion[PackageName])
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1123, in buildChangelog
    pkgHandle = DebPackage(pkgPath)
  File "/usr/lib/python3/dist-packages/apt/debfile.py", line 77, in __init__
    self.open(filename)
  File "/usr/lib/python3/dist-packages/apt/debfile.py", line 89, in open
    self._sections = apt_pkg.TagSection(control)
TypeError: function missing required argument 'bytes' (pos 2)
Exception in thread Thread-4:###################] 100.0% of 443 KiB
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineLib.py", line 696, in run
    self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1298, in DataFetcher
    FetcherInstance.buildChangelog(pkgFile, PackageInstalledVersion[PackageName])
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1123, in buildChangelog
    pkgHandle = DebPackage(pkgPath)
  File "/usr/lib/python3/dist-packages/apt/debfile.py", line 77, in __init__
    self.open(filename)
  File "/usr/lib/python3/dist-packages/apt/debfile.py", line 89, in open
    self._sections = apt_pkg.TagSection(control)
TypeError: function missing required argument 'bytes' (pos 2)

Downloaded data to /tmp/set.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant