Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration issue with Anaconda and Python 3.8 #75

Open
JAM5107k opened this issue Sep 23, 2024 · 1 comment
Open

Configuration issue with Anaconda and Python 3.8 #75

JAM5107k opened this issue Sep 23, 2024 · 1 comment

Comments

@JAM5107k
Copy link

I followed the installation directions on the README. However, my version of Anaconda only goes back to python 3.8. I did the following:

  1. conda create --name itmlogic python=3.8 gdal
  2. conda activate itmlogic
  3. conda install numpy fiona shapely rtree rasterio pyproj tqdm pytest rasterstats pandas matplotlib
  4. git clone https://github.com/edwardoughton/itmlogic
  5. changed to the itmlogic directory
  6. python setup.py install
  7. python -m pytest

The result is below (2 fails):

--------------------------------------- Captured stdout call ---------------------------------------
Line of sight path
Diffraction is the dominant mode
Estimated quantiles of basic transmission loss (db)
Free space value 102.63079048306626 db
Confidence levels 50, 90, 10
===================================== short test summary info ======================================
FAILED tests/test_area.py::test_itmlogic_area - assert 111.69200844812512 == 111.69200844812511
FAILED tests/test_p2p.py::test_itmlogic_p2p - assert 137.64279211442658 == 137.64279211442656
=================================== 2 failed, 19 passed in 0.31s ===================================

Looking at the 2 failures it appears that there is an assert on the equivlancy of some doubles that differ in the 14th decimal place.

Any suggestions?

Thanks /Joe.

@JAM5107k
Copy link
Author

If I continue on and just try the p2p.py test it also fails. Here are the results:

python scripts/p2p.py

Traceback (most recent call last):
File "scripts/p2p.py", line 28, in
from terrain_module import terrain_p2p
File "/Analysis/propagation/itmlogic/scripts/terrain_module.py", line 21, in
from rasterstats import gen_zonal_stats, point_query
File "/opt/anaconda3/envs/itmlogic/lib/python3.8/site-packages/rasterstats/init.py", line 2, in
from .main import gen_zonal_stats, raster_stats, zonal_stats
File "/opt/anaconda3/envs/itmlogic/lib/python3.8/site-packages/rasterstats/main.py", line 8, in
import numpy.distutils.system_info as sysinfo
File "/opt/anaconda3/envs/itmlogic/lib/python3.8/site-packages/numpy/distutils/system_info.py", line 196, in
from numpy.distutils.command.config import config as cmd_config
File "/opt/anaconda3/envs/itmlogic/lib/python3.8/site-packages/numpy/distutils/command/config.py", line 19, in
from numpy.distutils.mingw32ccompiler import generate_manifest
File "/opt/anaconda3/envs/itmlogic/lib/python3.8/site-packages/numpy/distutils/mingw32ccompiler.py", line 28, in
from distutils.msvccompiler import get_build_version as get_build_msvc_version
ModuleNotFoundError: No module named 'distutils.msvccompiler'

Any suggestions? Thanks /Joe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant