File size: 1,313 Bytes
ff07ed4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
You may need to modify `chumpy` package to avoid errors. 
   
  * Comment line 11 in `${Your_Conda_Environment}/lib/python3.11/site-packages/chumpy/__init__.py`:
  ```
  from .ch import *
  from .logic import *

  from .optimization import minimize
  from . import extras
  from . import testing
  from .version import version as __version__

  from .version import version as __version__

  # from numpy import bool, int, float, complex, object, unicode, str, nan, inf
  ```
  * Add *"inspect.getargspec = inspect.getfullargspec"* in `${Your_Conda_Environment}/lib/python3.11/site-packages/chumpy/ch.py` (line 25). Now it should look like:
  ```
  #!/usr/bin/env python
  # encoding: utf-8
  """
  Author(s): Matthew Loper

  See LICENCE.txt for licensing and contact information.
  """


  __all__ = ['Ch', 'depends_on', 'MatVecMult', 'ChHandle', 'ChLambda']

  import os, sys, time
  import inspect
  import scipy.sparse as sp
  import numpy as np
  import numbers
  import weakref
  import copy as external_copy
  from functools import wraps
  from scipy.sparse.linalg.interface import LinearOperator
  from .utils import row, col, timer, convert_inputs_to_sparse_if_necessary
  import collections
  from copy import deepcopy
  from functools import reduce
  inspect.getargspec = inspect.getfullargspec
  ```