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

make test-all not running #522

Closed
timilak opened this issue Jan 10, 2020 · 3 comments
Closed

make test-all not running #522

timilak opened this issue Jan 10, 2020 · 3 comments

Comments

@timilak
Copy link

timilak commented Jan 10, 2020

I am trying to install QuantEcon on my Mac. When I run make install it runs fine but make test-all gives me a Module Not Found Error:

Running nosetests on test suite ...
nosetests -v
Failure: ModuleNotFoundError (No module named 'normal_form_game') ... ERROR

======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'normal_form_game')

@timilak
Copy link
Author

timilak commented Jan 10, 2020

Following up on the earlier query, below is the complete trail of the failing make command. Any help is highly appreciated.

--

make test-all
Running nosetests on test suite ...
nosetests -v
Failure: ModuleNotFoundError (No module named 'normal_form_game') ... ERROR

======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'normal_form_game')

Traceback (most recent call last):
File "/usr/local/anaconda3/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/usr/local/anaconda3/lib/python3.7/site-packages/nose/loader.py", line 417, in loadTestsFromName
addr.filename, addr.module)
File "/usr/local/anaconda3/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/local/anaconda3/lib/python3.7/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/local/anaconda3/lib/python3.7/imp.py", line 244, in load_module
return load_package(name, filename)
File "/usr/local/anaconda3/lib/python3.7/imp.py", line 216, in load_package
return _load(spec)
File "", line 696, in _load
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/timilakulkarni/QuantEcon.py-master/quantecon/init.py", line 15, in
from . import game_theory
File "/Users/timilakulkarni/QuantEcon.py-master/quantecon/game_theory/init.py", line 6, in
from normal_form_game import Player, NormalFormGame
ModuleNotFoundError: No module named 'normal_form_game'


Ran 1 test in 6.609s

FAILED (errors=1)
make: *** [test] Error 1

@timilak
Copy link
Author

timilak commented Jan 15, 2020

Hi all,

I think this error has been resolved. I went to the Makefile and converted all the 'python's to 'python3'. Also, I installed tables on my Mac, which was not previously there.

@timilak timilak closed this as completed Jan 15, 2020
@mmcky
Copy link
Contributor

mmcky commented Jan 21, 2020

sorry for slow response @timilak -- glad you got it figured out. Some os x systems default to python27 for python rather than python3. But it looks like you were using python3 in the error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants