Closed ShashankGargeshwari closed 7 years ago
It is customary and very helpful to provide a build log. Otherwise I am completely guessing as to what you might have done/not done.
Obvious question: Did you install it?
Aaaaaaaaahhhh, disadvantages of being a noob I guess. I'll try attaching the build Log in a little while. Bear with me.
I did "build" and "install" it, but all nosetests fail. I'll get back in a little while.
Okay, Couldn't figure out how to include build files, but I could try giving more perspective in the mean time.
In usr/local/bin I can find gambit-lp, gambit-gnm, etc etc and these commands work from the terminal.
shashank@shashank-Lenovo-IdeaPad-Y510P:~/Downloads/Archives$ cd Gambit
shashank@shashank-Lenovo-IdeaPad-Y510P:~/Downloads/Archives/Gambit$ ls
gambit-13.1.2 gambit-13.1.2.tar.gz
shashank@shashank-Lenovo-IdeaPad-Y510P:~/Downloads/Archives/Gambit$ cd gambit-13.1.2
shashank@shashank-Lenovo-IdeaPad-Y510P:~/Downloads/Archives/Gambit/gambit-13.1.2$ ls
acinclude.m4 ChangeLog config.log configure COPYING gambit-enummixed gambit-gnm gambit-liap gambit-nfg2html gambit-simpdiv INSTALL license.rtf Makefile missing README
aclocal.m4 compile config.status configure.ac depcomp gambit-enumpoly gambit-ipa gambit-logit gambit-nfg2tex gambit.spec install-sh ltmain.sh Makefile.am mkinstalldirs src
AUTHORS config.guess config.sub contrib gambit.desktop gambit-enumpure gambit-lcp gambit-lp gambit-nfg-logitdyn gambit.wxs libtool m4 Makefile.in NEWS
shashank@shashank-Lenovo-IdeaPad-Y510P:~/Downloads/Archives/Gambit/gambit-13.1.2$ ./config
bash: ./config: No such file or directory
shashank@shashank-Lenovo-IdeaPad-Y510P:~/Downloads/Archives/Gambit/gambit-13.1.2$ ./config
bash: ./config: No such file or directory
shashank@shashank-Lenovo-IdeaPad-Y510P:~/Downloads/Archives/Gambit/gambit-13.1.2$ cd src
shashank@shashank-Lenovo-IdeaPad-Y510P:~/Downloads/Archives/Gambit/gambit-13.1.2/src$ cd ..
shashank@shashank-Lenovo-IdeaPad-Y510P:~/Downloads/Archives/Gambit/gambit-13.1.2$ ls
acinclude.m4 ChangeLog config.log configure COPYING gambit-enummixed gambit-gnm gambit-liap gambit-nfg2html gambit-simpdiv INSTALL license.rtf Makefile missing README
aclocal.m4 compile config.status configure.ac depcomp gambit-enumpoly gambit-ipa gambit-logit gambit-nfg2tex gambit.spec install-sh ltmain.sh Makefile.am mkinstalldirs src
AUTHORS config.guess config.sub contrib gambit.desktop gambit-enumpure gambit-lcp gambit-lp gambit-nfg-logitdyn gambit.wxs libtool m4 Makefile.in NEWS
shashank@shashank-Lenovo-IdeaPad-Y510P:~/Downloads/Archives/Gambit/gambit-13.1.2$ make
Making all in contrib
make[1]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib'
Making all in scripts
make[2]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts'
Making all in enumpoly
make[3]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts/enumpoly'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts/enumpoly'
make[3]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts'
make[2]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts'
make[2]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib'
make[1]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib'
make[1]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2'
shashank@shashank-Lenovo-IdeaPad-Y510P:~/Downloads/Archives/Gambit/gambit-13.1.2$ sudo make install
[sudo] password for shashank:
Making install in contrib
make[1]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib'
Making install in scripts
make[2]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts'
Making install in enumpoly
make[3]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts/enumpoly'
make[4]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts/enumpoly'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts/enumpoly'
make[3]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts/enumpoly'
make[3]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts'
make[4]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts'
make[3]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts'
make[2]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib/scripts'
make[2]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib'
make[3]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib'
make[2]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib'
make[1]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/contrib'
make[1]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2'
make[2]: Entering directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2'
/bin/mkdir -p '/usr/local/bin'
/bin/bash ./libtool --mode=install /usr/bin/install -c gambit-nfg2html gambit-nfg2tex gambit-enummixed gambit-enumpoly gambit-enumpure gambit-gnm gambit-ipa gambit-lcp gambit-liap gambit-logit gambit-nfg-logitdyn gambit-lp gambit-simpdiv '/usr/local/bin'
libtool: install: /usr/bin/install -c gambit-nfg2html /usr/local/bin/gambit-nfg2html
libtool: install: /usr/bin/install -c gambit-nfg2tex /usr/local/bin/gambit-nfg2tex
libtool: install: /usr/bin/install -c gambit-enummixed /usr/local/bin/gambit-enummixed
libtool: install: /usr/bin/install -c gambit-enumpoly /usr/local/bin/gambit-enumpoly
libtool: install: /usr/bin/install -c gambit-enumpure /usr/local/bin/gambit-enumpure
libtool: install: /usr/bin/install -c gambit-gnm /usr/local/bin/gambit-gnm
libtool: install: /usr/bin/install -c gambit-ipa /usr/local/bin/gambit-ipa
libtool: install: /usr/bin/install -c gambit-lcp /usr/local/bin/gambit-lcp
libtool: install: /usr/bin/install -c gambit-liap /usr/local/bin/gambit-liap
libtool: install: /usr/bin/install -c gambit-logit /usr/local/bin/gambit-logit
libtool: install: /usr/bin/install -c gambit-nfg-logitdyn /usr/local/bin/gambit-nfg-logitdyn
libtool: install: /usr/bin/install -c gambit-lp /usr/local/bin/gambit-lp
libtool: install: /usr/bin/install -c gambit-simpdiv /usr/local/bin/gambit-simpdiv
/bin/mkdir -p '/usr/local/include/libgambit'
/usr/bin/install -c -m 644 src/libgambit/integer.h src/libgambit/rational.h src/libgambit/array.h src/libgambit/list.h src/libgambit/vector.h src/libgambit/vector.imp src/libgambit/pvector.h src/libgambit/pvector.imp src/libgambit/dvector.h src/libgambit/dvector.imp src/libgambit/recarray.h src/libgambit/matrix.h src/libgambit/matrix.imp src/libgambit/sqmatrix.h src/libgambit/sqmatrix.imp src/libgambit/number.h src/libgambit/game.h src/libgambit/behav.h src/libgambit/behav.imp src/libgambit/behavitr.h src/libgambit/behavspt.h src/libgambit/mixed.h src/libgambit/mixed.imp src/libgambit/stratitr.h src/libgambit/stratspt.h src/libgambit/libgambit.h '/usr/local/include/libgambit'
make[2]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2'
make[1]: Leaving directory '/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2'
shashank@shashank-Lenovo-IdeaPad-Y510P:~/Downloads/Archives/Gambit/gambit-13.1.2$
So I assume that Gambit is installed, so it is probably a problem with the Python interface. Moving on,
python setup.py build
Traceback (most recent call last):
File "setup.py", line 32, in <module>
m.Extension.__dict__ = m._Extension.__dict__
AttributeError: attribute '__dict__' of 'type' objects is not writable
running build
running build_py
running build_ext
skipping 'gambit/lib/libgambit.cpp' Cython extension (up-to-date)
running install
running bdist_egg
running egg_info
writing gambit.egg-info/PKG-INFO
writing top-level names to gambit.egg-info/top_level.txt
writing dependency_links to gambit.egg-info/dependency_links.txt
writing entry points to gambit.egg-info/entry_points.txt
reading manifest file 'gambit.egg-info/SOURCES.txt'
writing manifest file 'gambit.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
skipping 'gambit/lib/libgambit.cpp' Cython extension (up-to-date)
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/gambit
copying build/lib.linux-x86_64-2.7/gambit/__init__.py -> build/bdist.linux-x86_64/egg/gambit
copying build/lib.linux-x86_64-2.7/gambit/nash.py -> build/bdist.linux-x86_64/egg/gambit
creating build/bdist.linux-x86_64/egg/gambit/lib
copying build/lib.linux-x86_64-2.7/gambit/lib/error.py -> build/bdist.linux-x86_64/egg/gambit/lib
copying build/lib.linux-x86_64-2.7/gambit/lib/__init__.py -> build/bdist.linux-x86_64/egg/gambit/lib
copying build/lib.linux-x86_64-2.7/gambit/lib/libgambit.so -> build/bdist.linux-x86_64/egg/gambit/lib
copying build/lib.linux-x86_64-2.7/gambit/pctrace.py -> build/bdist.linux-x86_64/egg/gambit
copying build/lib.linux-x86_64-2.7/gambit/gte.py -> build/bdist.linux-x86_64/egg/gambit
copying build/lib.linux-x86_64-2.7/gambit/gameiter.py -> build/bdist.linux-x86_64/egg/gambit
copying build/lib.linux-x86_64-2.7/gambit/cmdline.py -> build/bdist.linux-x86_64/egg/gambit
copying build/lib.linux-x86_64-2.7/gambit/qre.py -> build/bdist.linux-x86_64/egg/gambit
copying build/lib.linux-x86_64-2.7/gambit/levelk.py -> build/bdist.linux-x86_64/egg/gambit
copying build/lib.linux-x86_64-2.7/gambit/enumeration.py -> build/bdist.linux-x86_64/egg/gambit
copying build/lib.linux-x86_64-2.7/gambit/profiles.py -> build/bdist.linux-x86_64/egg/gambit
creating build/bdist.linux-x86_64/egg/gambit/games
copying build/lib.linux-x86_64-2.7/gambit/games/__init__.py -> build/bdist.linux-x86_64/egg/gambit/games
copying build/lib.linux-x86_64-2.7/gambit/games/meanstat.py -> build/bdist.linux-x86_64/egg/gambit/games
copying build/lib.linux-x86_64-2.7/gambit/games/contest.py -> build/bdist.linux-x86_64/egg/gambit/games
copying build/lib.linux-x86_64-2.7/gambit/games/public.py -> build/bdist.linux-x86_64/egg/gambit/games
byte-compiling build/bdist.linux-x86_64/egg/gambit/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/gambit/nash.py to nash.pyc
byte-compiling build/bdist.linux-x86_64/egg/gambit/lib/error.py to error.pyc
byte-compiling build/bdist.linux-x86_64/egg/gambit/lib/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/gambit/pctrace.py to pctrace.pyc
byte-compiling build/bdist.linux-x86_64/egg/gambit/gte.py to gte.pyc
byte-compiling build/bdist.linux-x86_64/egg/gambit/gameiter.py to gameiter.pyc
byte-compiling build/bdist.linux-x86_64/egg/gambit/cmdline.py to cmdline.pyc
byte-compiling build/bdist.linux-x86_64/egg/gambit/qre.py to qre.pyc
byte-compiling build/bdist.linux-x86_64/egg/gambit/levelk.py to levelk.pyc
byte-compiling build/bdist.linux-x86_64/egg/gambit/enumeration.py to enumeration.pyc
byte-compiling build/bdist.linux-x86_64/egg/gambit/profiles.py to profiles.pyc
byte-compiling build/bdist.linux-x86_64/egg/gambit/games/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/gambit/games/meanstat.py to meanstat.pyc
byte-compiling build/bdist.linux-x86_64/egg/gambit/games/contest.py to contest.pyc
byte-compiling build/bdist.linux-x86_64/egg/gambit/games/public.py to public.pyc
creating stub loader for gambit/lib/libgambit.so
byte-compiling build/bdist.linux-x86_64/egg/gambit/lib/libgambit.py to libgambit.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying gambit.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying gambit.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying gambit.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying gambit.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying gambit.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating 'dist/gambit-13.1.2-py2.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing gambit-13.1.2-py2.7-linux-x86_64.egg
Removing /usr/local/lib/python2.7/dist-packages/gambit-13.1.2-py2.7-linux-x86_64.egg
Copying gambit-13.1.2-py2.7-linux-x86_64.egg to /usr/local/lib/python2.7/dist-packages
gambit 13.1.2 is already the active version in easy-install.pth
Installing gambit-shell script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/gambit-13.1.2-py2.7-linux-x86_64.egg
Processing dependencies for gambit==13.1.2
Finished processing dependencies for gambit==13.1.2
EEEEEEEEEEEEE
======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'gambit')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/loader.py", line 417, in loadTestsFromName
addr.filename, addr.module)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/src/python/gambit/tests/test_actions.py", line 1, in <module>
import gambit
ModuleNotFoundError: No module named 'gambit'
======================================================================
ERROR: Failure: SyntaxError (Missing parentheses in call to 'print' (test_behav.py, line 187))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/loader.py", line 417, in loadTestsFromName
addr.filename, addr.module)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 674, in exec_module
File "<frozen importlib._bootstrap_external>", line 781, in get_code
File "<frozen importlib._bootstrap_external>", line 741, in source_to_code
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/src/python/gambit/tests/test_behav.py", line 187
print self.profile_rational
^
SyntaxError: Missing parentheses in call to 'print'
======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'gambit')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/loader.py", line 417, in loadTestsFromName
addr.filename, addr.module)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/src/python/gambit/tests/test_extensive.py", line 1, in <module>
import gambit
ModuleNotFoundError: No module named 'gambit'
======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'gambit')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/loader.py", line 417, in loadTestsFromName
addr.filename, addr.module)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/src/python/gambit/tests/test_game.py", line 1, in <module>
import gambit
ModuleNotFoundError: No module named 'gambit'
======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'gambit')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/loader.py", line 417, in loadTestsFromName
addr.filename, addr.module)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/src/python/gambit/tests/test_infosets.py", line 1, in <module>
import gambit
ModuleNotFoundError: No module named 'gambit'
======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'gambit')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/loader.py", line 417, in loadTestsFromName
addr.filename, addr.module)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/src/python/gambit/tests/test_mixed.py", line 1, in <module>
import gambit
ModuleNotFoundError: No module named 'gambit'
======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'gambit')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/loader.py", line 417, in loadTestsFromName
addr.filename, addr.module)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/src/python/gambit/tests/test_node.py", line 1, in <module>
import gambit
ModuleNotFoundError: No module named 'gambit'
======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'gambit')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/loader.py", line 417, in loadTestsFromName
addr.filename, addr.module)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/src/python/gambit/tests/test_outcomes.py", line 1, in <module>
import gambit
ModuleNotFoundError: No module named 'gambit'
======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'gambit')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/loader.py", line 417, in loadTestsFromName
addr.filename, addr.module)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/src/python/gambit/tests/test_players.py", line 1, in <module>
import gambit
ModuleNotFoundError: No module named 'gambit'
======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'gambit')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/loader.py", line 417, in loadTestsFromName
addr.filename, addr.module)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/src/python/gambit/tests/test_strategic.py", line 1, in <module>
import gambit
ModuleNotFoundError: No module named 'gambit'
======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'gambit')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/loader.py", line 417, in loadTestsFromName
addr.filename, addr.module)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/src/python/gambit/tests/test_strategies.py", line 1, in <module>
import gambit
ModuleNotFoundError: No module named 'gambit'
======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'gambit')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/loader.py", line 417, in loadTestsFromName
addr.filename, addr.module)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/src/python/gambit/tests/test_stratprofiles.py", line 1, in <module>
import gambit
ModuleNotFoundError: No module named 'gambit'
======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'gambit')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/loader.py", line 417, in loadTestsFromName
addr.filename, addr.module)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/shashank/anaconda3/lib/python3.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/shashank/anaconda3/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/home/shashank/Downloads/Archives/Gambit/gambit-13.1.2/src/python/gambit/tests/test_stratspt.py", line 1, in <module>
import gambit
ModuleNotFoundError: No module named 'gambit'
----------------------------------------------------------------------
Ran 13 tests in 0.145s
FAILED (errors=13)
So, that is what's happening. I will continue my research on attaching build logs
You installed Gambit under a Python 2.7 setup, but you are trying to run the nose tests under Python 3.6. That's the problem - now you know where to look.
So, not a Gambit problem; closing.
Initially a lot of Cpython errors popped up, like
1]
/Downloads/Archives/Gambit/gambit-13.1.2/src/python$ python setup.py buildTraceback (most recent call last): File "setup.py", line 32, in
m.Extension.dict = m._Extension.dict
AttributeError: attribute 'dict' of 'type' objects is not writable
and
2]
~/Downloads/Archives/Gambit/gambit-13.1.2/src/python$ sudo python setup.py build Traceback (most recent call last): File "setup.py", line 25, in
from Cython.Distutils import build_ext
ImportError: No module named Cython.Distutils
After reinstalling cython and building and installing the python interface, ran into some other issues
During Build :
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ etc. etc.
Now, import gambit in python doesn't work
File "/home/shashank/.config/spyder-py3/temp.py", line 8, in
import gambit
ModuleNotFoundError: No module named 'gambit'
What should I do to get it working?