Skip to content

ImportError (No module named pystruct.inference) #5

@tmsreekanth98

Description

@tmsreekanth98

This error happens when you run nosetest . command. The funny thing is that my system has pystruct package installed via pip. I tried pystruct 0.2.4 and 0.3.2 as well but no luck.

ERROR: Failure: ImportError (No module named pystruct.inference)

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/content/copula_ordinal_regression/tests/test_tespo/test_tespo_callback.py", line 2, in
import copula_ordinal_regression.tespo as tespo
File "/content/copula_ordinal_regression/copula_ordinal_regression/init.py", line 1, in
from .COR import COR
File "/content/copula_ordinal_regression/copula_ordinal_regression/COR.py", line 7, in
from pystruct.inference import inference_ad3
ImportError: No module named pystruct.inference

Because of this, I guess the cor.COR() does not work either since the import statement is failing in that class as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions