usnistgov / ChebTools

C++ tools for working with Chebyshev expansion interpolants
MIT License
28 stars 8 forks source link

AttributeError: module 'ChebTools' has no attribute 'generate_Chebyshev_expansion' #25

Closed OrbitalMechanic closed 3 years ago

OrbitalMechanic commented 4 years ago

I'm attempting to run the following example to test my installation of ChebTools on a Mac Pro (2019) running Mac OS X ver. 10.15.4 (Catalina) using the Anaconda distribution of Python ver. 3.7.6.

#!/Users/user/opt/anaconda3/bin/python
import scipy.special
import ChebTools
import numpy as np
import matplotlib.pyplot as plt
# Only keep the roots that are in [-1,1] in scaled coordinates
only_in_domain = True
# The 0-th Bessel function (for code concision)
def J0(x): return scipy.special.jn(0,x)
# Make a 200-th order expansion of the 0-th Bessel function in [0,30]
f = ChebTools.generate_Chebyshev_expansion(200, J0, 0, 30)
# Roots of the function
rts = f.real_roots(only_in_domain)
# Extrema of the function (roots of the derivative, where dy/dx =0)
extrema = f.deriv(1).real_roots(only_in_domain)

When I attempt to run this example, I get the following message:

(base) user@Samuels-Mac-Pro ~ % python ChebTools-ex.py
Traceback (most recent call last):
  File "ChebTools-ex.py", line 11, in <module>
    f = ChebTools.generate_Chebyshev_expansion(200, J0, 0, 30)
AttributeError: module 'ChebTools' has no attribute 'generate_Chebyshev_expansion'
(base) user@Samuels-Mac-Pro ~ % 

Is there something additional I need to install over and above the CMake build instructions?

Please advise.

Sam Dupree.

ianhbell commented 4 years ago

Hi Sam!

How did you install ChebTools? Are you trying to run from the root folder of the source? If so, try from somewhere else, python can get confused about which folder to load from when you start at the root of the repo.

Generally, it is a bad idea to add the shebang to python scripts; let your environment manager (virtualenv, conda, etc.) figure out where to find things. Otherwise, you can introduce all manner of creative issues, which might be what is going on here.

If none of the above applies, then this would be helpful for debugging (first prints where it is installed, second all the methods that are available in the library)

python -c "import ChebTools; print(ChebTools.__file__, dir(ChebTools))" 
OrbitalMechanic commented 4 years ago

Thank you for responding to my post. I installed ChebTools using Cmake as follows:

git clone --recursive --shallow-submodules https://github.com/usnistgov/ChebTools
cd ChebTools
mkdir build
cd build
cmake ..
cmake --build .

I run the example outside of the root folder where ChebTools was built both with and without the shebang line with no difference in the results. I ran a few runs using the command python -c "import ChebTools; print(ChebTools.__file__, dir(ChebTools))" resulting in:

  1. Running from my home directory, /Users/user

    (base) user@Samuels-Mac-Pro ~ % python -c "import ChebTools; print(ChebTools.__file__, dir(ChebTools))"
    None ['__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__']
    (base) user@Samuels-Mac-Pro ~ % 
  2. Running from /User/user/ChebTools/build

    (base) user@Samuels-Mac-Pro build % python -c "import ChebTools; print(ChebTools.__file__, dir(ChebTools))"
    /Users/user/ChebTools/build/ChebTools.cpython-37m-darwin.so ['ChebyshevExpansion', 'Eigen_nbThreads', 'Eigen_setNbThreads', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'eigenvalues', 'eigenvalues_upperHessenberg', 'eigs_speed_test', 'evaluation_speed_test', 'generate_Chebyshev_expansion', 'mult_by', 'mult_by_inplace']
    (base) user@Samuels-Mac-Pro build %
  3. Running the example without the shebang line from /Users/user/ChebTools/build

    (base) user@Samuels-Mac-Pro build % python /Users/user/ChebTools-ex.py
    Traceback (most recent call last):
    File "/Users/user/ChebTools-ex.py", line 10, in <module>
    f = ChebTools.generate_Chebyshev_expansion(200, J0, 0, 30)
    AttributeError: module 'ChebTools' has no attribute 'generate_Chebyshev_expansion'
    (base) user@Samuels-Mac-Pro build %
  4. Running the example with the shebang line from /Users/user/ChebTools/build

    (base) user@Samuels-Mac-Pro build % python /Users/user/ChebTools-ex.py
    Traceback (most recent call last):
    File "/Users/user/ChebTools-ex.py", line 11, in <module>
    f = ChebTools.generate_Chebyshev_expansion(200, J0, 0, 30)
    AttributeError: module 'ChebTools' has no attribute 'generate_Chebyshev_expansion'
    (base) user@Samuels-Mac-Pro build %

In addition, below is a listing on the contents of the build directory, /Users/user/ChebTools/build

(base) user@Samuels-Mac-Pro build % ls -l
total 38272
-rw-r--r--@  1 user  staff    20751 May 11 01:58 CMakeCache.txt
drwxr-xr-x  16 user  staff      512 May 11 04:13 CMakeFiles
-rwxr-xr-x   1 user  staff  4629236 May 11 02:00 ChebTools.cpython-37m-darwin.so
-rwxr-xr-x   1 user  staff  8420928 May 11 01:59 ChebToolsCatchTests
-rwxr-xr-x   1 user  staff  6498152 May 11 02:00 ChebToolsMonolith
-rw-r--r--   1 user  staff    11438 May 11 04:13 Makefile
-rw-r--r--@  1 user  staff     1532 May 11 01:58 cmake_install.cmake
drwxr-xr-x   3 user  staff       96 May 11 01:53 externals
-rw-r--r--@  1 user  staff        0 May 11 03:59 install_manifest.txt
drwxr-xr-x   2 user  staff       64 May 11 01:51 lib.macosx-10.9-x86_64-3.7
drwxr-xr-x   7 user  staff      224 May 11 04:12 temp.macosx-10.9-x86_64-3.7
(base) user@Samuels-Mac-Pro build %  

I'm pointing out the files in the build subdirectory, because I haven't found any ChebTools components in the subdirectory /Users/user/opt/anaconda3/lib/python3.7/site-packages.

Hope this helps.

Sam Dupree.

ianhbell commented 4 years ago

Hi Sam, if you indeed only want the python interface, then you should follow the pip+git instructions: https://github.com/usnistgov/ChebTools#to-install-in-one-line-from-github-easiest

If you really do want the C++ interface, then you need to figure out how to work with cmake.

I'm sure we can get this working! But you have some odd things going on in your setup, so I wonder what went on.

OrbitalMechanic commented 4 years ago

Ian,

Thank you for getting back to me. I took your advice and tried to build the python interface using the pip+git instruction and that build failed. It appears to be failing to find the omp.h header file, yet I do have OpenMP installed. This is why I tried to build ChebTools using cmake.

Attached to this note is a file containing the results from my attempt at building ChebTools using the pip+git instruction. Should you see something in the listing that might steer me in the right direction, please let me know. Otherwise, I'll have to bone up on cmake to make it work for me.

Sam Dupree.

latest_ChebTools_build.txt

ianhbell commented 4 years ago

I'll try to compile from one of my mac minis tomorrow, maybe that will shed some light. Are you using g++ from homebrew?

OrbitalMechanic commented 4 years ago

I can use g++ from homebrew if I go thorough cmake and explicitly point to it and to gcc. When I go through the pip+git command clang++ and clang through Xcode is used.

ianhbell commented 4 years ago

Good point - the pip+git solution is going to use your system defaults, which for many cases (albeit often not on OSX) is the right solution.

OSX is probably the platform where I have had the most difficulty getting things to work reliably in general with compiler toolchains.

OrbitalMechanic commented 4 years ago

Is the pip+git solution driven by a Makefile that can be edited so as to point to g++ and/or gcc?

On May/13/2020 09:04:36, Ian Bell wrote:

Good point - the pip+git solution is going to use your system defaults, which for many cases (albeit often not on OSX) is the right solution.

OSX is probably the platform where I have had the most difficulty getting things to work reliably in general with compiler toolchains.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/usnistgov/ChebTools/issues/25#issuecomment-627969679, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEO353ETSPADYQ6W37DJXTRRKLGJANCNFSM4M5UDQCQ.

ibell commented 4 years ago

Confirmed on my side:

cheb) ian@Ians-Mac-mini ~ % pip install -vvv git+git://github.com/usnistgov/ChebTools.git 
Non-user install because site-packages writeable
Created temporary directory: /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-ephem-wheel-cache-3jk2afz1
Created temporary directory: /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-tracker-c3st0c7d
Initialized build tracking at /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-tracker-c3st0c7d
Created build tracker: /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-tracker-c3st0c7d
Entered build tracker: /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-tracker-c3st0c7d
Created temporary directory: /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-install-fr7x8iu3
Collecting git+git://github.com/usnistgov/ChebTools.git
  Created temporary directory: /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7
  Cloning git://github.com/usnistgov/ChebTools.git to /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7
  Running command git clone -q git://github.com/usnistgov/ChebTools.git /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7
  Running command git submodule update --init --recursive -q
  Added git+git://github.com/usnistgov/ChebTools.git to build tracker '/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-tracker-c3st0c7d'
    Running setup.py (path:/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py) egg_info for package from git+git://github.com/usnistgov/ChebTools.git
    Running command python setup.py egg_info
    running egg_info
    creating /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/pip-egg-info/ChebTools.egg-info
    writing /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/pip-egg-info/ChebTools.egg-info/PKG-INFO
    writing dependency_links to /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/pip-egg-info/ChebTools.egg-info/dependency_links.txt
    writing top-level names to /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/pip-egg-info/ChebTools.egg-info/top_level.txt
    writing manifest file '/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/pip-egg-info/ChebTools.egg-info/SOURCES.txt'
    reading manifest file '/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/pip-egg-info/ChebTools.egg-info/SOURCES.txt'
    writing manifest file '/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/pip-egg-info/ChebTools.egg-info/SOURCES.txt'
  Source in /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7 has version 1.2.0, which satisfies requirement ChebTools==1.2.0 from git+git://github.com/usnistgov/ChebTools.git
  Removed ChebTools==1.2.0 from git+git://github.com/usnistgov/ChebTools.git from build tracker '/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-tracker-c3st0c7d'
Building wheels for collected packages: ChebTools
  Created temporary directory: /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-wheel-6a38jzq6
  Building wheel for ChebTools (setup.py) ...   Destination directory: /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-wheel-6a38jzq6
  Running command /Users/ian/opt/anaconda3/envs/cheb/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py'"'"'; __file__='"'"'/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-wheel-6a38jzq6
  running bdist_wheel
  running build
  running build_ext
  -- The C compiler identification is AppleClang 11.0.3.11030032
  -- The CXX compiler identification is AppleClang 11.0.3.11030032
  -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
  -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
  -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found OpenMP_C: -Xclang -fopenmp (found version "3.1")
  -- Found OpenMP_CXX: -Xclang -fopenmp (found version "3.1")
  -- Found OpenMP: TRUE (found version "3.1")
  -- Found PythonInterp: /Users/ian/opt/anaconda3/envs/cheb/bin/python (found version "3.8.2")
  -- Found PythonLibs: /Users/ian/opt/anaconda3/envs/cheb/lib/libpython3.8.dylib
  -- pybind11 v2.2.1
  -- Performing Test HAS_FLTO
  -- Performing Test HAS_FLTO - Success
  -- LTO enabled
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/build/temp.macosx-10.9-x86_64-3.8
  Scanning dependencies of target ChebToolsMonolith
  Scanning dependencies of target ChebToolsCatchTests
  [  8%] Building CXX object CMakeFiles/ChebToolsMonolith.dir/main.cpp.o
  [ 16%] Building CXX object CMakeFiles/ChebToolsCatchTests.dir/tests/tests.cpp.o
  In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/main.cpp:2:
  In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/include/ChebTools/ChebTools.h:4:
  In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/externals/Eigen/Eigen/Dense:1:
  /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/externals/Eigen/Eigen/Core:247:10: fatal error: 'omp.h' file not found
  #include <omp.h>
           ^~~~~~~
  1 error generated.
  make[2]: *** [CMakeFiles/ChebToolsMonolith.dir/main.cpp.o] Error 1
  make[1]: *** [CMakeFiles/ChebToolsMonolith.dir/all] Error 2
  make[1]: *** Waiting for unfinished jobs....
  [ 25%] Building CXX object CMakeFiles/ChebToolsCatchTests.dir/src/ChebTools.cpp.o
  In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/tests/tests.cpp:4:
  In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/include/ChebTools/ChebTools.h:4:
  In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/externals/Eigen/Eigen/Dense:1:
  /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/externals/Eigen/Eigen/Core:247:10: fatal error: 'omp.h' file not found
  #include <omp.h>
           ^~~~~~~
  In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/src/ChebTools.cpp:1:
  In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/include/ChebTools/ChebTools.h:4:
  In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/externals/Eigen/Eigen/Dense:1:
  /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/externals/Eigen/Eigen/Core:247:10: fatal error: 'omp.h' file not found
  #include <omp.h>
           ^~~~~~~
  1 error generated.
  make[2]: *** [CMakeFiles/ChebToolsCatchTests.dir/tests/tests.cpp.o] Error 1
  make[2]: *** Waiting for unfinished jobs....
  1 error generated.
  make[2]: *** [CMakeFiles/ChebToolsCatchTests.dir/src/ChebTools.cpp.o] Error 1
  make[1]: *** [CMakeFiles/ChebToolsCatchTests.dir/all] Error 2
  make: *** [all] Error 2
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py", line 61, in <module>
      setup(
    File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages/setuptools/__init__.py", line 144, in setup
      return distutils.core.setup(**attrs)
    File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 223, in run
      self.run_command('build')
    File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py", line 34, in run
      self.build_extension(ext)
    File "/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py", line 59, in build_extension
      subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
    File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/subprocess.py", line 364, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2.
error
  ERROR: Failed building wheel for ChebTools
  Running setup.py clean for ChebTools
  Running command /Users/ian/opt/anaconda3/envs/cheb/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py'"'"'; __file__='"'"'/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
  running clean
  removing 'build/temp.macosx-10.9-x86_64-3.8' (and everything under it)
  removing 'build/lib.macosx-10.9-x86_64-3.8' (and everything under it)
  'build/bdist.macosx-10.9-x86_64' does not exist -- can't clean it
  'build/scripts-3.8' does not exist -- can't clean it
  removing 'build'
Failed to build ChebTools
Installing collected packages: ChebTools
  Created temporary directory: /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-record-dv5z2lxz
    Running command /Users/ian/opt/anaconda3/envs/cheb/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py'"'"'; __file__='"'"'/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-record-dv5z2lxz/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/ChebTools
    running install
    running build
    running build_ext
    -- The C compiler identification is AppleClang 11.0.3.11030032
    -- The CXX compiler identification is AppleClang 11.0.3.11030032
    -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
    -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
    -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Found OpenMP_C: -Xclang -fopenmp (found version "3.1")
    -- Found OpenMP_CXX: -Xclang -fopenmp (found version "3.1")
    -- Found OpenMP: TRUE (found version "3.1")
    -- Found PythonInterp: /Users/ian/opt/anaconda3/envs/cheb/bin/python (found version "3.8.2")
    -- Found PythonLibs: /Users/ian/opt/anaconda3/envs/cheb/lib/libpython3.8.dylib
    -- pybind11 v2.2.1
    -- Performing Test HAS_FLTO
    -- Performing Test HAS_FLTO - Success
    -- LTO enabled
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/build/temp.macosx-10.9-x86_64-3.8
    Scanning dependencies of target ChebToolsMonolith
    Scanning dependencies of target ChebToolsCatchTests
    [  8%] Building CXX object CMakeFiles/ChebToolsMonolith.dir/main.cpp.o
    [ 16%] Building CXX object CMakeFiles/ChebToolsCatchTests.dir/tests/tests.cpp.o
    In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/main.cpp:2:
    In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/include/ChebTools/ChebTools.h:4:
    In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/externals/Eigen/Eigen/Dense:1:
    /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/externals/Eigen/Eigen/Core:247:10: fatal error: 'omp.h' file not found
    #include <omp.h>
             ^~~~~~~
    1 error generated.
    make[2]: *** [CMakeFiles/ChebToolsMonolith.dir/main.cpp.o] Error 1
    make[1]: *** [CMakeFiles/ChebToolsMonolith.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    [ 25%] Building CXX object CMakeFiles/ChebToolsCatchTests.dir/src/ChebTools.cpp.o
    In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/tests/tests.cpp:4:
    In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/include/ChebTools/ChebTools.h:4:
    In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/externals/Eigen/Eigen/Dense:1:
    /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/externals/Eigen/Eigen/Core:247:10: fatal error: 'omp.h' file not found
    #include <omp.h>
             ^~~~~~~
    In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/src/ChebTools.cpp:1:
    In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/include/ChebTools/ChebTools.h:4:
    In file included from /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/externals/Eigen/Eigen/Dense:1:
    /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/externals/Eigen/Eigen/Core:247:10: fatal error: 'omp.h' file not found
    #include <omp.h>
             ^~~~~~~
    1 error generated.
    make[2]: *** [CMakeFiles/ChebToolsCatchTests.dir/tests/tests.cpp.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    1 error generated.
    make[2]: *** [CMakeFiles/ChebToolsCatchTests.dir/src/ChebTools.cpp.o] Error 1
    make[1]: *** [CMakeFiles/ChebToolsCatchTests.dir/all] Error 2
    make: *** [all] Error 2
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py", line 61, in <module>
        setup(
      File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages/setuptools/__init__.py", line 144, in setup
        return distutils.core.setup(**attrs)
      File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py", line 34, in run
        self.build_extension(ext)
      File "/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py", line 59, in build_extension
        subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
      File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/subprocess.py", line 364, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2.
    Running setup.py install for ChebTools ... error
Cleaning up...
  Removing source in /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7
Removed build tracker: '/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-tracker-c3st0c7d'
ERROR: Command errored out with exit status 1: /Users/ian/opt/anaconda3/envs/cheb/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py'"'"'; __file__='"'"'/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-record-dv5z2lxz/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/ChebTools Check the logs for full command output.
Exception information:
Traceback (most recent call last):
  File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 186, in _main
    status = self.run(options, args)
  File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 395, in run
    installed = install_given_reqs(
  File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages/pip/_internal/req/__init__.py", line 67, in install_given_reqs
    requirement.install(
  File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line 820, in install
    install_legacy(
  File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages/pip/_internal/operations/install/legacy.py", line 70, in install
    runner(
  File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages/pip/_internal/utils/subprocess.py", line 271, in runner
    call_subprocess(
  File "/Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages/pip/_internal/utils/subprocess.py", line 242, in call_subprocess
    raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /Users/ian/opt/anaconda3/envs/cheb/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py'"'"'; __file__='"'"'/private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-req-build-rxyqkme7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/jb/x_h41by52xlfwfnl98q13bbw0000gn/T/pip-record-dv5z2lxz/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/ChebTools Check the logs for full command output.
ibell commented 4 years ago

See also some info here: https://stackoverflow.com/a/50187420

ibell commented 4 years ago

Good news is that by setting the compilers to the home-brewed ones, compilation is successful:

(cheb) ian@Ians-Mac-mini ChebTools % CC=gcc-9 CXX=g++-9 python setup.py install
running install
running bdist_egg
running egg_info
creating ChebTools.egg-info
writing ChebTools.egg-info/PKG-INFO
writing dependency_links to ChebTools.egg-info/dependency_links.txt
writing top-level names to ChebTools.egg-info/top_level.txt
writing manifest file 'ChebTools.egg-info/SOURCES.txt'
reading manifest file 'ChebTools.egg-info/SOURCES.txt'
writing manifest file 'ChebTools.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-x86_64/egg
running install_lib
running build_ext
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/local/bin/gcc-9
-- Check for working C compiler: /usr/local/bin/gcc-9 - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/local/bin/g++-9
-- Check for working CXX compiler: /usr/local/bin/g++-9 - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Found PythonInterp: /Users/ian/opt/anaconda3/envs/cheb/bin/python (found version "3.8.2") 
-- Found PythonLibs: /Users/ian/opt/anaconda3/envs/cheb/lib/libpython3.8.dylib
-- pybind11 v2.2.1
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Failed
-- LTO disabled (not supported by the compiler and/or linker)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ian/Code/ChebTools/build/temp.macosx-10.9-x86_64-3.8
Scanning dependencies of target ChebToolsCatchTests
Scanning dependencies of target ChebToolsMonolith
[  8%] Building CXX object CMakeFiles/ChebToolsMonolith.dir/main.cpp.o
[ 16%] Building CXX object CMakeFiles/ChebToolsCatchTests.dir/tests/tests.cpp.o
[ 25%] Building CXX object CMakeFiles/ChebToolsMonolith.dir/src/ChebTools.cpp.o
[ 33%] Building CXX object CMakeFiles/ChebToolsCatchTests.dir/src/ChebTools.cpp.o
[ 41%] Building CXX object CMakeFiles/ChebToolsMonolith.dir/src/speed_tests.cpp.o
[ 50%] Building CXX object CMakeFiles/ChebToolsCatchTests.dir/src/speed_tests.cpp.o
[ 58%] Linking CXX executable ChebToolsMonolith
[ 58%] Built target ChebToolsMonolith
Scanning dependencies of target ChebTools
[ 66%] Building CXX object CMakeFiles/ChebTools.dir/src/pybind11_wrapper.cpp.o
In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:82:34: warning: 'int PyThread_create_key()' is deprecated [-Wdeprecated-declarations]
   82 |     decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
      |                                  ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:100:36: note: declared here
  100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void);
      |                                    ^~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:82:34: warning: 'int PyThread_create_key()' is deprecated [-Wdeprecated-declarations]
   82 |     decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
      |                                  ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:100:36: note: declared here
  100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void);
      |                                    ^~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:82:34: warning: 'int PyThread_create_key()' is deprecated [-Wdeprecated-declarations]
   82 |     decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
      |                                  ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:100:36: note: declared here
  100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void);
      |                                    ^~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:82:34: warning: 'int PyThread_create_key()' is deprecated [-Wdeprecated-declarations]
   82 |     decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
      |                                  ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:100:36: note: declared here
  100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void);
      |                                    ^~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h: In function 'pybind11::detail::internals& pybind11::detail::get_internals()':
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:167:53: warning: 'int PyThread_create_key()' is deprecated [-Wdeprecated-declarations]
  167 |         internals_ptr->tstate = PyThread_create_key();
      |                                                     ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:100:36: note: declared here
  100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void);
      |                                    ^~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:167:53: warning: 'int PyThread_create_key()' is deprecated [-Wdeprecated-declarations]
  167 |         internals_ptr->tstate = PyThread_create_key();
      |                                                     ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:100:36: note: declared here
  100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void);
      |                                    ^~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:168:61: warning: 'int PyThread_set_key_value(int, void*)' is deprecated [-Wdeprecated-declarations]
  168 |         PyThread_set_key_value(internals_ptr->tstate, tstate);
      |                                                             ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here
  102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
      |                                    ^~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:168:61: warning: 'int PyThread_set_key_value(int, void*)' is deprecated [-Wdeprecated-declarations]
  168 |         PyThread_set_key_value(internals_ptr->tstate, tstate);
      |                                                             ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here
  102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
      |                                    ^~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h: In constructor 'pybind11::gil_scoped_acquire::gil_scoped_acquire()':
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1741:75: warning: 'void* PyThread_get_key_value(int)' is deprecated [-Wdeprecated-declarations]
 1741 |         tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
      |                                                                           ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:104:39: note: declared here
  104 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key);
      |                                       ^~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1741:75: warning: 'void* PyThread_get_key_value(int)' is deprecated [-Wdeprecated-declarations]
 1741 |         tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
      |                                                                           ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:104:39: note: declared here
  104 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key);
      |                                       ^~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1753:60: warning: 'int PyThread_set_key_value(int, void*)' is deprecated [-Wdeprecated-declaration]
 1753 |             PyThread_set_key_value(internals.tstate, tstate);
      |                                                            ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here
  102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
      |                                    ^~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1753:60: warning: 'int PyThread_set_key_value(int, void*)' is deprecated [-Wdeprecated-declaration]
 1753 |             PyThread_set_key_value(internals.tstate, tstate);
      |                                                            ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here
  102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
      |                                    ^~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h: In member function 'void pybind11::gil_scoped_acquire::dec_ref()':
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1792:69: warning: 'void PyThread_delete_key_value(int)' is deprecated [-Wdeprecated-declarations]
 1792 |             PyThread_delete_key_value(detail::get_internals().tstate);
      |                                                                     ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:105:37: note: declared here
  105 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1792:69: warning: 'void PyThread_delete_key_value(int)' is deprecated [-Wdeprecated-declarations]
 1792 |             PyThread_delete_key_value(detail::get_internals().tstate);
      |                                                                     ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:105:37: note: declared here
  105 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h: In constructor 'pybind11::gil_scoped_release::gil_scoped_release(bool)':
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1820:52: warning: 'int PyThread_set_key_value(int, void*)' is deprecated [-Wdeprecated-declaration]
 1820 |                 PyThread_set_key_value(key, nullptr);
      |                                                    ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here
  102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
      |                                    ^~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1820:52: warning: 'int PyThread_set_key_value(int, void*)' is deprecated [-Wdeprecated-declaration]
 1820 |                 PyThread_set_key_value(key, nullptr);
      |                                                    ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here
  102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
      |                                    ^~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h: In destructor 'pybind11::gil_scoped_release::~gil_scoped_release()':
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1833:47: warning: 'int PyThread_set_key_value(int, void*)' is deprecated [-Wdeprecated-declaration]
 1833 |             PyThread_set_key_value(key, tstate);
      |                                               ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here
  102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
      |                                    ^~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1833:47: warning: 'int PyThread_set_key_value(int, void*)' is deprecated [-Wdeprecated-declaration]
 1833 |             PyThread_set_key_value(key, tstate);
      |                                               ^
In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11,
                 from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13,
                 from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43,
                 from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4:
/Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here
  102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key,
      |                                    ^~~~~~~~~~~~~~~~~~~~~~
[ 75%] Linking CXX executable ChebToolsCatchTests
[ 75%] Built target ChebToolsCatchTests
[ 83%] Building CXX object CMakeFiles/ChebTools.dir/src/ChebTools.cpp.o
[ 91%] Building CXX object CMakeFiles/ChebTools.dir/src/speed_tests.cpp.o
[100%] Linking CXX shared module ../lib.macosx-10.9-x86_64-3.8/ChebTools.cpython-38-darwin.so
[100%] Built target ChebTools
creating build/bdist.macosx-10.9-x86_64
creating build/bdist.macosx-10.9-x86_64/egg
copying build/lib.macosx-10.9-x86_64-3.8/ChebTools.cpython-38-darwin.so -> build/bdist.macosx-10.9-x86_64/egg
creating stub loader for ChebTools.cpython-38-darwin.so
byte-compiling build/bdist.macosx-10.9-x86_64/egg/ChebTools.py to ChebTools.cpython-38.pyc
creating build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying ChebTools.egg-info/PKG-INFO -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying ChebTools.egg-info/SOURCES.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying ChebTools.egg-info/dependency_links.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying ChebTools.egg-info/not-zip-safe -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying ChebTools.egg-info/top_level.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
writing build/bdist.macosx-10.9-x86_64/egg/EGG-INFO/native_libs.txt
creating dist
creating 'dist/ChebTools-1.2.0-py3.8-macosx-10.9-x86_64.egg' and adding 'build/bdist.macosx-10.9-x86_64/egg' to it
removing 'build/bdist.macosx-10.9-x86_64/egg' (and everything under it)
Processing ChebTools-1.2.0-py3.8-macosx-10.9-x86_64.egg
creating /Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages/ChebTools-1.2.0-py3.8-macosx-10.9-x86_64.egg
Extracting ChebTools-1.2.0-py3.8-macosx-10.9-x86_64.egg to /Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages
Adding ChebTools 1.2.0 to easy-install.pth file

Installed /Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages/ChebTools-1.2.0-py3.8-macosx-10.9-x86_64.egg
Processing dependencies for ChebTools==1.2.0
Finished processing dependencies for ChebTools==1.2.0
ibell commented 4 years ago

The bad news is that the code hangs:

(cheb) ian@Ians-Mac-mini ChebTools % python
Python 3.8.2 (default, May  6 2020, 02:49:43) 
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ChebTools
>>> ChebTools.generate_Chebyshev_expansion(10, lambda x: x, -1, 1)
ibell commented 4 years ago

I'm getting all kinds of weird behaviors on OS X that I haven't seen before. I think it has to do with the Frankenstein clang/g++ incompatibilities.

ibell commented 4 years ago

The binder instance is still working fine, so I think the problem is something about the OS X stuff: https://hub.gke.mybinder.org/user/usnistgov-chebtools-bfhlcst1/notebooks/BattlesTrefethen.ipynb

OrbitalMechanic commented 4 years ago

I repeated what you had done below. I found that I had to run the command git submodule update --init  to installl the pybind11 submodules. After doing that, I run the command CC=gcc-9 CXX=g++-9 python setup.py install, and ChebTools installed successfully. However, like you the ChebTools example hanged.

Any suggestions?

On May/13/2020 09:41:56, Ian Bell wrote:

Good news is that by setting the compilers to the home-brewed ones, compilation is successful:

|(cheb) ian@Ians-Mac-mini ChebTools % CC=gcc-9 CXX=g++-9 python setup.py install running install running bdist_egg running egg_info creating ChebTools.egg-info writing ChebTools.egg-info/PKG-INFO writing dependency_links to ChebTools.egg-info/dependency_links.txt writing top-level names to ChebTools.egg-info/top_level.txt writing manifest file 'ChebTools.egg-info/SOURCES.txt' reading manifest file 'ChebTools.egg-info/SOURCES.txt' writing manifest file 'ChebTools.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.9-x86_64/egg running install_lib running build_ext -- The C compiler identification is GNU 9.3.0 -- The CXX compiler identification is GNU 9.3.0 -- Checking whether C compiler has -isysroot -- Checking whether C compiler has -isysroot - yes -- Checking whether C compiler supports OSX deployment target flag -- Checking whether C compiler supports OSX deployment target flag - yes -- Check for working C compiler: /usr/local/bin/gcc-9 -- Check for working C compiler: /usr/local/bin/gcc-9 - works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Checking whether CXX compiler has -isysroot -- Checking whether CXX compiler has -isysroot - yes -- Checking whether CXX compiler supports OSX deployment target flag -- Checking whether CXX compiler supports OSX deployment target flag - yes -- Check for working CXX compiler: /usr/local/bin/g++-9 -- Check for working CXX compiler: /usr/local/bin/g++-9 - works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found OpenMP_C: -fopenmp (found version "4.5") -- Found OpenMP_CXX: -fopenmp (found version "4.5") -- Found OpenMP: TRUE (found version "4.5") -- Found PythonInterp: /Users/ian/opt/anaconda3/envs/cheb/bin/python (found version "3.8.2") -- Found PythonLibs: /Users/ian/opt/anaconda3/envs/cheb/lib/libpython3.8.dylib -- pybind11 v2.2.1 -- Performing Test HAS_FLTO -- Performing Test HAS_FLTO - Failed -- LTO disabled (not supported by the compiler and/or linker) -- Configuring done -- Generating done -- Build files have been written to: /Users/ian/Code/ChebTools/build/temp.macosx-10.9-x86_64-3.8 Scanning dependencies of target ChebToolsCatchTests Scanning dependencies of target ChebToolsMonolith [ 8%] Building CXX object CMakeFiles/ChebToolsMonolith.dir/main.cpp.o [ 16%] Building CXX object CMakeFiles/ChebToolsCatchTests.dir/tests/tests.cpp.o [ 25%] Building CXX object CMakeFiles/ChebToolsMonolith.dir/src/ChebTools.cpp.o [ 33%] Building CXX object CMakeFiles/ChebToolsCatchTests.dir/src/ChebTools.cpp.o [ 41%] Building CXX object CMakeFiles/ChebToolsMonolith.dir/src/speed_tests.cpp.o [ 50%] Building CXX object CMakeFiles/ChebToolsCatchTests.dir/src/speed_tests.cpp.o [ 58%] Linking CXX executable ChebToolsMonolith [ 58%] Built target ChebToolsMonolith Scanning dependencies of target ChebTools [ 66%] Building CXX object CMakeFiles/ChebTools.dir/src/pybind11_wrapper.cpp.o In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:82:34: warning: 'int PyThread_create_key()' is deprecated [-Wdeprecated-declarations] 82 | decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:100:36: note: declared here 100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~ In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:82:34: warning: 'int PyThread_create_key()' is deprecated [-Wdeprecated-declarations] 82 | decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:100:36: note: declared here 100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~ In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:82:34: warning: 'int PyThread_create_key()' is deprecated [-Wdeprecated-declarations] 82 | decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:100:36: note: declared here 100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~ In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:82:34: warning: 'int PyThread_create_key()' is deprecated [-Wdeprecated-declarations] 82 | decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:100:36: note: declared here 100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~ In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h: In function 'pybind11::detail::internals& pybind11::detail::get_internals()': /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:167:53: warning: 'int PyThread_create_key()' is deprecated [-Wdeprecated-declarations] 167 | internals_ptr->tstate = PyThread_create_key(); | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:100:36: note: declared here 100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~ In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:167:53: warning: 'int PyThread_create_key()' is deprecated [-Wdeprecated-declarations] 167 | internals_ptr->tstate = PyThread_create_key(); | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:100:36: note: declared here 100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~ In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:168:61: warning: 'int PyThread_set_key_value(int, void)' is deprecated [-Wdeprecated-declarations] 168 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here 102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~ In file included from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:16, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/internals.h:168:61: warning: 'int PyThread_set_key_value(int, void)' is deprecated [-Wdeprecated-declarations] 168 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here 102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~ In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h: In constructor 'pybind11::gil_scoped_acquire::gil_scoped_acquire()': /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1741:75: warning: 'void PyThread_get_key_value(int)' is deprecated [-Wdeprecated-declarations] 1741 | tstate = (PyThreadState ) PyThread_get_key_value(internals.tstate); | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:104:39: note: declared here 104 | Py_DEPRECATED(3.7) PyAPI_FUNC(void ) PyThread_get_key_value(int key); | ^~~~~~ In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1741:75: warning: 'void PyThread_get_key_value(int)' is deprecated [-Wdeprecated-declarations] 1741 | tstate = (PyThreadState ) PyThread_get_key_value(internals.tstate); | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:104:39: note: declared here 104 | Py_DEPRECATED(3.7) PyAPI_FUNC(void ) PyThread_get_key_value(int key); | ^~~~~~ In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1753:60: warning: 'int PyThread_set_key_value(int, void)' is deprecated [-Wdeprecated-declaration] 1753 | PyThread_set_key_value(internals.tstate, tstate); | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here 102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~ In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1753:60: warning: 'int PyThread_set_key_value(int, void)' is deprecated [-Wdeprecated-declaration] 1753 | PyThread_set_key_value(internals.tstate, tstate); | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here 102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~ In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h: In member function 'void pybind11::gil_scoped_acquire::dec_ref()': /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1792:69: warning: 'void PyThread_delete_key_value(int)' is deprecated [-Wdeprecated-declarations] 1792 | PyThread_delete_key_value(detail::get_internals().tstate); | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:105:37: note: declared here 105 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~ In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1792:69: warning: 'void PyThread_delete_key_value(int)' is deprecated [-Wdeprecated-declarations] 1792 | PyThread_delete_key_value(detail::get_internals().tstate); | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:105:37: note: declared here 105 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~ In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h: In constructor 'pybind11::gil_scoped_release::gil_scoped_release(bool)': /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1820:52: warning: 'int PyThread_set_key_value(int, void)' is deprecated [-Wdeprecated-declaration] 1820 | PyThread_set_key_value(key, nullptr); | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here 102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~ In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1820:52: warning: 'int PyThread_set_key_value(int, void)' is deprecated [-Wdeprecated-declaration] 1820 | PyThread_set_key_value(key, nullptr); | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here 102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~ In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h: In destructor 'pybind11::gil_scoped_release::~gil_scoped_release()': /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1833:47: warning: 'int PyThread_set_key_value(int, void)' is deprecated [-Wdeprecated-declaration] 1833 | PyThread_set_key_value(key, tstate); | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here 102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~ In file included from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:1833:47: warning: 'int PyThread_set_key_value(int, void)' is deprecated [-Wdeprecated-declaration] 1833 | PyThread_set_key_value(key, tstate); | ^ In file included from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pystate.h:10, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/genobject.h:11, from /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/Python.h:121, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/detail/common.h:111, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pytypes.h:12, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/cast.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/attr.h:13, from /Users/ian/Code/ChebTools/externals/pybind11/include/pybind11/pybind11.h:43, from /Users/ian/Code/ChebTools/src/pybind11_wrapper.cpp:4: /Users/ian/opt/anaconda3/envs/cheb/include/python3.8/pythread.h:102:36: note: declared here 102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~ [ 75%] Linking CXX executable ChebToolsCatchTests [ 75%] Built target ChebToolsCatchTests [ 83%] Building CXX object CMakeFiles/ChebTools.dir/src/ChebTools.cpp.o [ 91%] Building CXX object CMakeFiles/ChebTools.dir/src/speed_tests.cpp.o [100%] Linking CXX shared module ../lib.macosx-10.9-x86_64-3.8/ChebTools.cpython-38-darwin.so [100%] Built target ChebTools creating build/bdist.macosx-10.9-x86_64 creating build/bdist.macosx-10.9-x86_64/egg copying build/lib.macosx-10.9-x86_64-3.8/ChebTools.cpython-38-darwin.so -> build/bdist.macosx-10.9-x86_64/egg creating stub loader for ChebTools.cpython-38-darwin.so byte-compiling build/bdist.macosx-10.9-x86_64/egg/ChebTools.py to ChebTools.cpython-38.pyc creating build/bdist.macosx-10.9-x86_64/egg/EGG-INFO copying ChebTools.egg-info/PKG-INFO -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO copying ChebTools.egg-info/SOURCES.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO copying ChebTools.egg-info/dependency_links.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO copying ChebTools.egg-info/not-zip-safe -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO copying ChebTools.egg-info/top_level.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO writing build/bdist.macosx-10.9-x86_64/egg/EGG-INFO/native_libs.txt creating dist creating 'dist/ChebTools-1.2.0-py3.8-macosx-10.9-x86_64.egg' and adding 'build/bdist.macosx-10.9-x86_64/egg' to it removing 'build/bdist.macosx-10.9-x86_64/egg' (and everything under it) Processing ChebTools-1.2.0-py3.8-macosx-10.9-x86_64.egg creating /Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages/ChebTools-1.2.0-py3.8-macosx-10.9-x86_64.egg Extracting ChebTools-1.2.0-py3.8-macosx-10.9-x86_64.egg to /Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages Adding ChebTools 1.2.0 to easy-install.pth file Installed /Users/ian/opt/anaconda3/envs/cheb/lib/python3.8/site-packages/ChebTools-1.2.0-py3.8-macosx-10.9-x86_64.egg Processing dependencies for ChebTools==1.2.0 Finished processing dependencies for ChebTools==1.2.0 |

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/usnistgov/ChebTools/issues/25#issuecomment-627994600, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEO3555IRQLU34PWJJKMDLRRKPSJANCNFSM4M5UDQCQ.

ianhbell commented 4 years ago

I have very little idea what is going on here.... I tried to upgrade pybind11 to version 2.5, and that yields non-hanging code, but wrong results. There's a bug somewhere, and I wonder if it is a binary incompatibility between the compiler used to build python (Xcode) and the compiler used to build the extension (g++). When I run on other systems without this sort of a mismatch (windows, linux), the library "just works".

So my idea is to patch the cmake things for Xcode to help it find the include folder for the omp.h header (probably the right solution). How comfortable are you with CMake? I'm already a few hours into this problem today, and I don't think I can devote much time for at least a few days to get this working.

OrbitalMechanic commented 4 years ago

When it comes to cmake, I am a novice, but I'm not afraid of hacking my way through it. The trick is knowing the parameters to set, the prerequisites and which options go into which slots.

On May/13/2020 16:00:26, Ian Bell wrote:

I have very little idea what is going on here.... I tried to upgrade pybind11 to version 2.5, and that yields non-hanging code, but wrong results. There's a bug somewhere, and I wonder if it is a binary incompatibility between the compiler used to build python (Xcode) and the compiler used to build the extension (g++). When I run on other systems without this sort of a mismatch (windows, linux), the library "just works".

So my idea is to patch the cmake things for Xcode to help it find the include folder for the omp.h header (probably the right solution). How comfortable are you with CMake? I'm already a few hours into this problem today, and I don't think I can devote much time for at least a few days to get this working.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/usnistgov/ChebTools/issues/25#issuecomment-628214398, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEO356UJERGGTADPO5MAVDRRL35VANCNFSM4M5UDQCQ.

ianhbell commented 4 years ago

Does this maybe fix the compilation with XCode?

OrbitalMechanic commented 4 years ago

Just saw your note. Tried running the new commit and I get the following error message

CMake Error at CMakeLists.txt:25 (check_cxx_source_compiles):
  Unknown CMake command "check_cxx_source_compiles".

From what I understand, some cmake file needs to be included that defines check_cxx_source_compiles.

The full output follows.

Last login: Thu May 14 09:50:15 on ttys000
(base) user@Samuels-Mac-Pro ChebTools-master % git submodule update --init --recursive
(base) user@Samuels-Mac-Pro ChebTools-master % mkdir build
(base) user@Samuels-Mac-Pro ChebTools-master % cd build
(base) user@Samuels-Mac-Pro build % cmake ..
-- The C compiler identification is AppleClang 11.0.3.11030032
-- The CXX compiler identification is AppleClang 11.0.3.11030032
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenMP_C: -Xclang -fopenmp (found version "3.1") 
-- Found OpenMP_CXX: -Xclang -fopenmp (found version "3.1") 
-- Found OpenMP: TRUE (found version "3.1")  
CMake Error at CMakeLists.txt:25 (check_cxx_source_compiles):
  Unknown CMake command "check_cxx_source_compiles".

-- Configuring incomplete, errors occurred!
See also "/Users/user/ChebTools-master/build/CMakeFiles/CMakeOutput.log".
(base) user@Samuels-Mac-Pro build % 

Any thoughts?

OrbitalMechanic commented 4 years ago

Just saw your note. Tried running the new commit and I get the following error message

|CMake Error at CMakeLists.txt:25 (check_cxx_source_compiles): Unknown CMake command "check_cxx_source_compiles". |

From what I understand, some cmake file needs to be included that defines check_cxx_source_compiles.

The full output follows.

|Last login: Thu May 14 09:50:15 on ttys000 (base) user@Samuels-Mac-Pro ChebTools-master % git submodule update --init --recursive (base) user@Samuels-Mac-Pro ChebTools-master % mkdir build (base) user@Samuels-Mac-Pro ChebTools-master % cd build (base) user@Samuels-Mac-Pro build % cmake .. -- The C compiler identification is AppleClang 11.0.3.11030032 -- The CXX compiler identification is AppleClang 11.0.3.11030032 -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features

Any thoughts?

On May/14/2020 09:20:22, Ian Bell wrote:

Does this maybe fix the compilation with XCode?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/usnistgov/ChebTools/issues/25#issuecomment-628630075, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEO35YUSSZWSG5G5LQR2JLRRPVZNANCNFSM4M5UDQCQ.

ianhbell commented 4 years ago

I pushed up another fix, maybe this time I should test it myself :)

ianhbell commented 4 years ago

I think I fixed it in 33f43eb7af5ef18e9223d87d6f9a1596a48119c6 with a more reliable and less hacky solution.

OrbitalMechanic commented 4 years ago

I got ChebTools to install successfully using the command

pip install git+git://github.com/usnistgov/ChebTools.git

The output from the install went as follows:

(base) user@Samuels-Mac-Pro ~ % pip install git+git://github.com/usnistgov/ChebTools.git
Collecting git+git://github.com/usnistgov/ChebTools.git
  Cloning git://github.com/usnistgov/ChebTools.git to /private/var/folders/2r/4bw6nw0x58z0_ybx632_h14m0000gq/T/pip-req-build-io10nzc4
  Running command git clone -q git://github.com/usnistgov/ChebTools.git /private/var/folders/2r/4bw6nw0x58z0_ybx632_h14m0000gq/T/pip-req-build-io10nzc4
  Running command git submodule update --init --recursive -q
Requirement already satisfied (use --upgrade to upgrade): ChebTools==1.2.0 from git+git://github.com/usnistgov/ChebTools.git in ./opt/anaconda3/lib/python3.7/site-packages/ChebTools-1.2.0-py3.7-macosx-10.9-x86_64.egg
Building wheels for collected packages: ChebTools
  Building wheel for ChebTools (setup.py) ... done
  Created wheel for ChebTools: filename=ChebTools-1.2.0-cp37-cp37m-macosx_10_15_x86_64.whl size=150584 sha256=15c4bcd7f8c4740c041a3361b472341ca16795f12b159516078e9b08b0df9160
  Stored in directory: /private/var/folders/2r/4bw6nw0x58z0_ybx632_h14m0000gq/T/pip-ephem-wheel-cache-fiobafu_/wheels/18/35/55/8ccf8d92944ddd0abfd5508ae4229873581542148d4c4326f4
Successfully built ChebTools
(base) user@Samuels-Mac-Pro ~ %

The problem I'm having at present is trying to get the example in README.md to run:

import scipy.special
import ChebTools
# Only keep the roots that are in [-1,1] in scaled coordinates
only_in_domain = True
# The 0-th Bessel function (for code concision)
def J0(x): return scipy.special.jn(0,x)
# Make a 200-th order expansion of the 0-th Bessel function in [0,30]
f = ChebTools.generate_Chebyshev_expansion(200, J0, 0, 30)
# Roots of the function
rts = f.real_roots(only_in_domain)
# Extrema of the function (roots of the derivative, where dy/dx =0)
extrema = f.deriv(1).real_roots(only_in_domain)

For whatever reason the code appearings to hanging in the function call

ChebTools.generate_Chebyshev_expansion(200, J0, 0, 30)

In placing print statements before and after the call, one observes the execution transferring control to the function, but it never returns.

Any thoughts?

OrbitalMechanic commented 4 years ago

I got ChebTools to install successfully using the command

|pip install git+git://github.com/usnistgov/ChebTools.git|

The output from the install went as follows:

|(base) user@Samuels-Mac-Pro ~ % pip install git+git://github.com/usnistgov/ChebTools.git Collecting git+git://github.com/usnistgov/ChebTools.git Cloning git://github.com/usnistgov/ChebTools.git to /private/var/folders/2r/4bw6nw0x58z0_ybx632_h14m0000gq/T/pip-req-build-io10nzc4 Running command git clone -q git://github.com/usnistgov/ChebTools.git /private/var/folders/2r/4bw6nw0x58z0_ybx632_h14m0000gq/T/pip-req-build-io10nzc4 Running command git submodule update --init --recursive -q Requirement already satisfied (use --upgrade to upgrade): ChebTools==1.2.0 from git+git://github.com/usnistgov/ChebTools.git in ./opt/anaconda3/lib/python3.7/site-packages/ChebTools-1.2.0-py3.7-macosx-10.9-x86_64.egg Building wheels for collected packages: ChebTools Building wheel for ChebTools (setup.py) ... done Created wheel for ChebTools: filename=ChebTools-1.2.0-cp37-cp37m-macosx_10_15_x86_64.whl size=150584 sha256=15c4bcd7f8c4740c041a3361b472341ca16795f12b159516078e9b08b0df9160 Stored in directory: /private/var/folders/2r/4bw6nw0x58z0_ybx632h14m0000gq/T/pip-ephem-wheel-cache-fiobafu/wheels/18/35/55/8ccf8d92944ddd0abfd5508ae4229873581542148d4c4326f4 Successfully built ChebTools (base) user@Samuels-Mac-Pro ~ % |

The problem I'm having at present is trying to get the example in README.md to run:

|import scipy.special import ChebTools # Only keep the roots that are in [-1,1] in scaled coordinates only_in_domain = True # The 0-th Bessel function (for code concision) def J0(x): return scipy.special.jn(0,x) # Make a 200-th order expansion of the 0-th Bessel function in [0,30] f = ChebTools.generate_Chebyshev_expansion(200, J0, 0, 30) # Roots of the function rts = f.real_roots(only_in_domain) # Extrema of the function (roots of the derivative, where dy/dx =0) extrema = f.deriv(1).real_roots(only_in_domain) |

For whatever reason the code appearings to hanging in the function call

|ChebTools.generate_Chebyshev_expansion(200, J0, 0, 30)|

In placing print statements before and after the call, one observes the execution transferring control to the function, but it never returns.

Any thoughts?

On May/14/2020 11:29:51, Ian Bell wrote:

I think I fixed it in 33f43eb https://github.com/usnistgov/ChebTools/commit/33f43eb7af5ef18e9223d87d6f9a1596a48119c6 with a more reliable and less hacky solution.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/usnistgov/ChebTools/issues/25#issuecomment-628711288, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEO357EVP26CBPPZK6ELGLRRQE67ANCNFSM4M5UDQCQ.

ianhbell commented 4 years ago

I had gotten things to work on my side, and now I wonder whether bumping pybind11 to version 2.5.0 was part of why. Let me bump that again, and let you take another crack at it.

ianhbell commented 4 years ago

Bumped pybind11 in 5ad1806ca898a36e66a84c7de3088c3d9c44e31a

OrbitalMechanic commented 4 years ago

Just tried the new commit. It now works. I was able to install ChebTools successfully, and when running the example in the README.md file, the example no longer hangs. :-)

Thank you for all your help in getting ChebTools up and running. I really appreciate it.

Sam Dupree.

On May/14/2020 16:27:15, Ian Bell wrote:

Bumped pybind11 in 5ad1806 https://github.com/usnistgov/ChebTools/commit/5ad1806ca898a36e66a84c7de3088c3d9c44e31a

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/usnistgov/ChebTools/issues/25#issuecomment-628869190, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEO35ZTXISVMCMV2IE5XQLRRRH2HANCNFSM4M5UDQCQ.

ianhbell commented 4 years ago

Great to hear! Purely out of curiosity, what are you using ChebTools for?

OrbitalMechanic commented 4 years ago

First let me say thank you for all your help in getting ChebTools up and running on my Mac. To answer your question as to using ChebTools, I'm  looking into tools for Chebyshev interpolation for planetary ephemerides in Python.

Sam Dupree.

On May/14/2020 18:47:16, Ian Bell wrote:

Great to hear! Purely out of curiosity, what are you using ChebTools for?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/usnistgov/ChebTools/issues/25#issuecomment-628924925, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEO352PWT2L5MSZS6RF4XTRRRYHJANCNFSM4M5UDQCQ.

ianhbell commented 4 years ago

It was my pleasure, and thank you for reporting the issue

I'm pleased that I can contribute to the scientific endeavor in my small part.

FWIW, numpy can now do much of what ChebTools can, check out their Chebyshev polynomial module: https://numpy.org/devdocs/reference/generated/numpy.polynomial.chebyshev.Chebyshev.html . Their documentation for Chebyshev expansions are sparse, to put it kindly.