CameronBodine / PINGMapper

Open-source interface for processing recreation-grade side scan sonar datasets and reproducibly mapping benthic habitat
https://cameronbodine.github.io/PINGMapper/
MIT License
39 stars 3 forks source link

Install issues #101

Closed mjhawker closed 7 months ago

mjhawker commented 10 months ago

Hi Cameron,

I've had some installation issues and finally surrendered. I can't get past the final installation step of creating the environment. Here's what I see each time I've tried.

Pip subprocess error: ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none) ERROR: No matching distribution found for tensorflow

failed

CondaEnvException: Pip failed

I've tried updating pip, updating tensorflow, uninstalling, reinstalling, etc. I also tried reverting to an earlier Python version 3.6. Was there a version update that broke compatibility or am I simply doing something wrong?

CameronBodine commented 10 months ago

I'm sorry to hear this @mjhawker. I have not seen this issue yet. Can you try editing the yml file in the PINGMapper conda folder and specify Tensorflow==12.0 instead of Tensorflow?

CameronBodine commented 10 months ago

I did see this. Perhaps you installed the wrong version of Miniconda? Can you confirm that you installed the 64-bit version rather then the 32-bit version? In the Anaconda prompt, first run python then type import struct;print(struct.calcsize("P") * 8) and confirm that the output is 64, not 32. For reference, this is what my environment looks like after updating in the past month or so:

Click to expand ``` (base) PS C:\> conda activate ping (ping) PS C:\> conda list # packages in environment at C:\Users\csb67\AppData\Local\miniconda3\envs\ping: # # Name Version Build Channel absl-py 2.0.0 pypi_0 pypi affine 2.4.0 pyhd8ed1ab_0 conda-forge aom 3.6.1 h63175ca_0 conda-forge astunparse 1.6.3 pypi_0 pypi attrs 23.1.0 pyh71513ae_1 conda-forge blosc 1.21.5 hdccc3a2_0 conda-forge branca 0.6.0 pyhd8ed1ab_0 conda-forge brotli 1.1.0 hcfcfb64_1 conda-forge brotli-bin 1.1.0 hcfcfb64_1 conda-forge brotli-python 1.1.0 py311h12c1d0e_1 conda-forge bzip2 1.0.8 h8ffe710_4 conda-forge c-ares 1.19.1 hcfcfb64_0 conda-forge c-blosc2 2.10.4 h183a6f4_0 conda-forge ca-certificates 2023.7.22 h56e8100_0 conda-forge cached-property 1.5.2 hd8ed1ab_1 conda-forge cached_property 1.5.2 pyha770c72_1 conda-forge cachetools 5.3.1 pypi_0 pypi cairo 1.16.0 h412253b_1017 conda-forge certifi 2023.7.22 pyhd8ed1ab_0 conda-forge cfitsio 4.3.0 h9b0cee5_0 conda-forge charls 2.4.2 h1537add_0 conda-forge charset-normalizer 3.3.0 pyhd8ed1ab_0 conda-forge click 8.1.7 win_pyh7428d3b_0 conda-forge click-plugins 1.1.1 py_0 conda-forge cligj 0.7.2 pyhd8ed1ab_1 conda-forge colorama 0.4.6 pyhd8ed1ab_0 conda-forge contourpy 1.1.1 py311h005e61a_1 conda-forge cycler 0.12.0 pyhd8ed1ab_0 conda-forge dav1d 1.2.1 hcfcfb64_0 conda-forge doodleverse-utils 0.0.35 pypi_0 pypi expat 2.5.0 h63175ca_1 conda-forge filelock 3.12.4 pypi_0 pypi fiona 1.9.4 py311h4e4dc46_0 conda-forge flatbuffers 23.5.26 pypi_0 pypi folium 0.14.0 pyhd8ed1ab_0 conda-forge font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge font-ttf-inconsolata 3.000 h77eed37_0 conda-forge font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge font-ttf-ubuntu 0.83 hab24e00_0 conda-forge fontconfig 2.14.2 hbde0cde_0 conda-forge fonts-conda-ecosystem 1 0 conda-forge fonts-conda-forge 1 0 conda-forge fonttools 4.43.0 py311ha68e1ae_0 conda-forge freetype 2.12.1 hdaf720e_2 conda-forge freexl 2.0.0 h8276f4a_0 conda-forge fsspec 2023.9.2 pypi_0 pypi gast 0.5.4 pypi_0 pypi gdal 3.7.2 py311h9601e46_4 conda-forge geopandas 0.14.0 pyhd8ed1ab_0 conda-forge geopandas-base 0.14.0 pyha770c72_0 conda-forge geos 3.12.0 h1537add_0 conda-forge geotiff 1.7.1 h2e186c9_13 conda-forge gettext 0.21.1 h5728263_0 conda-forge giflib 5.2.1 h64bf75a_3 conda-forge glib 2.78.0 h12be248_0 conda-forge glib-tools 2.78.0 h12be248_0 conda-forge google-auth 2.23.2 pypi_0 pypi google-auth-oauthlib 1.0.0 pypi_0 pypi google-pasta 0.2.0 pypi_0 pypi grpcio 1.59.0 pypi_0 pypi gst-plugins-base 1.22.6 h001b923_2 conda-forge gstreamer 1.22.6 hb4038d2_2 conda-forge h5py 3.9.0 nompi_py311h0d04526_103 conda-forge hdf4 4.2.15 h1334946_6 conda-forge hdf5 1.14.2 nompi_h73e8ff5_100 conda-forge huggingface-hub 0.16.4 pypi_0 pypi icu 73.2 h63175ca_0 conda-forge idna 3.4 pyhd8ed1ab_0 conda-forge imagecodecs 2023.9.18 py311ha37d076_0 conda-forge imageio 2.31.1 pyh24c5eb1_0 conda-forge importlib-metadata 6.8.0 pyha770c72_0 conda-forge intel-openmp 2023.2.0 h57928b3_50496 conda-forge jinja2 3.1.2 pyhd8ed1ab_1 conda-forge joblib 1.3.2 pyhd8ed1ab_0 conda-forge jxrlib 1.1 h8ffe710_2 conda-forge kealib 1.5.2 ha10e780_1 conda-forge keras 2.14.0 pypi_0 pypi kiwisolver 1.4.5 py311h005e61a_1 conda-forge krb5 1.21.2 heb0366b_0 conda-forge lazy_loader 0.3 pyhd8ed1ab_0 conda-forge lcms2 2.15 he9d350c_2 conda-forge lerc 4.0.0 h63175ca_0 conda-forge libabseil 20230802.1 cxx17_h63175ca_0 conda-forge libaec 1.1.2 h63175ca_1 conda-forge libarchive 3.7.2 h6f8411a_0 conda-forge libavif 1.0.1 hea6d26e_2 conda-forge libblas 3.9.0 18_win64_mkl conda-forge libboost-headers 1.82.0 h57928b3_5 conda-forge libbrotlicommon 1.1.0 hcfcfb64_1 conda-forge libbrotlidec 1.1.0 hcfcfb64_1 conda-forge libbrotlienc 1.1.0 hcfcfb64_1 conda-forge libcblas 3.9.0 18_win64_mkl conda-forge libclang 16.0.6 pypi_0 pypi libclang13 15.0.7 default_h77d9078_3 conda-forge libcrc32c 1.1.2 h0e60522_0 conda-forge libcurl 8.3.0 hd5e4a3a_0 conda-forge libdeflate 1.19 hcfcfb64_0 conda-forge libexpat 2.5.0 h63175ca_1 conda-forge libffi 3.4.2 h8ffe710_5 conda-forge libgdal 3.7.2 hc5c2e26_4 conda-forge libglib 2.78.0 he8f3873_0 conda-forge libgoogle-cloud 2.12.0 h0a0a397_2 conda-forge libgrpc 1.57.0 h550f6bd_1 conda-forge libhwloc 2.9.3 default_haede6df_1009 conda-forge libiconv 1.17 h8ffe710_0 conda-forge libjpeg-turbo 2.1.5.1 hcfcfb64_1 conda-forge libkml 1.3.0 haf3e7a6_1018 conda-forge liblapack 3.9.0 18_win64_mkl conda-forge libnetcdf 4.9.2 nompi_h8284064_112 conda-forge libogg 1.3.4 h8ffe710_1 conda-forge libpng 1.6.39 h19919ed_0 conda-forge libpq 16.0 h43585b0_1 conda-forge libprotobuf 4.23.4 hb8276f3_6 conda-forge librttopo 1.1.0 h92c5fdb_14 conda-forge libspatialindex 1.9.3 h39d44d4_4 conda-forge libspatialite 5.1.0 hbf340bc_0 conda-forge libsqlite 3.43.0 hcfcfb64_0 conda-forge libssh2 1.11.0 h7dfc565_0 conda-forge libtiff 4.6.0 h4554b19_1 conda-forge libvorbis 1.3.7 h0e60522_0 conda-forge libwebp-base 1.3.2 hcfcfb64_0 conda-forge libxcb 1.15 hcd874cb_0 conda-forge libxml2 2.11.5 hc3477c8_1 conda-forge libzip 1.10.1 h1d365fa_3 conda-forge libzlib 1.2.13 hcfcfb64_5 conda-forge libzopfli 1.0.3 h0e60522_0 conda-forge lz4-c 1.9.4 hcfcfb64_0 conda-forge lzo 2.10 he774522_1000 conda-forge m2w64-gcc-libgfortran 5.3.0 6 conda-forge m2w64-gcc-libs 5.3.0 7 conda-forge m2w64-gcc-libs-core 5.3.0 7 conda-forge m2w64-gmp 6.1.0 2 conda-forge m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge mapclassify 2.6.0 pyhd8ed1ab_0 conda-forge markdown 3.4.4 pypi_0 pypi markupsafe 2.1.3 py311ha68e1ae_1 conda-forge matplotlib 3.8.0 py311h1ea47a8_1 conda-forge matplotlib-base 3.8.0 py311h6e989c2_1 conda-forge minizip 4.0.1 h5bed578_5 conda-forge mkl 2022.1.0 h6a75c08_874 conda-forge ml-dtypes 0.2.0 pypi_0 pypi msys2-conda-epoch 20160418 1 conda-forge munch 4.0.0 pyhd8ed1ab_0 conda-forge munkres 1.1.4 pyh9f0ad1d_0 conda-forge networkx 3.1 pyhd8ed1ab_0 conda-forge numpy 1.26.0 py311h0b4df5a_0 conda-forge oauthlib 3.2.2 pypi_0 pypi openjpeg 2.5.0 h3d672ee_3 conda-forge openssl 3.1.3 hcfcfb64_0 conda-forge opt-einsum 3.3.0 pypi_0 pypi packaging 23.2 pyhd8ed1ab_0 conda-forge pandas 2.1.1 py311hf63dbb6_1 conda-forge pcre2 10.40 h17e33f8_0 conda-forge pillow 10.0.1 py311hd926f49_1 conda-forge pip 23.2.1 pyhd8ed1ab_0 conda-forge pixman 0.42.2 h63175ca_0 conda-forge ply 3.11 py_1 conda-forge poppler 23.08.0 ha2b368b_2 conda-forge poppler-data 0.4.12 hd8ed1ab_0 conda-forge postgresql 16.0 hc80876b_1 conda-forge proj 9.3.0 he13c7e8_1 conda-forge protobuf 4.24.4 pypi_0 pypi psutil 5.9.5 pypi_0 pypi pthread-stubs 0.4 hcd874cb_1001 conda-forge pthreads-win32 2.9.1 hfa6e2cd_3 conda-forge pyasn1 0.5.0 pypi_0 pypi pyasn1-modules 0.3.0 pypi_0 pypi pyparsing 3.1.1 pyhd8ed1ab_0 conda-forge pyproj 3.6.1 py311h517f58c_2 conda-forge pyqt 5.15.9 py311h125bc19_5 conda-forge pyqt5-sip 12.12.2 py311h12c1d0e_5 conda-forge pysimplegui 4.60.5 pypi_0 pypi pysocks 1.7.1 pyh0701188_6 conda-forge python 3.11.6 h2628c8c_0_cpython conda-forge python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge python-tzdata 2023.3 pyhd8ed1ab_0 conda-forge python_abi 3.11 4_cp311 conda-forge pytz 2023.3.post1 pyhd8ed1ab_0 conda-forge pywavelets 1.4.1 py311h59ca53f_1 conda-forge pyyaml 6.0.1 pypi_0 pypi qt-main 5.15.8 he5a7383_16 conda-forge rasterio 1.3.8 py311hd1b6236_3 conda-forge rav1e 0.6.6 h975169c_2 conda-forge re2 2023.03.02 hd4eee63_0 conda-forge regex 2023.10.3 pypi_0 pypi requests 2.31.0 pyhd8ed1ab_0 conda-forge requests-oauthlib 1.3.1 pypi_0 pypi rsa 4.9 pypi_0 pypi rtree 1.0.1 py311hcacb13a_3 conda-forge safetensors 0.3.3 pypi_0 pypi scikit-image 0.21.0 py311h12c1d0e_0 conda-forge scikit-learn 1.3.1 py311h142b183_0 conda-forge scipy 1.11.3 py311h0b4df5a_1 conda-forge setuptools 68.2.2 pyhd8ed1ab_0 conda-forge shapely 2.0.1 py311h72efec2_3 conda-forge sip 6.7.11 py311h12c1d0e_1 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge snappy 1.1.10 hfb803bf_0 conda-forge snuggs 1.4.7 py_0 conda-forge sqlite 3.43.0 hcfcfb64_0 conda-forge svt-av1 1.7.0 h63175ca_0 conda-forge tbb 2021.10.0 h91493d7_1 conda-forge tensorboard 2.14.1 pypi_0 pypi tensorboard-data-server 0.7.1 pypi_0 pypi tensorflow 2.14.0 pypi_0 pypi tensorflow-estimator 2.14.0 pypi_0 pypi tensorflow-intel 2.14.0 pypi_0 pypi tensorflow-io-gcs-filesystem 0.31.0 pypi_0 pypi termcolor 2.3.0 pypi_0 pypi threadpoolctl 3.2.0 pyha21a80b_0 conda-forge tifffile 2023.9.26 pyhd8ed1ab_0 conda-forge tiledb 2.16.3 hbf04793_3 conda-forge tk 8.6.13 hcfcfb64_0 conda-forge tokenizers 0.14.0 pypi_0 pypi toml 0.10.2 pyhd8ed1ab_0 conda-forge tomli 2.0.1 pyhd8ed1ab_0 conda-forge tornado 6.3.3 py311ha68e1ae_1 conda-forge tqdm 4.66.1 pypi_0 pypi transformers 4.34.0 pypi_0 pypi typing-extensions 4.8.0 pypi_0 pypi tzdata 2023c h71feb2d_0 conda-forge ucrt 10.0.22621.0 h57928b3_0 conda-forge uriparser 0.9.7 h1537add_1 conda-forge urllib3 2.0.6 pyhd8ed1ab_0 conda-forge vc 14.3 h64f974e_17 conda-forge vc14_runtime 14.36.32532 hdcecf7f_17 conda-forge versioneer 0.29 pypi_0 pypi vs2015_runtime 14.36.32532 h05e6639_17 conda-forge werkzeug 3.0.0 pypi_0 pypi wheel 0.41.2 pyhd8ed1ab_0 conda-forge win_inet_pton 1.1.0 pyhd8ed1ab_6 conda-forge wrapt 1.14.1 pypi_0 pypi xerces-c 3.2.4 h63175ca_3 conda-forge xorg-libxau 1.0.11 hcd874cb_0 conda-forge xorg-libxdmcp 1.1.3 hcd874cb_0 conda-forge xyzservices 2023.10.0 pyhd8ed1ab_0 conda-forge xz 5.2.6 h8d14728_0 conda-forge zfp 1.0.0 h63175ca_4 conda-forge zipp 3.17.0 pyhd8ed1ab_0 conda-forge zlib 1.2.13 hcfcfb64_5 conda-forge zlib-ng 2.0.7 hcfcfb64_0 conda-forge zstd 1.5.5 h12be248_0 conda-forge ```
mjhawker commented 10 months ago

Thanks for the quick response. I confirmed Miniconda 64 bit version using your command. The output for my environment matches yours except none of the pipy channels, just conda-forge.

I followed your installation directions to the T (several times). I'm somewhat novice to Python, but learning. My bathymetry tool box is much deeper!

Am learning this after trying to install tensorflow on its own:

UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment:

Specifications:

Your python: python=3.12

Maybe that helps??

CameronBodine commented 10 months ago

I did see this. Perhaps you installed the wrong version of Miniconda? Can you confirm that you installed the 64-bit version rather then the 32-bit version?

I figured that was a stab in the dark!

Ok, yes, that information helps. Seems Python has a new version I didn't know about. Tensorflow currently supports Python 3.8-3.11. I updated the .yml. Go ahead and update by running the following, then try the install again.

git stash then git pull.

Let me know how it goes!

mjhawker commented 10 months ago

Ok, that seemed to work to complete the install. I also updated everything else with your update page directions. However, I tried to run your test data set and got this:

(ping) PS C:\Users\mjhaw\PythonPackages\PINGMapper> python test_PINGMapper.py 1
Traceback (most recent call last):
  File "C:\Users\mjhaw\PythonPackages\PINGMapper\test_PINGMapper.py", line 34, in <module>
    from funcs_common import *
  File "C:\Users\mjhaw\PythonPackages\PINGMapper\src\funcs_common.py", line 43, in <module>
    import rasterio
  File "C:\Users\mjhaw\miniconda3\envs\ping\Lib\site-packages\rasterio\__init__.py", line 28, in <module>
    from rasterio._version import gdal_version, get_geos_version, get_proj_version
ImportError: DLL load failed while importing _version: The specified procedure could not be found.
(ping) PS C:\Users\mjhaw\PythonPackages\PINGMapper>
CameronBodine commented 10 months ago

I suspect you are in a limbo state after trying to do an install and everything failing. Sorry for the issue but this tends to be the situation with this software. Though it is tedious, I recommend starting completely from scratch as there has been unanticipated issues:

Any errors you may encounter, please post the complete output from the console.

Again, I apologize for the inconvenience. It's very difficult to anticipate what is causing the issue remotely.

mjhawker commented 10 months ago

Ok, uninstalled everything and made sure any folders were deleted. Followed the installation directions and it seemed successful, but got the same output as above. I'll try on a fresh pc in the morning.

(base) PS C:\Users\mjhaw\PythonPackages\PINGMapper> conda activate ping
(ping) PS C:\Users\mjhaw\PythonPackages\PINGMapper> python test_PINGMapper.py 1
Traceback (most recent call last):
  File "C:\Users\mjhaw\PythonPackages\PINGMapper\test_PINGMapper.py", line 34, in <module>
    from funcs_common import *
  File "C:\Users\mjhaw\PythonPackages\PINGMapper\src\funcs_common.py", line 43, in <module>
    import rasterio
  File "C:\Users\mjhaw\miniconda3\envs\ping\Lib\site-packages\rasterio\__init__.py", line 28, in <module>
    from rasterio._version import gdal_version, get_geos_version, get_proj_version
ImportError: DLL load failed while importing _version: The specified procedure could not be found.
CameronBodine commented 10 months ago

Thank you for trying and I appreciate your patience! I will dig into this further today. Seems to be some other package version issue between rasterio and gdal.

CameronBodine commented 10 months ago

Unfortunately, I am not able to replicate your issue on my end. For documentation purposes, here are the steps that I took:

  1. I did not remove and reinstall miniconda. I recently did a reinstall.
  2. I did the update and maintenance as described in Step 1 to Step 5 from the update instructions
  3. Just to be sure, I renamed the environment from ping to ping2 and installed the environment as described in Step 9 of the install instructions.
  4. Ran the test script with no errors. I attached the processing logs found in PINGMapper/procData/PINGMapper-Test-Small-DS/meta/logs/ log_2023-11-01_0504.txt

@mjhawker I will look to see if I can find info about your error.

CameronBodine commented 10 months ago

I tried a small fix referenced here. @mjhawker can you do a git pull to update PINGMapper then try the test again? If it fails, can you provide the following:

  1. Attach any logs from PINGMapper/procData/PINGMapper-Test-Small-DS/meta/logs/
  2. The complete console output from running conda list in the activated ping environment.
mjhawker commented 10 months ago

Well, the errors changed a bit after the update, but still no output. Here's the console message and conda list.

There's no file other than the "OutputsHere" text file in that location.

(ping) PS C:\Users\mjhaw\PythonPackages\PINGMapper> python test_PINGMapper.py 1 Version: 2.14.0 Eager mode: True Traceback (most recent call last): File "C:\Users\mjhaw\PythonPackages\PINGMapper\test_PINGMapper.py", line 35, in from main_readFiles import read_master_func File "C:\Users\mjhaw\PythonPackages\PINGMapper\src\main_readFiles.py", line 32, in from class_portstarObj import portstarObj File "C:\Users\mjhaw\PythonPackages\PINGMapper\src\class_portstarObj.py", line 31, in from funcs_model import File "C:\Users\mjhaw\PythonPackages\PINGMapper\src\funcs_model.py", line 51, in from doodleverse_utils.prediction_imports import File "C:\Users\mjhaw\miniconda3\envs\ping\Lib\site-packages\doodleverse_utils\prediction_imports.py", line 32, in from tkinter import filedialog File "C:\Users\mjhaw\miniconda3\envs\ping\Lib\tkinter__init__.py", line 38, in import _tkinter # If this fails your Python may not be configured for Tk ^^^^^^^^^^^^^^^ ImportError: DLL load failed while importing _tkinter: The specified procedure could not be found.

(ping) PS C:\Users\mjhaw\PythonPackages\PINGMapper> conda list
# packages in environment at C:\Users\mjhaw\miniconda3\envs\ping:
#
# Name                    Version                   Build  Channel
absl-py                   2.0.0                    pypi_0    pypi
affine                    2.4.0              pyhd8ed1ab_0    conda-forge
aom                       3.6.1                h63175ca_0    conda-forge
astunparse                1.6.3                    pypi_0    pypi
attrs                     23.1.0             pyh71513ae_1    conda-forge
blosc                     1.21.5               hdccc3a2_0    conda-forge
branca                    0.6.0              pyhd8ed1ab_0    conda-forge
brotli                    1.1.0                hcfcfb64_1    conda-forge
brotli-bin                1.1.0                hcfcfb64_1    conda-forge
brotli-python             1.1.0           py311h12c1d0e_1    conda-forge
bzip2                     1.0.8                h8ffe710_4    conda-forge
c-ares                    1.20.1               hcfcfb64_1    conda-forge
c-blosc2                  2.10.5               h183a6f4_0    conda-forge
ca-certificates           2023.7.22            h56e8100_0    conda-forge
cached-property           1.5.2                hd8ed1ab_1    conda-forge
cached_property           1.5.2              pyha770c72_1    conda-forge
cachetools                5.3.2                    pypi_0    pypi
cairo                     1.18.0               h1fef639_0    conda-forge
certifi                   2023.7.22          pyhd8ed1ab_0    conda-forge
cfitsio                   4.3.0                h9b0cee5_0    conda-forge
charls                    2.4.2                h1537add_0    conda-forge
charset-normalizer        3.3.1              pyhd8ed1ab_0    conda-forge
click                     8.1.7           win_pyh7428d3b_0    conda-forge
click-plugins             1.1.1                      py_0    conda-forge
cligj                     0.7.2              pyhd8ed1ab_1    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
contourpy                 1.1.1           py311h005e61a_1    conda-forge
cycler                    0.12.1             pyhd8ed1ab_0    conda-forge
dav1d                     1.2.1                hcfcfb64_0    conda-forge
doodleverse-utils         0.0.35                   pypi_0    pypi
expat                     2.5.0                h63175ca_1    conda-forge
filelock                  3.13.1                   pypi_0    pypi
fiona                     1.9.5           py311h4e4dc46_0    conda-forge
flatbuffers               23.5.26                  pypi_0    pypi
folium                    0.14.0             pyhd8ed1ab_0    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 hab24e00_0    conda-forge
fontconfig                2.14.2               hbde0cde_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
fonttools                 4.43.1          py311ha68e1ae_0    conda-forge
freetype                  2.12.1               hdaf720e_2    conda-forge
freexl                    2.0.0                h8276f4a_0    conda-forge
fsspec                    2023.10.0                pypi_0    pypi
gast                      0.5.4                    pypi_0    pypi
gdal                      3.7.2           py311h9601e46_7    conda-forge
geopandas                 0.14.0             pyhd8ed1ab_1    conda-forge
geopandas-base            0.14.0             pyha770c72_1    conda-forge
geos                      3.12.0               h1537add_0    conda-forge
geotiff                   1.7.1               hcf4a93f_14    conda-forge
gettext                   0.21.1               h5728263_0    conda-forge
giflib                    5.2.1                h64bf75a_3    conda-forge
glib                      2.78.0               h12be248_0    conda-forge
glib-tools                2.78.0               h12be248_0    conda-forge
google-auth               2.23.4                   pypi_0    pypi
google-auth-oauthlib      1.0.0                    pypi_0    pypi
google-pasta              0.2.0                    pypi_0    pypi
grpcio                    1.59.2                   pypi_0    pypi
gst-plugins-base          1.22.6               h001b923_2    conda-forge
gstreamer                 1.22.6               hb4038d2_2    conda-forge
h5py                      3.10.0          nompi_py311h0d04526_100    conda-forge
hdf4                      4.2.15               h5557f11_7    conda-forge
hdf5                      1.14.2          nompi_h73e8ff5_100    conda-forge
huggingface-hub           0.17.3                   pypi_0    pypi
icu                       73.2                 h63175ca_0    conda-forge
idna                      3.4                pyhd8ed1ab_0    conda-forge
imagecodecs               2023.9.18       py311h7346e2b_2    conda-forge
imageio                   2.31.5             pyh8c1a49c_0    conda-forge
importlib-metadata        6.8.0              pyha770c72_0    conda-forge
intel-openmp              2023.2.0         h57928b3_50497    conda-forge
jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
joblib                    1.3.2              pyhd8ed1ab_0    conda-forge
jxrlib                    1.1                  h8ffe710_2    conda-forge
kealib                    1.5.2                ha10e780_1    conda-forge
keras                     2.14.0                   pypi_0    pypi
kiwisolver                1.4.5           py311h005e61a_1    conda-forge
krb5                      1.21.2               heb0366b_0    conda-forge
lazy_loader               0.3                pyhd8ed1ab_0    conda-forge
lcms2                     2.15                 h67d730c_3    conda-forge
lerc                      4.0.0                h63175ca_0    conda-forge
libabseil                 20230802.1      cxx17_h63175ca_0    conda-forge
libaec                    1.1.2                h63175ca_1    conda-forge
libarchive                3.7.2                h6f8411a_0    conda-forge
libavif                   1.0.1                hea6d26e_2    conda-forge
libblas                   3.9.0              19_win64_mkl    conda-forge
libboost-headers          1.82.0               h57928b3_6    conda-forge
libbrotlicommon           1.1.0                hcfcfb64_1    conda-forge
libbrotlidec              1.1.0                hcfcfb64_1    conda-forge
libbrotlienc              1.1.0                hcfcfb64_1    conda-forge
libcblas                  3.9.0              19_win64_mkl    conda-forge
libclang                  16.0.6                   pypi_0    pypi
libclang13                15.0.7          default_h77d9078_3    conda-forge
libcrc32c                 1.1.2                h0e60522_0    conda-forge
libcurl                   8.4.0                hd5e4a3a_0    conda-forge
libdeflate                1.19                 hcfcfb64_0    conda-forge
libexpat                  2.5.0                h63175ca_1    conda-forge
libffi                    3.4.2                h8ffe710_5    conda-forge
libgdal                   3.7.2                h3217549_7    conda-forge
libglib                   2.78.0               he8f3873_0    conda-forge
libgoogle-cloud           2.12.0               ha74b051_3    conda-forge
libgrpc                   1.58.2               h2a9c87f_0    conda-forge
libhwloc                  2.9.3           default_haede6df_1009    conda-forge
libiconv                  1.17                 h8ffe710_0    conda-forge
libjpeg-turbo             3.0.0                hcfcfb64_1    conda-forge
libkml                    1.3.0             haf3e7a6_1018    conda-forge
liblapack                 3.9.0              19_win64_mkl    conda-forge
libnetcdf                 4.9.2           nompi_h8284064_112    conda-forge
libogg                    1.3.4                h8ffe710_1    conda-forge
libpng                    1.6.39               h19919ed_0    conda-forge
libpq                     16.0                 h43585b0_1    conda-forge
libprotobuf               4.24.3               hb8276f3_1    conda-forge
libre2-11                 2023.06.02           h8c5ae5e_0    conda-forge
librttopo                 1.1.0               h92c5fdb_14    conda-forge
libspatialindex           1.9.3                h39d44d4_4    conda-forge
libspatialite             5.1.0                hbf340bc_0    conda-forge
libsqlite                 3.43.2               hcfcfb64_0    conda-forge
libssh2                   1.11.0               h7dfc565_0    conda-forge
libtiff                   4.6.0                h6e2ebb7_2    conda-forge
libvorbis                 1.3.7                h0e60522_0    conda-forge
libwebp-base              1.3.2                hcfcfb64_0    conda-forge
libxcb                    1.15                 hcd874cb_0    conda-forge
libxml2                   2.11.5               hc3477c8_1    conda-forge
libzip                    1.10.1               h1d365fa_3    conda-forge
libzlib                   1.2.13               hcfcfb64_5    conda-forge
libzopfli                 1.0.3                h0e60522_0    conda-forge
lz4-c                     1.9.4                hcfcfb64_0    conda-forge
lzo                       2.10              he774522_1000    conda-forge
m2w64-gcc-libgfortran     5.3.0                         6    conda-forge
m2w64-gcc-libs            5.3.0                         7    conda-forge
m2w64-gcc-libs-core       5.3.0                         7    conda-forge
m2w64-gmp                 6.1.0                         2    conda-forge
m2w64-libwinpthread-git   5.0.0.4634.697f757               2    conda-forge
mapclassify               2.6.1              pyhd8ed1ab_0    conda-forge
markdown                  3.5.1                    pypi_0    pypi
markupsafe                2.1.3           py311ha68e1ae_1    conda-forge
matplotlib                3.8.0           py311h1ea47a8_2    conda-forge
matplotlib-base           3.8.0           py311h6e989c2_2    conda-forge
minizip                   4.0.2                h5bed578_0    conda-forge
mkl                       2023.2.0         h6a75c08_50496    conda-forge
ml-dtypes                 0.2.0                    pypi_0    pypi
msys2-conda-epoch         20160418                      1    conda-forge
munch                     4.0.0              pyhd8ed1ab_0    conda-forge
munkres                   1.1.4              pyh9f0ad1d_0    conda-forge
networkx                  3.2.1              pyhd8ed1ab_0    conda-forge
numpy                     1.26.0          py311h0b4df5a_0    conda-forge
oauthlib                  3.2.2                    pypi_0    pypi
openjpeg                  2.5.0                h3d672ee_3    conda-forge
openssl                   3.1.4                hcfcfb64_0    conda-forge
opt-einsum                3.3.0                    pypi_0    pypi
packaging                 23.2               pyhd8ed1ab_0    conda-forge
pandas                    2.1.2           py311hf63dbb6_0    conda-forge
pcre2                     10.40                h17e33f8_0    conda-forge
pillow                    10.1.0          py311h4dd8a23_0    conda-forge
pip                       23.3.1             pyhd8ed1ab_0    conda-forge
pixman                    0.42.2               h63175ca_0    conda-forge
ply                       3.11                       py_1    conda-forge
poppler                   23.10.0              hc2f3c52_0    conda-forge
poppler-data              0.4.12               hd8ed1ab_0    conda-forge
postgresql                16.0                 hc80876b_1    conda-forge
proj                      9.3.0                he13c7e8_2    conda-forge
protobuf                  4.24.4                   pypi_0    pypi
psutil                    5.9.6                    pypi_0    pypi
pthread-stubs             0.4               hcd874cb_1001    conda-forge
pthreads-win32            2.9.1                hfa6e2cd_3    conda-forge
pyasn1                    0.5.0                    pypi_0    pypi
pyasn1-modules            0.3.0                    pypi_0    pypi
pyparsing                 3.1.1              pyhd8ed1ab_0    conda-forge
pyproj                    3.6.1           py311h517f58c_3    conda-forge
pyqt                      5.15.9          py311h125bc19_5    conda-forge
pyqt5-sip                 12.12.2         py311h12c1d0e_5    conda-forge
pysimplegui               4.60.5                   pypi_0    pypi
pysocks                   1.7.1              pyh0701188_6    conda-forge
python                    3.11.6          h2628c8c_0_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python-tzdata             2023.3             pyhd8ed1ab_0    conda-forge
python_abi                3.11                    4_cp311    conda-forge
pytz                      2023.3.post1       pyhd8ed1ab_0    conda-forge
pywavelets                1.4.1           py311h59ca53f_1    conda-forge
pyyaml                    6.0.1                    pypi_0    pypi
qt-main                   5.15.8              h9e85ed6_17    conda-forge
rasterio                  1.3.9           py311hd1b6236_0    conda-forge
rav1e                     0.6.6                h975169c_2    conda-forge
re2                       2023.06.02           hcbb65ff_0    conda-forge
regex                     2023.10.3                pypi_0    pypi
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
requests-oauthlib         1.3.1                    pypi_0    pypi
rsa                       4.9                      pypi_0    pypi
rtree                     1.1.0           py311hcacb13a_0    conda-forge
safetensors               0.4.0                    pypi_0    pypi
scikit-image              0.22.0          py311hf63dbb6_2    conda-forge
scikit-learn              1.3.2           py311h142b183_1    conda-forge
scipy                     1.11.3          py311h0b4df5a_1    conda-forge
setuptools                68.2.2             pyhd8ed1ab_0    conda-forge
shapely                   2.0.2           py311h72efec2_0    conda-forge
sip                       6.7.12          py311h12c1d0e_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
snappy                    1.1.10               hfb803bf_0    conda-forge
snuggs                    1.4.7                      py_0    conda-forge
sqlite                    3.43.2               hcfcfb64_0    conda-forge
svt-av1                   1.7.0                h63175ca_0    conda-forge
tbb                       2021.10.0            h91493d7_2    conda-forge
tensorboard               2.14.1                   pypi_0    pypi
tensorboard-data-server   0.7.2                    pypi_0    pypi
tensorflow                2.14.0                   pypi_0    pypi
tensorflow-estimator      2.14.0                   pypi_0    pypi
tensorflow-intel          2.14.0                   pypi_0    pypi
tensorflow-io-gcs-filesystem 0.31.0                   pypi_0    pypi
termcolor                 2.3.0                    pypi_0    pypi
threadpoolctl             3.2.0              pyha21a80b_0    conda-forge
tifffile                  2023.9.26          pyhd8ed1ab_0    conda-forge
tiledb                    2.16.3               hbf04793_3    conda-forge
tk                        8.6.13               hcfcfb64_0    conda-forge
tokenizers                0.14.1                   pypi_0    pypi
toml                      0.10.2             pyhd8ed1ab_0    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
tornado                   6.3.3           py311ha68e1ae_1    conda-forge
tqdm                      4.66.1                   pypi_0    pypi
transformers              4.34.1                   pypi_0    pypi
typing-extensions         4.8.0                    pypi_0    pypi
tzdata                    2023c                h71feb2d_0    conda-forge
ucrt                      10.0.22621.0         h57928b3_0    conda-forge
uriparser                 0.9.7                h1537add_1    conda-forge
urllib3                   2.0.7              pyhd8ed1ab_0    conda-forge
vc                        14.3                h64f974e_17    conda-forge
vc14_runtime              14.36.32532         hdcecf7f_17    conda-forge
versioneer                0.29                     pypi_0    pypi
vs2015_runtime            14.36.32532         h05e6639_17    conda-forge
werkzeug                  3.0.1                    pypi_0    pypi
wheel                     0.41.3             pyhd8ed1ab_0    conda-forge
win_inet_pton             1.1.0              pyhd8ed1ab_6    conda-forge
wrapt                     1.14.1                   pypi_0    pypi
xerces-c                  3.2.4                h63175ca_3    conda-forge
xorg-libxau               1.0.11               hcd874cb_0    conda-forge
xorg-libxdmcp             1.1.3                hcd874cb_0    conda-forge
xyzservices               2023.10.1          pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h8d14728_0    conda-forge
zfp                       1.0.0                h63175ca_4    conda-forge
zipp                      3.17.0             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               hcfcfb64_5    conda-forge
zlib-ng                   2.0.7                hcfcfb64_0    conda-forge
zstd                      1.5.5                h12be248_0    conda-forge
CameronBodine commented 10 months ago

Ok, we are making progress at least! Do you happen to have ArcGIS installed on your computer? Do you happen to have a Python27 folder at C:\Python27? It's possible your computer environments may be mixing up python installations, but I'm not sure. Also, are you running the test script from the Anaconda Powershell Prompt?

Regardless of answers to above, in the activated ping environment, can you try reinstalling tkinter with conda install tk then trying to run the test script again?

mjhawker commented 10 months ago

Yes! I run ArcGIS Pro all the time. I don't have a python27 file under C: or anywhere else I looked.

I installed tk and reran the test script. No joy.

Just for clarification, after I do an package install or run a git command, do I need to refresh the env?

(ping) PS C:\Users\mjhaw\PythonPackages\PINGMapper> python test_PINGMapper.py 1
Version:  2.14.0
Eager mode:  True
Traceback (most recent call last):
  File "C:\Users\mjhaw\PythonPackages\PINGMapper\test_PINGMapper.py", line 35, in <module>
    from main_readFiles import read_master_func
  File "C:\Users\mjhaw\PythonPackages\PINGMapper\src\main_readFiles.py", line 32, in <module>
    from class_portstarObj import portstarObj
  File "C:\Users\mjhaw\PythonPackages\PINGMapper\src\class_portstarObj.py", line 31, in <module>
    from funcs_model import *
  File "C:\Users\mjhaw\PythonPackages\PINGMapper\src\funcs_model.py", line 51, in <module>
    from doodleverse_utils.prediction_imports import *
  File "C:\Users\mjhaw\miniconda3\envs\ping\Lib\site-packages\doodleverse_utils\prediction_imports.py", line 32, in <module>
    from tkinter import filedialog
  File "C:\Users\mjhaw\miniconda3\envs\ping\Lib\tkinter\__init__.py", line 38, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
    ^^^^^^^^^^^^^^^
ImportError: DLL load failed while importing _tkinter: The specified procedure could not be found.
CameronBodine commented 10 months ago

Good to know. Do you happen to have a C:\Python3* folder? There shouldn't be an issue with Pro, but I suppose it's possible.

As long as you issue the conda install * and press enter (or hit y then enter) to accept the install, it should all work. I'll keep digging...

CameronBodine commented 10 months ago

Just for kicks, can you try installing tk from the anaconda channel with conda install -c anaconda tk?

mjhawker commented 10 months ago

Installed from the anaconda channel, no change was required. Same error. I don't see any Python folders except for C:\Program Files\ArcGIS\Pro\bin\Python

I also have QGIS installed.

CameronBodine commented 10 months ago

Can you share the console output from conda info -vv?

CameronBodine commented 10 months ago

Here is something else to try:

python.exe -m pip install tk-tools
mjhawker commented 10 months ago
(ping) PS C:\Users\mjhaw\PythonPackages\PINGMapper> conda info -vv

     active environment : ping
    active env location : C:\Users\mjhaw\miniconda3\envs\ping
            shell level : 2
       user config file : C:\Users\mjhaw\.condarc
 populated config files : C:\Users\mjhaw\.condarc
          conda version : 23.9.0
    conda-build version : not installed
         python version : 3.11.5.final.0
       virtual packages : __archspec=1=x86_64
                          __win=0=0
       base environment : C:\Users\mjhaw\miniconda3  (writable)
      conda av data dir : C:\Users\mjhaw\miniconda3\etc\conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\mjhaw\miniconda3\pkgs
                          C:\Users\mjhaw\.conda\pkgs
                          C:\Users\mjhaw\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\mjhaw\miniconda3\envs
                          C:\Users\mjhaw\.conda\envs
                          C:\Users\mjhaw\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/23.9.0 requests/2.31.0 CPython/3.11.5 Windows/10 Windows/10.0.22621 solver/libmamba conda-libmamba-solver/23.9.3 libmambapy/1.5.1
          administrator : False
             netrc file : None
           offline mode : False

# conda environments:
#
base                     C:\Users\mjhaw\miniconda3
ping                  *  C:\Users\mjhaw\miniconda3\envs\ping

sys.version: 3.11.5 | packaged by Anaconda, Inc. | (m...
sys.prefix: C:\Users\mjhaw\miniconda3
sys.executable: C:\Users\mjhaw\miniconda3\python.exe
conda location: C:\Users\mjhaw\miniconda3\Lib\site-packages\conda
conda-build: None
conda-content-trust: C:\Users\mjhaw\miniconda3\Scripts\conda-content-trust.exe
conda-env: C:\Users\mjhaw\miniconda3\Scripts\conda-env.exe
user site dirs:

CIO_TEST: <not set>
CONDA_DEFAULT_ENV: ping
CONDA_EXE: C:\Users\mjhaw\miniconda3\Scripts\conda.exe
CONDA_PREFIX: C:\Users\mjhaw\miniconda3\envs\ping
CONDA_PREFIX_1: C:\Users\mjhaw\miniconda3
CONDA_PROMPT_MODIFIER: (ping)
CONDA_PYTHON_EXE: C:\Users\mjhaw\miniconda3\python.exe
CONDA_ROOT: C:\Users\mjhaw\miniconda3
CONDA_SHLVL: 2
CURL_CA_BUNDLE: <not set>
GDAL_DRIVER_PATH: C:\Users\mjhaw\miniconda3\envs\ping\Library\lib\gdalplugins
HOMEPATH: \Users\mjhaw
LD_PRELOAD: <not set>
PATH: C:\Users\mjhaw\miniconda3\envs\ping;C:\Users\mjhaw\miniconda3\envs\ping\Library\mingw-w64\bin;C:\Users\mjhaw\miniconda3\envs\ping\Library\usr\bin;C:\Users\mjhaw\miniconda3\envs\ping\Library\bin;C:\Users\mjhaw\miniconda3\envs\ping\Scripts;C:\Users\mjhaw\miniconda3\envs\ping\bin;C:\Users\mjhaw\miniconda3\condabin;C:\Program Files\Microsoft MPI\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\GDAL;C:\Program Files\GDAL;C:\Program Files\TauDEM\TauDEM5Exe;C:\Program Files\dotnet;C:\Program Files (x86)\dotnet;C:\Users\mjhaw\AppData\Local\Microsoft\WindowsApps;C:\Users\mjhaw\.dotnet\tools
PSMODULEPATH: C:\Users\mjhaw\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
REQUESTS_CA_BUNDLE: <not set>
SSL_CERT_FILE: <not set>
CameronBodine commented 10 months ago

I tried a complete reinstall (see steps below) but I am unable to reproduce the error.

  1. Install Miniconda according to the install directions
  2. Update base conda
  3. Clean conda
  4. Upgrade pip
  5. Install libmamba and set as default solver
  6. Clone PINGMapper repo
  7. Install ping environment

Something else to try: I saw that issues with not locating DLL's might be fixed with installing Visual C++ Redistributable (see this for more information). I recommend downloading the redistributable for Visual Studio 2015, 2017, 2019, and 2022 linked here. I would install the X64 version. If this doesn't do it, I am really at a loss of any additional fixes. There is the option of trying to install tk-tools which I mentioned above.

mjhawker commented 10 months ago

I was able to get another, older pc today (Win 10 if that makes any difference). Similar software setup with GIS's.

It looks like your program worked as it should. The output folders are full.

Sorry for the goose chase, very frustrating I'm sure, but I learned a bunch along the way, anyway.

I'm really not sure what is going on with my other pc - it is my daily Dell XPS and no problems otherwise. There's obviously a ghost in there somewhere!

Thanks for taking more time than you needed to. I'll try to follow your progress and updates.

Looking forward to processing some data and using the output.

CameronBodine commented 10 months ago

Thanks for the update and glad you got it working on your other computer. Is your newer one running Windows 11? I haven't tested anything on that OS yet.

I'm really interested in making this work for folks beyond my own research, so that's why I spend the time. And I always learn something along the way.

I will go ahead and close as unresolved. Feel free to reopen if you find or try something else.

collinjroland commented 8 months ago

I am encountering the same tkinter issues on Windows 11. I'm still down the StackExchange rabbit hole on this, with no end in site. Thus far the best explanation I've found is this (https://stackoverflow.com/questions/76105218/why-does-tkinter-or-turtle-seem-to-be-missing-or-broken-shouldnt-it-be-part), I've attempted installs using Anaconda, miniconda, and miniforge, all with identical results. Running import tkinter tkinter._test() yields a popup window like it should.

I successfully installed and tested PINGMapper on a machine running macOS Sononma 14.2.1, but that is not a viable long-term solution for me.


(ping) C:\Users\colli\OneDrive\Documents\Software\PINGMapper>python test_PINGMapper.py 1
WARNING:tensorflow:From C:\Users\colli\miniforge3\envs\ping\Lib\site-packages\keras\src\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead.

Version:  2.15.0
Eager mode:  True
Traceback (most recent call last):
  File "C:\Users\colli\OneDrive\Documents\Software\PINGMapper\test_PINGMapper.py", line 35, in <module>
    from main_readFiles import read_master_func
  File "C:\Users\colli\OneDrive\Documents\Software\PINGMapper\src\main_readFiles.py", line 32, in <module>
    from class_portstarObj import portstarObj
  File "C:\Users\colli\OneDrive\Documents\Software\PINGMapper\src\class_portstarObj.py", line 31, in <module>
    from funcs_model import *
  File "C:\Users\colli\OneDrive\Documents\Software\PINGMapper\src\funcs_model.py", line 51, in <module>
    from doodleverse_utils.prediction_imports import *
  File "C:\Users\colli\miniforge3\envs\ping\Lib\site-packages\doodleverse_utils\prediction_imports.py", line 32, in <module>
    from tkinter import filedialog
  File "C:\Users\colli\miniforge3\envs\ping\Lib\tkinter\__init__.py", line 38, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
    ^^^^^^^^^^^^^^^
ImportError: DLL load failed while importing _tkinter: The specified procedure could not be found.
collinjroland commented 8 months ago

I am encountering the same tkinter issues on Windows 11. I'm still down the StackExchange rabbit hole on this, with no end in site. Thus far the best explanation I've found is this (https://stackoverflow.com/questions/76105218/why-does-tkinter-or-turtle-seem-to-be-missing-or-broken-shouldnt-it-be-part), I've attempted installs using Anaconda, miniconda, and miniforge, all with identical results. Running import tkinter tkinter._test() yields a popup window like it should.

I successfully installed and tested PINGMapper on a machine running macOS Sononma 14.2.1, but that is not a viable long-term solution for me.


(ping) C:\Users\colli\OneDrive\Documents\Software\PINGMapper>python test_PINGMapper.py 1
WARNING:tensorflow:From C:\Users\colli\miniforge3\envs\ping\Lib\site-packages\keras\src\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead.

Version:  2.15.0
Eager mode:  True
Traceback (most recent call last):
  File "C:\Users\colli\OneDrive\Documents\Software\PINGMapper\test_PINGMapper.py", line 35, in <module>
    from main_readFiles import read_master_func
  File "C:\Users\colli\OneDrive\Documents\Software\PINGMapper\src\main_readFiles.py", line 32, in <module>
    from class_portstarObj import portstarObj
  File "C:\Users\colli\OneDrive\Documents\Software\PINGMapper\src\class_portstarObj.py", line 31, in <module>
    from funcs_model import *
  File "C:\Users\colli\OneDrive\Documents\Software\PINGMapper\src\funcs_model.py", line 51, in <module>
    from doodleverse_utils.prediction_imports import *
  File "C:\Users\colli\miniforge3\envs\ping\Lib\site-packages\doodleverse_utils\prediction_imports.py", line 32, in <module>
    from tkinter import filedialog
  File "C:\Users\colli\miniforge3\envs\ping\Lib\tkinter\__init__.py", line 38, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
    ^^^^^^^^^^^^^^^
ImportError: DLL load failed while importing _tkinter: The specified procedure could not be found.

Update: I successfully installed and tested using WSL2 - Ubuntu; I cannot run gui_main.py, error message contained below. I should be able to use the script version though. Thanks for the great package Cameron!

python gui_main.py
Version:  2.15.0
Eager mode:  True
Traceback (most recent call last):
  File "/home/croland/PINGMapper/gui_main.py", line 92, in <module>
    event, values = window.read()
                    ^^^^^^^^^^^^^
  File "/home/croland/mambaforge/envs/ping/lib/python3.11/site-packages/PySimpleGUI/PySimpleGUI.py", line 10079, in read
    results = self._read(timeout=timeout, timeout_key=timeout_key)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/croland/mambaforge/envs/ping/lib/python3.11/site-packages/PySimpleGUI/PySimpleGUI.py", line 10150, in _read
    self._Show()
  File "/home/croland/mambaforge/envs/ping/lib/python3.11/site-packages/PySimpleGUI/PySimpleGUI.py", line 9890, in _Show
    StartupTK(self)
  File "/home/croland/mambaforge/envs/ping/lib/python3.11/site-packages/PySimpleGUI/PySimpleGUI.py", line 16821, in StartupTK
    _get_hidden_master_root()
  File "/home/croland/mambaforge/envs/ping/lib/python3.11/site-packages/PySimpleGUI/PySimpleGUI.py", line 16708, in _get_hidden_master_root
    Window.hidden_master_root = tk.Tk()
                                ^^^^^^^
  File "/home/croland/mambaforge/envs/ping/lib/python3.11/tkinter/__init__.py", line 2326, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: no display name and no $DISPLAY environment variable
CameronBodine commented 8 months ago

Thanks for report Collin. This is a strange one. I wonder if you can try something for me? With ping environment activated, run the following two commands:

conda remove -n ping tkinter

then reinstall

conda install tkinter
collinjroland commented 8 months ago

Indeed! I have the package tkinstalled. When I runconda install tkinter I get a PackagesNotFoundError.

conda install tkinter
Channels:
 - defaults
 - conda-forge
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - tkinter

Current channels:

  - defaults
  - https://conda.anaconda.org/conda-forge

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
CameronBodine commented 8 months ago

Whoops! How about this:

conda install conda-forge::tk

collinjroland commented 8 months ago

It seems like the tk package cannot be removed, I assume because it is part of the base distribution.

mamba remove -n ping tk

                  __    __    __    __
                 /  \  /  \  /  \  /  \
                /    \/    \/    \/    \
███████████████/  /██/  /██/  /██/  /████████████████████████
              /  / \   / \   / \   / \  \____
             /  /   \_/   \_/   \_/   \    o \__,
            / _/                       \_____/  `
            |/
        ███╗   ███╗ █████╗ ███╗   ███╗██████╗  █████╗
        ████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗
        ██╔████╔██║███████║██╔████╔██║██████╔╝███████║
        ██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║
        ██║ ╚═╝ ██║██║  ██║██║ ╚═╝ ██║██████╔╝██║  ██║
        ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝╚═════╝ ╚═╝  ╚═╝

        mamba (1.4.2) supported by @QuantStack

        GitHub:  https://github.com/mamba-org/mamba
        Twitter: https://twitter.com/QuantStack

█████████████████████████████████████████████████████████████

Removing specs: ['tk']
Transaction

  Prefix: C:\Users\colli\miniforge3\envs\ping

  Removing specs:

   - tk

  Package                                 Version  Build                    Channel         Size
--------------------------------------------------------------------------------------------------
  Remove:
--------------------------------------------------------------------------------------------------

  - __win                                       0  0                        installed
  - affine                                  2.4.0  pyhd8ed1ab_0             conda-forge
  - aom                                     3.7.1  h63175ca_0               conda-forge
  - asttokens                               2.4.1  pyhd8ed1ab_0             conda-forge
  - attrs                                  23.2.0  pyh71513ae_0             conda-forge
  - azure-core-cpp                         1.10.3  h249a519_0               conda-forge
  - azure-storage-blobs-cpp               12.10.0  h91493d7_0               conda-forge
  - azure-storage-common-cpp               12.5.0  h91493d7_2               conda-forge
  - blosc                                  1.21.5  hdccc3a2_0               conda-forge
  - branca                                  0.7.0  pyhd8ed1ab_1             conda-forge
  - brotli                                  1.1.0  hcfcfb64_1               conda-forge
  - brotli-bin                              1.1.0  hcfcfb64_1               conda-forge
  - brotli-python                           1.1.0  py311h12c1d0e_1          conda-forge
  - bzip2                                   1.0.8  hcfcfb64_5               conda-forge
  - c-ares                                 1.24.0  hcfcfb64_0               conda-forge
  - c-blosc2                               2.12.0  h183a6f4_0               conda-forge
  - cached-property                         1.5.2  hd8ed1ab_1               conda-forge
  - cached_property                         1.5.2  pyha770c72_1             conda-forge
  - cairo                                  1.18.0  h1fef639_0               conda-forge
  - certifi                            2023.11.17  py311haa95532_0          pkgs/main
  - cfitsio                                 4.3.1  h9b0cee5_0               conda-forge
  - charls                                  2.4.2  h1537add_0               conda-forge
  - charset-normalizer                      3.3.2  pyhd8ed1ab_0             conda-forge
  - click                                   8.1.7  win_pyh7428d3b_0         conda-forge
  - click-plugins                           1.1.1  py_0                     conda-forge
  - cligj                                   0.7.2  pyhd8ed1ab_1             conda-forge
  - cloudpickle                             3.0.0  pyhd8ed1ab_0             conda-forge
  - colorama                                0.4.6  pyhd8ed1ab_0             conda-forge
  - comm                                    0.2.1  pyhd8ed1ab_0             conda-forge
  - contourpy                               1.2.0  py311h005e61a_0          conda-forge
  - cycler                                 0.12.1  pyhd8ed1ab_0             conda-forge
  - dav1d                                   1.2.1  hcfcfb64_0               conda-forge
  - debugpy                                 1.8.0  py311h12c1d0e_1          conda-forge
  - decorator                               5.1.1  pyhd8ed1ab_0             conda-forge
  - exceptiongroup                          1.2.0  pyhd8ed1ab_0             conda-forge
  - executing                               2.0.1  pyhd8ed1ab_0             conda-forge
  - expat                                   2.5.0  h63175ca_1               conda-forge
  - fiona                                   1.9.5  py311hbcf8545_3          conda-forge
  - folium                                 0.15.1  pyhd8ed1ab_0             conda-forge
  - font-ttf-dejavu-sans-mono                2.37  hab24e00_0               conda-forge
  - font-ttf-inconsolata                    3.000  h77eed37_0               conda-forge
  - font-ttf-source-code-pro                2.038  h77eed37_0               conda-forge
  - font-ttf-ubuntu                          0.83  h77eed37_1               conda-forge
  - fontconfig                             2.14.2  hbde0cde_0               conda-forge
  - fonts-conda-ecosystem                       1  0                        conda-forge
  - fonts-conda-forge                           1  0                        conda-forge
  - fonttools                              4.47.0  py311ha68e1ae_0          conda-forge
  - freetype                               2.12.1  hdaf720e_2               conda-forge
  - freexl                                  2.0.0  h8276f4a_0               conda-forge
  - gdal                                    3.8.2  py311hff9a05f_1          conda-forge
  - geopandas                              0.14.2  pyhd8ed1ab_0             conda-forge
  - geopandas-base                         0.14.2  pyha770c72_0             conda-forge
  - geos                                   3.12.1  h1537add_0               conda-forge
  - geotiff                                 1.7.1  hbf5ca3a_15              conda-forge
  - gettext                                0.21.1  h5728263_0               conda-forge
  - giflib                                  5.2.1  h64bf75a_3               conda-forge
  - glib                                   2.78.3  h12be248_0               conda-forge
  - glib-tools                             2.78.3  h12be248_0               conda-forge
  - gst-plugins-base                       1.22.8  h001b923_0               conda-forge
  - gstreamer                              1.22.8  hb4038d2_0               conda-forge
  - h5py                                   3.10.0  nompi_py311h7195302_101  conda-forge
  - hdf4                                   4.2.15  h5557f11_7               conda-forge
  - hdf5                                   1.14.3  nompi_h73e8ff5_100       conda-forge
  - icu                                      73.2  h63175ca_0               conda-forge
  - idna                                      3.6  pyhd8ed1ab_0             conda-forge
  - imagecodecs                          2024.1.1  py311h7346e2b_0          conda-forge
  - imageio                                2.33.1  pyh8c1a49c_0             conda-forge
  - importlib-metadata                      7.0.1  pyha770c72_0             conda-forge
  - importlib_metadata                      7.0.1  hd8ed1ab_0               conda-forge
  - intel-openmp                         2023.2.0  h57928b3_50497           conda-forge
  - ipykernel                              6.28.0  pyha63f2e9_0             conda-forge
  - ipython                                8.19.0  pyh7428d3b_0             conda-forge
  - jedi                                   0.19.1  pyhd8ed1ab_0             conda-forge
  - jinja2                                  3.1.2  pyhd8ed1ab_1             conda-forge
  - joblib                                  1.3.2  pyhd8ed1ab_0             conda-forge
  - jupyter_client                          8.6.0  pyhd8ed1ab_0             conda-forge
  - jupyter_core                            5.7.0  py311h1ea47a8_0          conda-forge
  - jxrlib                                    1.1  hcfcfb64_3               conda-forge
  - kealib                                  1.5.3  hd248416_0               conda-forge
  - kiwisolver                              1.4.5  py311h005e61a_1          conda-forge
  - krb5                                   1.21.2  heb0366b_0               conda-forge
  - lazy_loader                               0.3  pyhd8ed1ab_0             conda-forge
  - lcms2                                    2.16  h67d730c_0               conda-forge
  - lerc                                    4.0.0  h63175ca_0               conda-forge
  - libabseil                          20230802.1  cxx17_h63175ca_0         conda-forge
  - libaec                                  1.1.2  h63175ca_1               conda-forge
  - libarchive                              3.7.2  h313118b_1               conda-forge
  - libavif                                 1.0.1  h7a9aacb_3               conda-forge
  - libblas                                 3.9.0  20_win64_mkl             conda-forge
  - libboost-headers                       1.84.0  h57928b3_0               conda-forge
  - libbrotlicommon                         1.1.0  hcfcfb64_1               conda-forge
  - libbrotlidec                            1.1.0  hcfcfb64_1               conda-forge
  - libbrotlienc                            1.1.0  hcfcfb64_1               conda-forge
  - libcblas                                3.9.0  20_win64_mkl             conda-forge
  - libclang                               15.0.7  default_hde6756a_4       conda-forge
  - libclang13                             15.0.7  default_h85b4d89_4       conda-forge
  - libcrc32c                               1.1.2  h0e60522_0               conda-forge
  - libcurl                                 8.5.0  hd5e4a3a_0               conda-forge
  - libdeflate                               1.19  hcfcfb64_0               conda-forge
  - libexpat                                2.5.0  h63175ca_1               conda-forge
  - libffi                                  3.4.2  h8ffe710_5               conda-forge
  - libgdal                                 3.8.2  h576f4c1_1               conda-forge
  - libglib                                2.78.3  h16e383f_0               conda-forge
  - libgoogle-cloud                        2.12.0  h39f2fc6_4               conda-forge
  - libgrpc                                1.59.3  h5bbd4a7_0               conda-forge
  - libiconv                                 1.17  hcfcfb64_2               conda-forge
  - libjpeg-turbo                           3.0.0  hcfcfb64_1               conda-forge
  - libkml                                  1.3.0  haf3e7a6_1018            conda-forge
  - liblapack                               3.9.0  20_win64_mkl             conda-forge
  - libnetcdf                               4.9.2  nompi_h07c049d_113       conda-forge
  - libogg                                  1.3.4  h8ffe710_1               conda-forge
  - libpng                                 1.6.39  h19919ed_0               conda-forge
  - libpq                                    16.1  hdb24f17_7               conda-forge
  - libprotobuf                            4.24.4  hb8276f3_0               conda-forge
  - libre2-11                          2023.06.02  h8c5ae5e_0               conda-forge
  - librttopo                               1.1.0  h94c4f80_15              conda-forge
  - libsodium                              1.0.18  h8d14728_1               conda-forge
  - libspatialindex                         1.9.3  h39d44d4_4               conda-forge
  - libspatialite                           5.1.0  hf2f0abc_4               conda-forge
  - libsqlite                              3.44.2  hcfcfb64_0               conda-forge
  - libssh2                                1.11.0  h7dfc565_0               conda-forge
  - libtiff                                 4.6.0  h6e2ebb7_2               conda-forge
  - libvorbis                               1.3.7  h0e60522_0               conda-forge
  - libwebp-base                            1.3.2  hcfcfb64_0               conda-forge
  - libxcb                                   1.15  hcd874cb_0               conda-forge
  - libxml2                                2.12.3  hc3477c8_0               conda-forge
  - libzip                                 1.10.1  h1d365fa_3               conda-forge
  - libzlib                                1.2.13  hcfcfb64_5               conda-forge
  - libzopfli                               1.0.3  h0e60522_0               conda-forge
  - lz4-c                                   1.9.4  hcfcfb64_0               conda-forge
  - lzo                                      2.10  he774522_1000            conda-forge
  - m2w64-gcc-libgfortran                   5.3.0  6                        conda-forge
  - m2w64-gcc-libs                          5.3.0  7                        conda-forge
  - m2w64-gcc-libs-core                     5.3.0  7                        conda-forge
  - m2w64-gmp                               6.1.0  2                        conda-forge
  - m2w64-libwinpthread-git    5.0.0.4634.697f757  2                        conda-forge
  - mapclassify                             2.6.1  pyhd8ed1ab_0             conda-forge
  - markupsafe                              2.1.3  py311ha68e1ae_1          conda-forge
  - matplotlib                              3.8.2  py311h1ea47a8_0          conda-forge
  - matplotlib-base                         3.8.2  py311h6e989c2_0          conda-forge
  - matplotlib-inline                       0.1.6  pyhd8ed1ab_0             conda-forge
  - minizip                                 4.0.4  h5bed578_0               conda-forge
  - mkl                                  2023.2.0  h6a75c08_50497           conda-forge
  - msys2-conda-epoch                    20160418  1                        conda-forge
  - munkres                                 1.1.4  pyh9f0ad1d_0             conda-forge
  - nest-asyncio                            1.5.8  pyhd8ed1ab_0             conda-forge
  - networkx                                3.2.1  pyhd8ed1ab_0             conda-forge
  - numpy                                  1.26.3  py311h0b4df5a_0          conda-forge
  - openjpeg                                2.5.0  h3d672ee_3               conda-forge
  - packaging                                23.2  pyhd8ed1ab_0             conda-forge
  - pandas                                  2.1.4  py311hf63dbb6_0          conda-forge
  - parso                                   0.8.3  pyhd8ed1ab_0             conda-forge
  - pcre2                                   10.42  h17e33f8_0               conda-forge
  - pickleshare                             0.7.5  py_1003                  conda-forge
  - pillow                                 10.2.0  py311h4dd8a23_0          conda-forge
  - pip                                    23.3.2  pyhd8ed1ab_0             conda-forge
  - pixman                                 0.42.2  h63175ca_0               conda-forge
  - platformdirs                            4.1.0  pyhd8ed1ab_0             conda-forge
  - ply                                      3.11  py_1                     conda-forge
  - poppler                               23.12.0  hc2f3c52_0               conda-forge
  - poppler-data                           0.4.12  hd8ed1ab_0               conda-forge
  - postgresql                               16.1  h1beaf6b_7               conda-forge
  - proj                                    9.3.1  he13c7e8_0               conda-forge
  - prompt-toolkit                         3.0.42  pyha770c72_0             conda-forge
  - psutil                                  5.9.7  py311ha68e1ae_0          conda-forge
  - pthread-stubs                             0.4  hcd874cb_1001            conda-forge
  - pure_eval                               0.2.2  pyhd8ed1ab_0             conda-forge
  - pygments                               2.17.2  pyhd8ed1ab_0             conda-forge
  - pyparsing                               3.1.1  pyhd8ed1ab_0             conda-forge
  - pyproj                                  3.6.1  py311h82130bc_5          conda-forge
  - pyqt                                   5.15.9  py311h125bc19_5          conda-forge
  - pyqt5-sip                             12.12.2  py311h12c1d0e_5          conda-forge
  - pysocks                                 1.7.1  pyh0701188_6             conda-forge
  - python                                 3.11.7  h2628c8c_1_cpython       conda-forge
  - python-dateutil                         2.8.2  pyhd8ed1ab_0             conda-forge
  - python-tzdata                          2023.4  pyhd8ed1ab_0             conda-forge
  - python_abi                               3.11  4_cp311                  conda-forge
  - pytz                             2023.3.post1  pyhd8ed1ab_0             conda-forge
  - pywavelets                              1.4.1  py311h59ca53f_1          conda-forge
  - pywin32                                   306  py311h12c1d0e_2          conda-forge
  - pyzmq                                  25.1.2  py311h9250fbb_0          conda-forge
  - qt-main                                5.15.8  h9e85ed6_18              conda-forge
  - rasterio                                1.3.9  py311h02f6225_2          conda-forge
  - rav1e                                   0.6.6  h975169c_2               conda-forge
  - re2                                2023.06.02  hcbb65ff_0               conda-forge
  - requests                               2.31.0  pyhd8ed1ab_0             conda-forge
  - rtree                                   1.1.0  py311hcacb13a_0          conda-forge
  - scikit-image                           0.22.0  py311hf63dbb6_2          conda-forge
  - scikit-learn                            1.3.2  py311h142b183_2          conda-forge
  - scipy                                  1.11.4  py311h0b4df5a_0          conda-forge
  - setuptools                             69.0.3  pyhd8ed1ab_0             conda-forge
  - shapely                                 2.0.2  py311h16bee0b_1          conda-forge
  - sip                                    6.7.12  py311h12c1d0e_0          conda-forge
  - six                                    1.16.0  pyh6c4a22f_0             conda-forge
  - snappy                                 1.1.10  hfb803bf_0               conda-forge
  - snuggs                                  1.4.7  py_0                     conda-forge
  - spyder-kernels                          2.4.4  py311haa95532_0          pkgs/main
  - sqlite                                 3.44.2  hcfcfb64_0               conda-forge
  - stack_data                              0.6.2  pyhd8ed1ab_0             conda-forge
  - svt-av1                                 1.7.0  h63175ca_0               conda-forge
  - tbb                                  2021.7.0  h91493d7_0               conda-forge
  - threadpoolctl                           3.2.0  pyha21a80b_0             conda-forge
  - tifffile                            2023.12.9  pyhd8ed1ab_0             conda-forge
  - tiledb                                 2.19.0  h8e52ccb_0               conda-forge
  - tk                                     8.6.13  h5226925_1               conda-forge
  - toml                                   0.10.2  pyhd8ed1ab_0             conda-forge
  - tomli                                   2.0.1  pyhd8ed1ab_0             conda-forge
  - tornado                                 6.3.3  py311ha68e1ae_1          conda-forge
  - traitlets                              5.14.1  pyhd8ed1ab_0             conda-forge
  - typing_extensions                       4.9.0  pyha770c72_0             conda-forge
  - tzdata                                  2023d  h0c530f3_0               conda-forge
  - uriparser                               0.9.7  h1537add_1               conda-forge
  - urllib3                                 2.1.0  pyhd8ed1ab_0             conda-forge
  - vs2015_runtime                    14.38.33130  hcb4865c_18              conda-forge
  - wcwidth                                0.2.12  pyhd8ed1ab_0             conda-forge
  - wheel                                  0.42.0  pyhd8ed1ab_0             conda-forge
  - win_inet_pton                           1.1.0  pyhd8ed1ab_6             conda-forge
  - xerces-c                                3.2.5  h63175ca_0               conda-forge
  - xorg-libxau                            1.0.11  hcd874cb_0               conda-forge
  - xorg-libxdmcp                           1.1.3  hcd874cb_0               conda-forge
  - xyzservices                         2023.10.1  pyhd8ed1ab_0             conda-forge
  - xz                                      5.2.6  h8d14728_0               conda-forge
  - zeromq                                  4.3.5  h63175ca_0               conda-forge
  - zfp                                     1.0.1  h63175ca_0               conda-forge
  - zipp                                   3.17.0  pyhd8ed1ab_0             conda-forge
  - zlib                                   1.2.13  hcfcfb64_5               conda-forge
  - zlib-ng                                 2.0.7  hcfcfb64_0               conda-forge
  - zstd                                    1.5.5  h12be248_0               conda-forge

  Summary:

  Remove: 228 packages

  Total download: 0 B

--------------------------------------------------------------------------------------------------

Confirm changes: [Y/n] Y
PackageRecord(_hash=7683815243815201975, name='__win', version='0', build='0', build_number=0, channel=Channel("@"), su)
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "C:\Users\colli\miniforge3\lib\site-packages\conda\_vendor\boltons\setutils.py", line 247, in remove
        didx = self.item_index_map.pop(item)
    KeyError: PackageRecord(_hash=7683815243815201975, name='__win', version='0', build='0', build_number=0, channel=Ch)
    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "C:\Users\colli\miniforge3\lib\site-packages\conda\exceptions.py", line 1132, in __call__
        return func(*args, **kwargs)
      File "C:\Users\colli\miniforge3\lib\site-packages\mamba\mamba.py", line 941, in exception_converter
        raise e
      File "C:\Users\colli\miniforge3\lib\site-packages\mamba\mamba.py", line 934, in exception_converter
        exit_code = _wrapped_main(*args, **kwargs)
      File "C:\Users\colli\miniforge3\lib\site-packages\mamba\mamba.py", line 892, in _wrapped_main
        result = do_call(parsed_args, p)
      File "C:\Users\colli\miniforge3\lib\site-packages\mamba\mamba.py", line 756, in do_call
        exit_code = remove(args, parser)
      File "C:\Users\colli\miniforge3\lib\site-packages\mamba\mamba.py", line 240, in remove
        conda_transaction = to_txn(
      File "C:\Users\colli\miniforge3\lib\site-packages\mamba\utils.py", line 447, in to_txn
        final_precs = compute_final_precs(
      File "C:\Users\colli\miniforge3\lib\site-packages\mamba\utils.py", line 373, in compute_final_precs
        final_precs.remove(i_rec)
      File "C:\Users\colli\miniforge3\lib\site-packages\conda\_vendor\boltons\setutils.py", line 249, in remove
        raise KeyError(item)
    KeyError: PackageRecord(_hash=7683815243815201975, name='__win', version='0', build='0', build_number=0, channel=Ch)
`$ C:\Users\colli\miniforge3\Scripts\mamba remove -n ping tk`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=ping
                CONDA_EXE=C:\Users\colli\miniforge3\condabin\..\Scripts\conda.exe
               CONDA_EXES="C:\Users\colli\miniforge3\condabin\..\Scripts\conda.exe"
             CONDA_PREFIX=C:\Users\colli\miniforge3\envs\ping
           CONDA_PREFIX_1=C:\Users\colli\miniforge3
           CONDA_PREFIX_2=C:\Users\colli\miniforge3\envs\ping
           CONDA_PREFIX_3=C:\Users\colli\miniforge3
    CONDA_PROMPT_MODIFIER=(ping)
         CONDA_PYTHON_EXE=C:\Users\colli\miniforge3\python.exe
               CONDA_ROOT=C:\Users\colli\miniforge3
              CONDA_SHLVL=4
           CURL_CA_BUNDLE=<not set>
         GDAL_DRIVER_PATH=C:\Users\colli\miniforge3\envs\ping\Library\lib\gdalplugins
                   GOPATH=C:\Users\colli\go
                 HOMEPATH=\Users\colli
               LD_PRELOAD=<not set>
                     PATH=C:\Users\colli\miniforge3\envs\ping;C:\Users\colli\miniforge3\envs\pin
                          g\Library\mingw-
                          w64\bin;C:\Users\colli\miniforge3\envs\ping\Library\usr\bin;C:\Users\c
                          olli\miniforge3\envs\ping\Library\bin;C:\Users\colli\miniforge3\envs\p
                          ing\Scripts;C:\Users\colli\miniforge3\envs\ping\bin;C:\Users\colli\min
                          iforge3\condabin;C:\Program Files\Microsoft MPI\Bin;C:\Program Files
                          (x86)\Common Files\Intel\Shared
                          Libraries\intel64\libfabric\bin;C:\Program Files (x86)\Common
                          Files\Intel\Shared Libraries\intel64\libfabric\bin\utils;C:\Program
                          Files (x86)\Common Files\Intel\Shared Libraries\intel64\bin;C:\Program
                          Files (x86)\Common Files\Intel\Shared Libraries\ia32;C:\Program Files
                          (x86)\Common Files\Intel\Shared Libraries\intel64;C:\Program Files
                          (x86)\Common Files\Intel\Shared Libraries;C:\Program Files
                          (x86)\Intel\oneAPI\tbb\latest\redist\intel64\vc_mt;C:\Program Files
                          (x86)\Intel\oneAPI\tbb\latest\redist\ia32\vc_mt;C:\Program Files (x86)
                          \Intel\oneAPI\compiler\latest\windows\redist\intel64_win\compiler;C:\P
                          rogram Files (x86)\Intel\oneAPI\compiler\latest\windows\redist\ia32_wi
                          n\compiler;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\
                          WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:
                          \Program Files\MATLAB\MATLAB Runtime\R2022b\runtime\win64;C:\Program
                          Files\MATLAB\R2021a\bin;C:\Program Files\Git\cmd;C:\Program
                          Files\dotnet;C:\Program Files\Docker\Docker\resources\bin;C:\Strawberr
                          y\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Go\bin;C
                          :\Program Files\TortoiseSVN\bin;C:\Program
                          Files\CMake\bin;C:\ProgramData\chocolatey\bin;C:\GDAL;C:\Program
                          Files\GDAL;C:\Program Files\TauDEM\TauDEM5Exe;C:\Program
                          Files\MATLAB\MATLAB Compiler Runtime\v82\runtime\win64;C:\Users\colli\
                          OneDrive\Documents\LAStools\LAStools\bin;C:\Program
                          Files\MATLAB\MATLAB Runtime\R2019a\v96\runtime\win64;C:\Users\colli\mi
                          niforge3;C:\Users\colli\miniforge3\Library\mingw-
                          w64\bin;C:\Users\colli\miniforge3\Library\usr\bin;C:\Users\colli\minif
                          orge3\Library\bin;C:\Users\colli\miniforge3\Scripts;C:\Users\colli\App
                          Data\Local\Microsoft\WindowsApps;C:\Users\colli\AppData\Local\Programs
                          \Microsoft VS Code\bin;C:\Program Files
                          (x86)\GnuWin32\bin;C:\Users\colli\go\bin;C:\Program Files\swan\bin
             PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows
                          PowerShell\v1.0\Modules
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : ping
    active env location : C:\Users\colli\miniforge3\envs\ping
            shell level : 4
       user config file : C:\Users\colli\.condarc
 populated config files : C:\Users\colli\miniforge3\.condarc
                          C:\Users\colli\.condarc
          conda version : 23.3.1
    conda-build version : not installed
         python version : 3.10.12.final.0
       virtual packages : __archspec=1=x86_64
                          __cuda=12.0=0
                          __win=0=0
       base environment : C:\Users\colli\miniforge3  (writable)
      conda av data dir : C:\Users\colli\miniforge3\etc\conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
                          https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : C:\Users\colli\miniforge3\pkgs
                          C:\Users\colli\.conda\pkgs
                          C:\Users\colli\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\colli\miniforge3\envs
                          C:\Users\colli\.conda\envs
                          C:\Users\colli\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/23.3.1 requests/2.31.0 CPython/3.10.12 Windows/10 Windows/10.0.22621 solver/libmamba co2          administrator : False
             netrc file : C:\Users\colli/.netrc
           offline mode : False

An unexpected error has occurred. Conda has prepared the above report.
CameronBodine commented 8 months ago

Shoot. I wondered if that might be the case. I did find this explanation describing why tkinter may not work. I have also wondered if having ArcGIS installed might mess things up, but that's just a hunch. Any chance you have ArcGIS on your machine?

I know you are up and running with WSL2, but if you are will to keep playing, I was wondering if you could try something else for me. Can you try following the update installation to see if that might fix the issue?

collinjroland commented 8 months ago

I attempted the update installation instructions but am still receiving the tkinter error. This PC does have ArcGIS installed. I will attempt it on a PC without ArcGIS installed later today.

****Update

I completed the update installation instructions on a Windows 11 PC without ArcGIS installed (no Python 2.7 to my knowledge) but the tkinter error persists.

CameronBodine commented 7 months ago

Sorry to not get back to you sooner. I was wondering if you are behind a government firewall? This may be causing the issue. If possible, are you able to install, both miniconda and PINGMapper, on another network?

collinjroland commented 7 months ago

Hey Cameron, no worries. I've been trying this on a PC that is not the government network as well as a government PC. Maybe this is a Windows 11 issue based on the above dialogue with mjhawker, or are you aware of users successfully installing on Windows 11 machines? Thanks for doing your best to troubleshoot.

CameronBodine commented 7 months ago

I thought for sure it would be a network or government pc issue. Bummer. I have successfully installed and run on a Windows 11 pc with miniconda. The computer was fresh out of the box though. Any chance your computers were updated from Windows 10 to 11? I have had unrelated issues making those types of upgrades...

I suppose as long as you are able to run on WSL2, then you are good to go. And I can recommend this workaround for others experiencing similar issues.

If, and only if, you are still interested in trying to get it to run in native windows, you could try lowering the python version in the PIMGMapper/conda/PINGMapper.yml file. For example, python==3.10.* instead of python==3.11.*. Then reinstall the environment. I will keep looking around to see if there might be other solutions.

collinjroland commented 7 months ago

I reinstalled with python=3.10.* but the tkinter error persists. This machine was updated from Windows 10 to 11.

WSL2 it is! Thanks Cameron. I'm going to start looking into training a new model, might reach out to you in the future.

CameronBodine commented 7 months ago

@collinjroland keep me posted on the model training. If you are interested, it would be neat to make it available in a future version of PINGMapper! Definitely reach out as you move forward.