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

Cant make the software work #22

Open
simb-sdu opened this issue Aug 9, 2022 · 2 comments
Open

Cant make the software work #22

simb-sdu opened this issue Aug 9, 2022 · 2 comments

Comments

@simb-sdu
Copy link

simb-sdu commented Aug 9, 2022

maknig a new env and installing via conda. But I cant even run the first line of the notebook, with the imports

This software is so cool, I really want to use it but I cant figure out how

@raphaeljolivet
Copy link
Contributor

You don't provide any useful information to help you. Could you please at least share a stack trace?

@simb-sdu
Copy link
Author

You don't provide any useful information to help you. Could you please at least share a stack trace?

sorry, here the it is:

line 1 of the notebook:

# Those two lines are for dev only : they watch imported libraries for changes
%load_ext autoreload
%autoreload 2

import pandas as pd
import time
import matplotlib.pyplot as plt
import numpy as np
import brightway2 as bw

# Custom utils defined for inter-acv
from lca_algebraic import *
from lca_algebraic.stats import * 
import lca_algebraic
from sympy import init_printing, simplify

init_printing()

stack trace:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Input In [1], in <cell line: 9>()
      7 import matplotlib.pyplot as plt
      8 import numpy as np
----> 9 import brightway2 as bw
     11 # Custom utils defined for inter-acv
     12 from lca_algebraic import *

File ~\Anaconda3\envs\lca-alg-test1\lib\site-packages\brightway2\__init__.py:3, in <module>
      1 # -*- coding: utf-8 -*
      2 from bw2data import *
----> 3 from bw2calc import *
      4 from bw2io import *
      6 __version__ = (2, 3)

AttributeError: module 'bw2calc' has no attribute 'ComparativeMonteCarlo'

Error in callback <bound method AutoreloadMagics.post_execute_hook of <IPython.extensions.autoreload.AutoreloadMagics object at 0x0000025C3A114B80>> (for post_execute):
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
File ~\Anaconda3\envs\lca-alg-test1\lib\site-packages\IPython\extensions\autoreload.py:615, in AutoreloadMagics.post_execute_hook(self)
    613 newly_loaded_modules = set(sys.modules) - self.loaded_modules
    614 for modname in newly_loaded_modules:
--> 615     _, pymtime = self._reloader.filename_and_mtime(sys.modules[modname])
    616     if pymtime is not None:
    617         self._reloader.modules_mtimes[modname] = pymtime

File ~\Anaconda3\envs\lca-alg-test1\lib\site-packages\IPython\extensions\autoreload.py:193, in ModuleReloader.filename_and_mtime(self, module)
    192 def filename_and_mtime(self, module):
--> 193     if not hasattr(module, "__file__") or module.__file__ is None:
    194         return None, None
    196     if getattr(module, "__name__", None) in [None, "__mp_main__", "__main__"]:
    197         # we cannot reload(__main__) or reload(__mp_main__)

File ~\Anaconda3\envs\lca-alg-test1\lib\site-packages\eight\utils.py:41, in RedirectingLoader.__getattr__(self, attr)
     39 else:
     40     if self._module is None:
---> 41         self._module = __import__(self._name)
     42     if len(self._moves) == 0:
     43         sys.modules[self._parent_name + '.' + self._name] = sys.modules[self._name]

ModuleNotFoundError: No module named '_dummy_thread

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