OpenTerrace / openterrace-python

OpenTerrace: A fast, flexible and extendable Python framework for packed bed thermal energy storage simulations
https://openterrace.github.io/openterrace-python/
GNU General Public License v3.0
20 stars 2 forks source link

Examples not working #79

Closed Eheran1 closed 11 months ago

Eheran1 commented 1 year ago

I installed via pip install openterrace into my existing conda environment in Windows 10.

In Tutorial 1, I get this error:

ot = openterrace.Setup(t_end=60*10, dt=0.01, sim_name='tutorial1')
AttributeError: module 'openterrace' has no attribute 'Setup'

In the other Tutorials, I get this error:

ot.fluid.select_bc(bc_type='fixedValue',
in select_bc
raise Exception("bc_type \'"+bc_type+"\' specified. Valid options for bc_type are:", valid_bc_types)
Exception: ("bc_type 'fixedValue' specified. Valid options for bc_type are:", ['neumann', 'dirichlet', 'dirichlet_timevarying'])

After changing the BC to neumann or dirichlet, I then get this error:

ot.bed.select_domain_shape(domain='sphere_1d', R=R)
in select_domain_shape
self.domain.shape = self.domain.shape(kwargs)
TypeError: 'numpy.ndarray' object is not callable

Any ideas how to fix this or what is going wrong? Is the installation incomplete?

In my folder \anaconda3\Lib\site-packages\openterrace I have a folder called boundary_conditions which does not exist in the repository here on github. In that, there are 3 empty(!) .py files: fixedValue.py, timeVaryingFixedValue.py and zeroGradient.py

I can run the \openterrace\tests\test_functions.py, added this code to its end:

def run_all_tests():
    for test_cls in [TestDiffusion, TestConvection]:
        test_instance = test_cls()
        for method in dir(test_instance):
            if method.startswith('test_'):
                getattr(test_instance, method)()

if __name__ == '__main__':
    run_all_tests()

And the 3 output .svg files seem fine: test_convection_cylinder test_diffusion_wall test_diffusion_sphere

jakobhaervig commented 11 months ago

Hi Eheran1,

First of all thank you for trying out OpenTerrace and pinpointing those premature mistakes - I´m sorry you had to bother with them until now. I´ve corrected them and uploaded version 0.0.8 on PyPi now. If you install using pip you will now get a working version.

Your comments are really valuable. If you go ahead and try it out, I would be really happy if you share your thoughts. Also, I´ll be happy to discuss new functionality if you come across something that you feel like is missing :)

Best and thanks, Jakob

Eheran1 commented 10 months ago

pip install openterrace -U installed version 0.0.8. While doing that, pandas 2.1.4 was replaced by 1.5.3 and now seems to throw a lot of errors. Here what I get when I run tutorial1:

error running tutorial1 ``` [autoreload of pandas.core.dtypes.dtypes failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: __eq__() requires a code object with 1 free vars, not 1486058684416 ] [autoreload of pandas.core.dtypes.cast failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\dtypes\cast.py", line 46, in from pandas.core.dtypes.astype import astype_nansafe ImportError: cannot import name 'astype_nansafe' from 'pandas.core.dtypes.astype' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\dtypes\astype.py) ] [autoreload of pandas.core.construction failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\construction.py", line 39, in from pandas.core.dtypes.cast import ( ImportError: cannot import name 'maybe_upcast' from 'pandas.core.dtypes.cast' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\dtypes\cast.py) ] [autoreload of pandas.core.algorithms failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\algorithms.py", line 40, in from pandas.core.dtypes.cast import ( ImportError: cannot import name 'sanitize_to_nanoseconds' from 'pandas.core.dtypes.cast' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\dtypes\cast.py) ] [autoreload of pandas.core.computation.expressions failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\computation\expressions.py", line 21, in from pandas.core.ops import roperator ImportError: cannot import name 'roperator' from 'pandas.core.ops' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\ops\__init__.py) ] [autoreload of pandas.core.ops.missing failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\ops\missing.py", line 36, in from pandas.core.ops import roperator ImportError: cannot import name 'roperator' from 'pandas.core.ops' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\ops\__init__.py) ] [autoreload of pandas.core.ops.array_ops failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\ops\array_ops.py", line 52, in from pandas.core.ops import ( ImportError: cannot import name 'roperator' from 'pandas.core.ops' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\ops\__init__.py) ] [autoreload of pandas.core.arrays.base failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\arrays\base.py", line 58, in from pandas.core.dtypes.cast import maybe_cast_to_extension_array ImportError: cannot import name 'maybe_cast_to_extension_array' from 'pandas.core.dtypes.cast' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\dtypes\cast.py) ] [autoreload of pandas.core.nanops failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: nanmean() requires a code object with 4 free vars, not 1486058684418 ] [autoreload of pandas.core.arrays.masked failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: __contains__() requires a code object with 1 free vars, not 1486058684416 ] [autoreload of pandas.core.arrays._mixins failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 388, in lambda a, b: update_function(a.__func__, b.__func__), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: _concat_same_type() requires a code object with 1 free vars, not 1486058684416 ] [autoreload of pandas.core.arrays.string_ failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: searchsorted() requires a code object with 1 free vars, not 1486058684416 ] [autoreload of pandas.core.arrays.arrow.array failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\arrays\arrow\array.py", line 41, in from pandas.core.algorithms import resolve_na_sentinel ImportError: cannot import name 'resolve_na_sentinel' from 'pandas.core.algorithms' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\algorithms.py) ] [autoreload of pandas.core.base failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\base.py", line 71, in from pandas.core.construction import ( ImportError: cannot import name 'create_series_with_explicit_dtype' from 'pandas.core.construction' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\construction.py) ] [autoreload of pandas.core.arrays.categorical failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: set_ordered() requires a code object with 0 free vars, not 1486058684420 ] [autoreload of pandas.core.arrays.datetimelike failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: __pow__() requires a code object with 2 free vars, not 1486058684417 ] [autoreload of pandas.core.arrays.datetimes failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: astype() requires a code object with 1 free vars, not 1486058684416 ] [autoreload of pandas.core.arrays.timedeltas failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: _accumulate() requires a code object with 1 free vars, not 1486058684416 ] [autoreload of pandas.core.arrays.interval failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: argsort() requires a code object with 1 free vars, not 1486058684420 ] [autoreload of pandas.core.arrays.period failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: _format_native_types() requires a code object with 0 free vars, not 1486058684417 ] [autoreload of pandas.core.arrays.sparse.array failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: _pad_or_backfill() requires a code object with 1 free vars, not 1486058684416 ] [autoreload of pandas.core.arrays.string_arrow failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: _maybe_convert_setitem_value() requires a code object with 1 free vars, not 1486058684416 ] [autoreload of pandas.core.apply failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\apply.py", line 63, in from pandas.core.construction import ( ImportError: cannot import name 'create_series_with_explicit_dtype' from 'pandas.core.construction' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\construction.py) ] [autoreload of pandas.core.strings.accessor failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: split() requires a code object with 3 free vars, not 1486058684420 ] [autoreload of pandas.core.indexes.base failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\indexes\base.py", line 277, in class Index(IndexOpsMixin, PandasObject): File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\indexes\base.py", line 7160, in Index @doc(IndexOpsMixin.min) ^^^^^^^^^^^^^^^^^ AttributeError: type object 'IndexOpsMixin' has no attribute 'min' ] [autoreload of pandas.core.indexes.category failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: set_ordered() requires a code object with 0 free vars, not 1486058684420 ] [autoreload of pandas.core.indexes.range failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\indexes\range.py", line 48, in from pandas.core.algorithms import resolve_na_sentinel ImportError: cannot import name 'resolve_na_sentinel' from 'pandas.core.algorithms' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\algorithms.py) ] [autoreload of pandas.core.indexes.datetimelike failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: mean() requires a code object with 0 free vars, not 1486058684418 ] [autoreload of pandas.core.indexes.datetimes failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: astype() requires a code object with 1 free vars, not 1486058684416 ] [autoreload of pandas.core.indexes.multi failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\indexes\multi.py", line 210, in class MultiIndex(Index): File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\indexes\multi.py", line 1518, in MultiIndex @doc(Index._get_grouper_for_level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: type object 'Index' has no attribute '_get_grouper_for_level' ] [autoreload of pandas.core.indexes.timedeltas failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: _accumulate() requires a code object with 1 free vars, not 1486058684416 ] [autoreload of pandas.core.indexes.interval failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: argsort() requires a code object with 1 free vars, not 1486058684420 ] [autoreload of pandas.core.indexes.period failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: _format_native_types() requires a code object with 0 free vars, not 1486058684417 ] [autoreload of pandas.core.internals.blocks failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\internals\blocks.py", line 40, in from pandas.core.dtypes.cast import ( ImportError: cannot import name 'soft_convert_objects' from 'pandas.core.dtypes.cast' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\dtypes\cast.py) ] [autoreload of pandas.core.internals.array_manager failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\internals\array_manager.py", line 30, in from pandas.core.dtypes.cast import ( ImportError: cannot import name 'soft_convert_objects' from 'pandas.core.dtypes.cast' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\dtypes\cast.py) ] [autoreload of pandas.core.internals.construction failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\internals\construction.py", line 28, in from pandas.core.dtypes.cast import ( ImportError: cannot import name 'maybe_upcast' from 'pandas.core.dtypes.cast' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\dtypes\cast.py) ] [autoreload of pandas.core.reshape.concat failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: concat() requires a code object with 0 free vars, not 1486058684420 ] [autoreload of pandas.io.formats.format failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: to_csv() requires a code object with 0 free vars, not 1486058684421 ] [autoreload of pandas.core.window.rolling failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: quantile() requires a code object with 5 free vars, not 1486058684417 ] [autoreload of pandas.core.window.expanding failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: quantile() requires a code object with 5 free vars, not 1486058684417 ] [autoreload of pandas.core.generic failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\generic.py", line 143, in from pandas.core.construction import ( ImportError: cannot import name 'create_series_with_explicit_dtype' from 'pandas.core.construction' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\construction.py) ] [autoreload of pandas.core.reshape.melt failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: lreshape() requires a code object with 0 free vars, not 1486058684421 ] [autoreload of pandas.core.tools.datetimes failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\tools\datetimes.py", line 32, in from pandas._libs.tslibs.parsing import ( ImportError: cannot import name 'format_is_iso' from 'pandas._libs.tslibs.parsing' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\_libs\tslibs\parsing.cp311-win_amd64.pyd) ] [autoreload of pandas.core.series failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\series.py", line 117, in from pandas.core.construction import ( ImportError: cannot import name 'create_series_with_explicit_dtype' from 'pandas.core.construction' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\construction.py) ] [autoreload of pandas.core.frame failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\frame.py", line 11999, in DataFrame._add_numeric_operations() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: type object 'DataFrame' has no attribute '_add_numeric_operations' ] [autoreload of pandas.core.groupby.grouper failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\groupby\grouper.py", line 26, in from pandas.core.dtypes.cast import sanitize_to_nanoseconds ImportError: cannot import name 'sanitize_to_nanoseconds' from 'pandas.core.dtypes.cast' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\dtypes\cast.py) ] [autoreload of pandas.core.groupby.generic failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\groupby\generic.py", line 75, in from pandas.core.construction import create_series_with_explicit_dtype ImportError: cannot import name 'create_series_with_explicit_dtype' from 'pandas.core.construction' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\construction.py) ] [autoreload of pandas.core.reshape.pivot failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: pivot() requires a code object with 0 free vars, not 1486058684420 ] [autoreload of pandas.core.resample failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 349, in update_class if update_generic(old_obj, new_obj): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: interpolate() requires a code object with 0 free vars, not 1486058684420 ] [autoreload of pandas.io.json._normalize failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: json_normalize() requires a code object with 0 free vars, not 1486058684420 ] [autoreload of pandas.io.json._table_schema failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\io\json\_table_schema.py", line 44, in loads = json.loads ^^^^^^^^^^ AttributeError: module 'pandas._libs.json' has no attribute 'loads' ] [autoreload of pandas.io.parsers.readers failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: read_csv() requires a code object with 0 free vars, not 1486058684421 ] [autoreload of pandas.io.json._json failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\io\json\_json.py", line 56, in from pandas.core.construction import create_series_with_explicit_dtype ImportError: cannot import name 'create_series_with_explicit_dtype' from 'pandas.core.construction' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\construction.py) ] [autoreload of pandas.io.json failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\io\json\__init__.py", line 1, in from pandas.io.json._json import ( ImportError: cannot import name 'dumps' from 'pandas.io.json._json' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\io\json\_json.py) ] [autoreload of pandas.io.stata failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: read_stata() requires a code object with 0 free vars, not 1486058684420 ] [autoreload of pandas._testing failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\_testing\__init__.py", line 903, in cython_table = pd.core.common._cython_table.items() ^^^^^^^^^^^^^^ AttributeError: module 'pandas.core' has no attribute 'common' ] [autoreload of pandas.io.excel._base failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: read_excel() requires a code object with 0 free vars, not 1486058684421 ] [autoreload of pandas.io.html failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\io\html.py", line 35, in from pandas.core.construction import create_series_with_explicit_dtype ImportError: cannot import name 'create_series_with_explicit_dtype' from 'pandas.core.construction' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\core\construction.py) ] [autoreload of pandas.io.sas.sasreader failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: read_sas() requires a code object with 0 free vars, not 1486058684420 ] [autoreload of pandas.io.xml failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 500, in superreload update_generic(old_obj, new_obj) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 397, in update_generic update(a, b) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 309, in update_function setattr(old, name, getattr(new, name)) ValueError: read_xml() requires a code object with 0 free vars, not 1486058684420 ] [autoreload of pandas failed: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 276, in check superreload(m, reload, self.old_objects) File "C:\ProgramData\Anaconda3\Lib\site-packages\IPython\extensions\autoreload.py", line 475, in superreload module = reload(module) ^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\Lib\importlib\__init__.py", line 169, in reload _bootstrap._exec(spec, module) File "", line 621, in _exec File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\ProgramData\Anaconda3\Lib\site-packages\pandas\__init__.py", line 174, in from pandas.io.json import _json_normalize as json_normalize ImportError: cannot import name '_json_normalize' from 'pandas.io.json' (C:\ProgramData\Anaconda3\Lib\site-packages\pandas\io\json\__init__.py) ] Traceback (most recent call last): File C:\ProgramData\Anaconda3\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec exec(code, globals, locals) File c:\users\koehler\.spyder-py3\untitled0.py:19 fluid.select_massflow(mdot=0.1) AttributeError: 'Phase' object has no attribute 'select_massflow' ```

Tutorial 2 also throws an error:

error running tutorial2 ``` Traceback (most recent call last): File C:\ProgramData\Anaconda3\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec exec(code, globals, locals) File c:\users\koehler\.spyder-py3\untitled0.py:19 fluid.select_massflow(mdot=[ AttributeError: 'Phase' object has no attribute 'select_massflow' ```

Tutorials 3 to 7 seem to work as expected. However, note that GPU utilization was 0 %, I assume because of the fallback to CPU. Is there a way to debug this efficiently? My laptop has 2 GPUs, the dedicated one has CUDA, the integrated one does not.

jakobhaervig commented 10 months ago

Thanks again. Did you try installing into a fresh environment? I'm aware of some dependency issues with Numba.

Could you first try to install by following the "install in editable mode" in the guide (https://openterrace.github.io/openterrace-python/installation/). Please report back if this does not work..

I think it falls back due to Numba failing. Maybe following the above will help you out. Let me know

Merry christmas, Jakob