Skip to content

ModuleNotFoundError: No module named 'bwtypes' #4

@kaifeichen

Description

@kaifeichen

Here is the error message

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-b4cae4c6a1da> in <module>()
      1 from bw2python import ponames
      2 from bw2python.bwtypes import PayloadObject
----> 3 from bw2python.client import Client
      4 

/opt/conda/lib/python3.6/site-packages/bw2python/client.py in <module>()
      6 import threading
      7 
----> 8 from  bwtypes import *
      9 
     10 ENTITY_PO_NUM = (0, 0, 0, 50)

ModuleNotFoundError: No module named 'bwtypes'

Change line 8 in bw2python/client.py to from bw2python.bwtypes import * solves the problem.

I was using python 3.6.2 in Ubuntu.

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