Someone asked me to modify keepnote . I unpacked the gz file, changed directory to the top level keepnote directory created by tar, then checked to see if keepnote is installed on my system with the command
keepnote
keepnote happens to be written in python2 and there are a bunch of python files in the directory I described. keepnote is not installed on my system. command-not-found imported a file from the local directory and failed. command-not-found clearly won't work with every python2 file, and shouldn't load files from the local directory anyway. I suppose this problem might be pervasive.
invalid syntax (tarfile.py, line 61)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
callback()
File "/usr/lib/command-not-found", line 86, in main
cnf = CommandNotFound(options.data_dir)
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 130, in __init__
self.sources_list = self._getSourcesList()
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 170, in _getSourcesList
from aptsources.sourceslist import SourcesList
File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 32, in <module>
import shutil
File "/usr/lib/python3.2/shutil.py", line 14, in <module>
import tarfile
File "/tmp/keepnote-0.7.8/keepnote/tarfile.py", line 61
raise ImportError, "tarfile does not work for platform==mac" ^
SyntaxError: invalid syntax
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: command-not-found 0.3ubuntu5
ProcVersionSignature: Ubuntu 3.5.0-18.29-generic 3.5.7
Uname: Linux 3.5.0-18-generic x86_64
ApportVersion: 2.6.1-0ubuntu6
Architecture: amd64
Date: Mon Nov 12 10:59:25 2012
InstallationDate: Installed on 2010-12-03 (709 days ago)
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
TERM=dumb
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: command-not-found
UpgradeStatus: Upgraded to quantal on 2012-10-23 (19 days ago)
Someone asked me to modify keepnote . I unpacked the gz file, changed directory to the top level keepnote directory created by tar, then checked to see if keepnote is installed on my system with the command
keepnote
keepnote happens to be written in python2 and there are a bunch of python files in the directory I described. keepnote is not installed on my system. command-not-found imported a file from the local directory and failed. command-not-found clearly won't work with every python2 file, and shouldn't load files from the local directory anyway. I suppose this problem might be pervasive.
$ keepnote /bugs.launchpad .net/command- not-found/ +filebug
Sorry, command-not-found has crashed! Please file a bug report at:
https:/
Please include the following information with the report:
command-not-found version: 0.3
Python version: 3.2.3 final 0
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal
Exception information:
invalid syntax (tarfile.py, line 61) python3/ dist-packages/ CommandNotFound /util.py" , line 24, in crash_guard command- not-found" , line 86, in main (options. data_dir) python3/ dist-packages/ CommandNotFound /CommandNotFoun d.py", line 130, in __init__ sources_ list = self._getSource sList() python3/ dist-packages/ CommandNotFound /CommandNotFoun d.py", line 170, in _getSourcesList sourceslist import SourcesList python3/ dist-packages/ aptsources/ sourceslist. py", line 32, in <module> python3. 2/shutil. py", line 14, in <module> 0.7.8/keepnote/ tarfile. py", line 61
^
Traceback (most recent call last):
File "/usr/lib/
callback()
File "/usr/lib/
cnf = CommandNotFound
File "/usr/lib/
self.
File "/usr/lib/
from aptsources.
File "/usr/lib/
import shutil
File "/usr/lib/
import tarfile
File "/tmp/keepnote-
raise ImportError, "tarfile does not work for platform==mac"
SyntaxError: invalid syntax
ProblemType: Bug ature: Ubuntu 3.5.0-18.29-generic 3.5.7 ture: all DIR=<set>
DistroRelease: Ubuntu 12.10
Package: command-not-found 0.3ubuntu5
ProcVersionSign
Uname: Linux 3.5.0-18-generic x86_64
ApportVersion: 2.6.1-0ubuntu6
Architecture: amd64
Date: Mon Nov 12 10:59:25 2012
InstallationDate: Installed on 2010-12-03 (709 days ago)
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MarkForUpload: True
PackageArchitec
ProcEnviron:
TERM=dumb
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: command-not-found
UpgradeStatus: Upgraded to quantal on 2012-10-23 (19 days ago)