nilmtk: Syntax Error running post build nosetest

issue 386 can’t find vcvarsall.bat resolved but there may still be some HMMLearn issues (raised on HMMLearn) but this may be unrelated see details below

GJWood@GJWOOD-XPS ~/nilmtk (master)
$ python setup.py develop
c:\Users\GJWood\Anaconda3\lib\site-packages\setuptools-15.2-py3.4.egg\setuptools
\dist.py:291: UserWarning: The version specified ('0.2.0.dev-a493a39') is an inv
alid version, this may not work as expected with newer versions of setuptools, p
ip, and PyPI. Please see PEP 440 for more details.
running develop
running egg_info
writing dependency_links to nilmtk.egg-info\dependency_links.txt
writing nilmtk.egg-info\PKG-INFO
writing top-level names to nilmtk.egg-info\top_level.txt
reading manifest file 'nilmtk.egg-info\SOURCES.txt'
writing manifest file 'nilmtk.egg-info\SOURCES.txt'
running build_ext
Creating c:\users\gjwood\anaconda3\lib\site-packages\nilmtk.egg-link (link to .)

nilmtk 0.2.0.dev-a493a39 is already the active version in easy-install.pth

Installed c:\users\gjwood\nilmtk
Processing dependencies for nilmtk===0.2.0.dev-a493a39
Finished processing dependencies for nilmtk===0.2.0.dev-a493a39

GJWood@GJWOOD-XPS ~/nilmtk (master)
$ nosetests
E
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (__init__.py, line 31))
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\Users\GJWood\Anaconda3\lib\site-packages\nose\failure.py", line 39, i
n runTest
    raise self.exc_val.with_traceback(self.tb)
  File "c:\Users\GJWood\Anaconda3\lib\site-packages\nose\loader.py", line 420, i
n loadTestsFromName
    addr.filename, addr.module)
  File "c:\Users\GJWood\Anaconda3\lib\site-packages\nose\importer.py", line 47,
in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "c:\Users\GJWood\Anaconda3\lib\site-packages\nose\importer.py", line 94,
in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "c:\Users\GJWood\Anaconda3\lib\imp.py", line 245, in load_module
    return load_package(name, filename)
  File "c:\Users\GJWood\Anaconda3\lib\imp.py", line 217, in load_package
    return methods.load()
  File "<frozen importlib._bootstrap>", line 1220, in load
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1467, in exec_module
  File "<frozen importlib._bootstrap>", line 1572, in get_code
  File "<frozen importlib._bootstrap>", line 1532, in source_to_code
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "c:\Users\GJWood\nilmtk\nilmtk\__init__.py", line 31
    print "Failed to run '{}'".format(cmd)
                             ^
SyntaxError: invalid syntax

----------------------------------------------------------------------
Ran 1 test in 0.031s

FAILED (errors=1)

GJWood@GJWOOD-XPS ~/nilmtk (master)
$ pwd
/c/Users/GJWood/nilmtk

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 38 (16 by maintainers)

Commits related to this issue

Most upvoted comments

Sorry for the trouble! I didn’t know that we didn’t explicitly mention Python 2.7. Will correct this now!

OK, may I suggest a change to your documentation to specify which version of Anaconda should be used as part of the build! "installing on Windows

Install Anaconda, which bundles togther most of the required packages.

Install git client

Installing pip and other dependencies which might be missing from Anaconda"

I will take out the 3.4 version and try 2.7