Skip to content

Eval.py Json import error #15

Description

@mtkmark

In eval.py got Some Error as the following ..
Any one knows how to solve it ?

python2.7 eval.py --model_path save/model.pth --infos_path save/infos_1.pkl --image_folder pic --num_images 1

===> ImportError: No module named _struct

==================
Traceback (most recent call last):
File "eval.py", line 5, in
import json
File "/usr/local/lib/python2.7/json/init.py", line 108, in
from .decoder import JSONDecoder
File "/usr/local/lib/python2.7/json/decoder.py", line 5, in
import struct
File "/usr/local/lib/python2.7/struct.py", line 1, in
from _struct import *
ImportError: No module named _struct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions