Open Luxcium opened 4 years ago
when triying to install nltk
directly:
[luxcium@corsair1 explainshell]$ cat requirements.txt
Flask==0.12
MarkupSafe==1.0
nltk==2.0.5
nose==1.3.0
pymongo==2.6
bashlex==0.12
[luxcium@corsair1 explainshell]$ pip install nltk
Collecting nltk
Downloading https://files.pythonhosted.org/packages/92/75/ce35194d8e3022203cca0d2f896dbb88689f9b3fce8e9f9cff942913519d/nltk-3.5.zip (1.4MB)
|████████████████████████████████| 1.4MB 2.4MB/s
Collecting click
Downloading https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl (82kB)
|████████████████████████████████| 92kB 8.2MB/s
Collecting joblib
Downloading https://files.pythonhosted.org/packages/51/dd/0e015051b4a27ec5a58b02ab774059f3289a94b0906f880a3f9507e74f38/joblib-0.16.0-py3-none-any.whl (300kB)
|████████████████████████████████| 307kB 10.9MB/s
Collecting regex
Downloading https://files.pythonhosted.org/packages/33/2e/aaaf49e674be8acb82a087060c9b112e80abcc7ebe5c47074a9e5b22f33f/regex-2020.6.8-cp38-cp38-manylinux2010_x86_64.whl (673kB)
|████████████████████████████████| 675kB 12.1MB/s
Collecting tqdm
Downloading https://files.pythonhosted.org/packages/46/62/7663894f67ac5a41a0d8812d78d9d2a9404124051885af9d77dc526fb399/tqdm-4.47.0-py2.py3-none-any.whl (66kB)
|████████████████████████████████| 71kB 6.5MB/s
Installing collected packages: click, joblib, regex, tqdm, nltk
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission non accordée: '/usr/local/lib/python3.8'
Consider using the `--user` option or check the permissions.
using the --user
option
[luxcium@corsair1 explainshell]$ pip install nltk --user
Collecting nltk
Using cached https://files.pythonhosted.org/packages/92/75/ce35194d8e3022203cca0d2f896dbb88689f9b3fce8e9f9cff942913519d/nltk-3.5.zip
Collecting click
Using cached https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl
Collecting joblib
Using cached https://files.pythonhosted.org/packages/51/dd/0e015051b4a27ec5a58b02ab774059f3289a94b0906f880a3f9507e74f38/joblib-0.16.0-py3-none-any.whl
Collecting regex
Using cached https://files.pythonhosted.org/packages/33/2e/aaaf49e674be8acb82a087060c9b112e80abcc7ebe5c47074a9e5b22f33f/regex-2020.6.8-cp38-cp38-manylinux2010_x86_64.whl
Collecting tqdm
Using cached https://files.pythonhosted.org/packages/46/62/7663894f67ac5a41a0d8812d78d9d2a9404124051885af9d77dc526fb399/tqdm-4.47.0-py2.py3-none-any.whl
Installing collected packages: click, joblib, regex, tqdm, nltk
Running setup.py install for nltk ... done
Successfully installed click-7.1.2 joblib-0.16.0 nltk-3.5 regex-2020.6.8 tqdm-4.47.0
so I installed each packages separately but had to install a different version of one (nltk-3.5
) package:
[luxcium@corsair1 explainshell]$ cat requirements.txt
Flask==0.12
MarkupSafe==1.0
nltk==2.0.5
nose==1.3.0
pymongo==2.6
bashlex==0.12
[luxcium@corsair1 explainshell]$
[luxcium@corsair1 explainshell]$ cat requirements.txt
Flask==0.12
MarkupSafe==1.0
nltk==2.0.5
nose==1.3.0
pymongo==2.6
bashlex==0.12
[luxcium@corsair1 explainshell]$ pip install --user
ERROR: You must give at least one requirement to install (see "pip help install")
[luxcium@corsair1 explainshell]$ pip install --user Flask==0.12
Collecting Flask==0.12
Using cached https://files.pythonhosted.org/packages/0e/e9/37ee66dde483dceefe45bb5e92b387f990d4f097df40c400cf816dcebaa4/Flask-0.12-py2.py3-none-any.whl
Collecting Werkzeug>=0.7
Downloading https://files.pythonhosted.org/packages/cc/94/5f7079a0e00bd6863ef8f1da638721e9da21e5bacee597595b318f71d62e/Werkzeug-1.0.1-py2.py3-none-any.whl (298kB)
|████████████████████████████████| 307kB 2.1MB/s
Collecting itsdangerous>=0.21
Downloading https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl
Collecting Jinja2>=2.4
Downloading https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl (125kB)
|████████████████████████████████| 133kB 5.0MB/s
Requirement already satisfied: click>=2.0 in /home/luxcium/.local/lib/python3.8/site-packages (from Flask==0.12) (7.1.2)
Collecting MarkupSafe>=0.23
Downloading https://files.pythonhosted.org/packages/4b/20/f6d7648c81cb84815d0be935d5c74cd1cc0239e43eadb1a61062d34b6543/MarkupSafe-1.1.1-cp38-cp38-manylinux1_x86_64.whl
Installing collected packages: Werkzeug, itsdangerous, MarkupSafe, Jinja2, Flask
Successfully installed Flask-0.12 Jinja2-2.11.2 MarkupSafe-1.1.1 Werkzeug-1.0.1 itsdangerous-1.1.0
[luxcium@corsair1 explainshell]$ pip install --user MarkupSafe==1.0
Collecting MarkupSafe==1.0
Using cached https://files.pythonhosted.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-1.0.tar.gz
Installing collected packages: MarkupSafe
Found existing installation: MarkupSafe 1.1.1
Uninstalling MarkupSafe-1.1.1:
Successfully uninstalled MarkupSafe-1.1.1
Running setup.py install for MarkupSafe ... done
Successfully installed MarkupSafe-1.0
[luxcium@corsair1 explainshell]$ pip install --user nltk==2.0.5
Collecting nltk==2.0.5
Using cached https://files.pythonhosted.org/packages/50/9e/39418026bf8013bbc2852c7aec3fb21e4339f6cd694934496d67a19b53b8/nltk-2.0.5.tar.gz
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z2spfl18/nltk/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z2spfl18/nltk/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-z2spfl18/nltk/pip-egg-info
cwd: /tmp/pip-install-z2spfl18/nltk/
Complete output (31 lines):
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.21.tar.gz
Traceback (most recent call last):
File "/tmp/pip-install-z2spfl18/nltk/distribute_setup.py", line 143, in use_setuptools
raise ImportError
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-z2spfl18/nltk/setup.py", line 23, in <module>
distribute_setup.use_setuptools()
File "/tmp/pip-install-z2spfl18/nltk/distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/tmp/pip-install-z2spfl18/nltk/distribute_setup.py", line 123, in _do_download
tarball = download_setuptools(version, download_base,
File "/tmp/pip-install-z2spfl18/nltk/distribute_setup.py", line 193, in download_setuptools
src = urlopen(url)
File "/usr/lib64/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib64/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib64/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/usr/lib64/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib64/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib64/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: SSL is required
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
[luxcium@corsair1 explainshell]$ pip install --user nltk
Requirement already satisfied: nltk in /home/luxcium/.local/lib/python3.8/site-packages (3.5)
Requirement already satisfied: click in /home/luxcium/.local/lib/python3.8/site-packages (from nltk) (7.1.2)
Requirement already satisfied: joblib in /home/luxcium/.local/lib/python3.8/site-packages (from nltk) (0.16.0)
Requirement already satisfied: regex in /home/luxcium/.local/lib/python3.8/site-packages (from nltk) (2020.6.8)
Requirement already satisfied: tqdm in /home/luxcium/.local/lib/python3.8/site-packages (from nltk) (4.47.0)
[luxcium@corsair1 explainshell]$ pip install --user nose==1.3.0
Collecting nose==1.3.0
Downloading https://files.pythonhosted.org/packages/de/f4/b205776cf5cbddbc1e2c3223fa29c0d05f18a9b8afad8cfa23438c217434/nose-1.3.0.tar.gz (404kB)
|████████████████████████████████| 409kB 2.1MB/s
Installing collected packages: nose
Running setup.py install for nose ... done
Successfully installed nose-1.3.0
[luxcium@corsair1 explainshell]$ pip install --user pymongo==2.6
Collecting pymongo==2.6
Downloading https://files.pythonhosted.org/packages/ad/76/5e9067199e9b262ef54c3bcfeaa64ac9b8e15e4b545e232d69ce793a61b8/pymongo-2.6.tar.gz (322kB)
|████████████████████████████████| 327kB 2.4MB/s
Installing collected packages: pymongo
Running setup.py install for pymongo ... done
Successfully installed pymongo-2.6
[luxcium@corsair1 explainshell]$ pip install --user bashlex==0.12
Collecting bashlex==0.12
Downloading https://files.pythonhosted.org/packages/e6/83/8f35a0a430908e5c964fbf31a8e46fbac125d1bbf066a1e26110c618a3ff/bashlex-0.12.tar.gz (55kB)
|████████████████████████████████| 61kB 1.5MB/s
Collecting enum34
Downloading https://files.pythonhosted.org/packages/63/f6/ccb1c83687756aeabbf3ca0f213508fcfb03883ff200d201b3a4c60cedcc/enum34-1.1.10-py3-none-any.whl
Installing collected packages: enum34, bashlex
Running setup.py install for bashlex ... done
Successfully installed bashlex-0.12 enum34-1.1.10
[luxcium@corsair1 explainshell]$
[luxcium@corsair1 explainshell]$ mongorestore dump/explainshell && mongorestore -d explainshell_tests dump/explainshell
2020-07-04T18:02:48.332-0400 preparing collections to restore from
2020-07-04T18:02:48.332-0400 don't know what to do with file "dump/explainshell/classifier.bson", skipping...
2020-07-04T18:02:48.332-0400 don't know what to do with file "dump/explainshell/system.indexes.bson", skipping...
2020-07-04T18:02:48.332-0400 0 document(s) restored successfully. 0 document(s) failed to restore.
2020-07-04T18:02:48.345-0400 the --db and --collection args should only be used when restoring from a BSON file. Other uses are deprecated and will not exist in the future; use --nsInclude instead
2020-07-04T18:02:48.345-0400 building a list of collections to restore from dump/explainshell dir
2020-07-04T18:02:48.348-0400 no metadata; falling back to system.indexes
2020-07-04T18:02:48.394-0400 restoring explainshell_tests.classifier from dump/explainshell/classifier.bson
2020-07-04T18:02:48.409-0400 restoring indexes for collection explainshell_tests.classifier from metadata
2020-07-04T18:02:48.453-0400 finished restoring explainshell_tests.classifier (517 documents, 0 failures)
2020-07-04T18:02:48.453-0400 517 document(s) restored successfully. 0 document(s) failed to restore.
[luxcium@corsair1 explainshell]$ make tests
nosetests --with-doctest tests/ explainshell/
EEEEEEEEEEEEEEEE
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (matcher.py, line 264))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib64/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/tests/helpers.py", line 1, in <module>
from explainshell import matcher, store, errors, options, helpconstants
File "/home/luxcium/src/explainshell/explainshell/matcher.py", line 264
except errors.ProgramDoesNotExist, e:
^
SyntaxError: invalid syntax
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (util.py, line 46))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib64/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/tests/test-fixer.py", line 4, in <module>
from explainshell import fixer, options, store
File "/home/luxcium/src/explainshell/explainshell/fixer.py", line 3, in <module>
from explainshell import util
File "/home/luxcium/src/explainshell/explainshell/util.py", line 46
for k, g in itertools.groupby(enumerate(l), lambda (i, x): i-key(x)):
^
SyntaxError: invalid syntax
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (manager.py, line 116))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib64/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/tests/test-integration.py", line 3, in <module>
from explainshell import manager, config, matcher
File "/home/luxcium/src/explainshell/explainshell/manager.py", line 116
except errors.EmptyManpage, e:
^
SyntaxError: invalid syntax
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (manager.py, line 116))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib64/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/tests/test-manager.py", line 3, in <module>
from explainshell import manager, config, store, errors
File "/home/luxcium/src/explainshell/explainshell/manager.py", line 116
except errors.EmptyManpage, e:
^
SyntaxError: invalid syntax
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (store.py, line 292))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib64/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/tests/test-manpage.py", line 3, in <module>
from explainshell import manpage, store
File "/home/luxcium/src/explainshell/explainshell/manpage.py", line 3, in <module>
from explainshell import config, store, errors
File "/home/luxcium/src/explainshell/explainshell/store.py", line 292
results.sort(key=lambda (oid, m): m.section == section, reverse=True)
^
SyntaxError: invalid syntax
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (matcher.py, line 264))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib64/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/tests/test-matcher.py", line 5, in <module>
from explainshell import matcher, errors, helpconstants
File "/home/luxcium/src/explainshell/explainshell/matcher.py", line 264
except errors.ProgramDoesNotExist, e:
^
SyntaxError: invalid syntax
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (store.py, line 292))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib64/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/tests/test-options.py", line 3, in <module>
from explainshell import options, store, errors
File "/home/luxcium/src/explainshell/explainshell/options.py", line 3, in <module>
from explainshell import store
File "/home/luxcium/src/explainshell/explainshell/store.py", line 292
results.sort(key=lambda (oid, m): m.section == section, reverse=True)
^
SyntaxError: invalid syntax
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (util.py, line 46))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 244, in load_module
return load_package(name, filename)
File "/usr/lib64/python3.8/imp.py", line 216, in load_package
return _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/explainshell/algo/__init__.py", line 2, in <module>
import explainshell.util
File "/home/luxcium/src/explainshell/explainshell/util.py", line 46
for k, g in itertools.groupby(enumerate(l), lambda (i, x): i-key(x)):
^
SyntaxError: invalid syntax
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (util.py, line 46))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib64/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/explainshell/fixer.py", line 3, in <module>
from explainshell import util
File "/home/luxcium/src/explainshell/explainshell/util.py", line 46
for k, g in itertools.groupby(enumerate(l), lambda (i, x): i-key(x)):
^
SyntaxError: invalid syntax
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (manager.py, line 116))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib64/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 779, in exec_module
File "<frozen importlib._bootstrap_external>", line 916, in get_code
File "<frozen importlib._bootstrap_external>", line 846, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/explainshell/manager.py", line 116
except errors.EmptyManpage, e:
^
SyntaxError: invalid syntax
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (store.py, line 292))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib64/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/explainshell/manpage.py", line 3, in <module>
from explainshell import config, store, errors
File "/home/luxcium/src/explainshell/explainshell/store.py", line 292
results.sort(key=lambda (oid, m): m.section == section, reverse=True)
^
SyntaxError: invalid syntax
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (matcher.py, line 264))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib64/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 779, in exec_module
File "<frozen importlib._bootstrap_external>", line 916, in get_code
File "<frozen importlib._bootstrap_external>", line 846, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/explainshell/matcher.py", line 264
except errors.ProgramDoesNotExist, e:
^
SyntaxError: invalid syntax
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (store.py, line 292))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib64/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/explainshell/options.py", line 3, in <module>
from explainshell import store
File "/home/luxcium/src/explainshell/explainshell/store.py", line 292
results.sort(key=lambda (oid, m): m.section == section, reverse=True)
^
SyntaxError: invalid syntax
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (store.py, line 292))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib64/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 779, in exec_module
File "<frozen importlib._bootstrap_external>", line 916, in get_code
File "<frozen importlib._bootstrap_external>", line 846, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/explainshell/store.py", line 292
results.sort(key=lambda (oid, m): m.section == section, reverse=True)
^
SyntaxError: invalid syntax
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (util.py, line 46))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib64/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 779, in exec_module
File "<frozen importlib._bootstrap_external>", line 916, in get_code
File "<frozen importlib._bootstrap_external>", line 846, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/explainshell/util.py", line 46
for k, g in itertools.groupby(enumerate(l), lambda (i, x): i-key(x)):
^
SyntaxError: invalid syntax
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (views.py, line 39))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/failure.py", line 38, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/loader.py", line 411, in loadTestsFromName
module = self.importer.importFromPath(
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/luxcium/.local/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib64/python3.8/imp.py", line 244, in load_module
return load_package(name, filename)
File "/usr/lib64/python3.8/imp.py", line 216, in load_package
return _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luxcium/src/explainshell/explainshell/web/__init__.py", line 4, in <module>
from explainshell.web import views
File "/home/luxcium/src/explainshell/explainshell/web/views.py", line 39
except errors.ProgramDoesNotExist, e:
^
SyntaxError: invalid syntax
----------------------------------------------------------------------
Ran 16 tests in 0.002s
FAILED (errors=16)
make: *** [Makefile:2: tests] Error 1
Most of these issues are due to your use of Python 3 and module versions. The application was written with Python 2.
The following Python modules versions work with Python 2.7.x. Create a Python virtual environment with the Python 2 interpreter.
pip install virtualenv
virtaulenv -p $(which python2) venv
source venv/bin/activate
python --version
Update your requirements.txt to more current Python module versions.
requirements.txt Flask==1.1.4 MarkupSafe==1.1.1 nltk==3.4.5 nose==1.3.7 pymongo==2.9.5 bashlex==0.15
When finished with Python 2, close the shell or deactivate
.
I got theses error while installing...