conda-forge / mapboxgl-feedstock

A conda-smithy repository for mapboxgl.
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

ValueError: The 'mapboxgl' package was not installed in a way that PackageLoader understands. #2

Open kinow opened 2 years ago

kinow commented 2 years ago

Issue:

Hi, I am using tmapboxgl from Conda Forge, but it's failing with the traceback in the issue title. I tried conda build from master branch, but the build failed during the test step, with the exact same issue.

I looked at the site-packages/mapboxgl directory in my Conda environment, and there is no templates directory. Not sure if that's the only issue, or if there is another problem. I found this Jinja issue that sounds similar too. Thanks!


Environment (conda list):

``` $ conda list # packages in environment at /home/kinow/Development/python/miniconda3: # # Name Version Build Channel _libgcc_mutex 0.1 main defaults _openmp_mutex 4.5 1_gnu defaults beautifulsoup4 4.10.0 pyha770c72_0 conda-forge brotlipy 0.7.0 py39h27cfd23_1003 defaults bzip2 1.0.8 h7f98852_4 conda-forge ca-certificates 2021.10.8 ha878542_0 conda-forge certifi 2021.10.8 py39hf3d152e_1 conda-forge cffi 1.14.6 py39h400218f_0 defaults chardet 4.0.0 py39h06a4308_1003 defaults conda 4.10.3 py39h06a4308_0 defaults conda-build 3.21.7 py39hf3d152e_0 conda-forge conda-package-handling 1.7.3 py39h27cfd23_1 defaults cryptography 3.4.7 py39hd23ed53_0 defaults filelock 3.4.2 pyhd8ed1ab_1 conda-forge glob2 0.7 py_0 conda-forge icu 67.1 he1b5a44_0 conda-forge idna 2.10 pyhd3eb1b0_0 defaults jinja2 3.0.3 pyhd8ed1ab_0 conda-forge ld_impl_linux-64 2.35.1 h7274673_9 defaults libarchive 3.4.2 h62408e4_0 defaults libffi 3.3 he6710b0_2 defaults libgcc-ng 9.3.0 h5101ec6_17 defaults libgomp 9.3.0 h5101ec6_17 defaults libiconv 1.16 h516909a_0 conda-forge liblief 0.11.5 h9c3ff4c_0 conda-forge libstdcxx-ng 9.3.0 hd4cf53a_17 defaults libxml2 2.9.10 h68273f3_2 conda-forge lz4-c 1.9.3 h9c3ff4c_1 conda-forge markupsafe 2.0.1 py39h3811e60_0 conda-forge ncurses 6.2 he6710b0_1 defaults openssl 1.1.1l h7f8727e_0 defaults patchelf 0.14.3 h58526e2_0 conda-forge pip 21.1.3 py39h06a4308_0 defaults pkginfo 1.8.2 pyhd8ed1ab_0 conda-forge psutil 5.8.0 py39h27cfd23_1 defaults py-lief 0.11.5 py39he80948d_0 conda-forge pycosat 0.6.3 py39h27cfd23_0 defaults pycparser 2.20 py_2 defaults pyopenssl 20.0.1 pyhd3eb1b0_1 defaults pysocks 1.7.1 py39h06a4308_0 defaults python 3.9.5 h12debd9_4 defaults python-libarchive-c 3.2 py39hf3d152e_0 conda-forge python_abi 3.9 2_cp39 conda-forge pytz 2021.3 pyhd8ed1ab_0 conda-forge pyyaml 5.4.1 py39h3811e60_0 conda-forge readline 8.1 h27cfd23_0 defaults requests 2.25.1 pyhd3eb1b0_0 defaults ripgrep 13.0.0 habb4d0f_0 conda-forge ruamel_yaml 0.15.100 py39h27cfd23_0 defaults setuptools 52.0.0 py39h06a4308_0 defaults six 1.16.0 pyhd3eb1b0_0 defaults soupsieve 2.3.1 pyhd8ed1ab_0 conda-forge sqlite 3.36.0 hc218d9a_0 defaults tk 8.6.10 hbc83047_0 defaults tqdm 4.61.2 pyhd3eb1b0_1 defaults tzdata 2021a h52ac0ba_0 defaults urllib3 1.26.6 pyhd3eb1b0_1 defaults wheel 0.36.2 pyhd3eb1b0_0 defaults xz 5.2.5 h7b6447c_0 defaults yaml 0.2.5 h7b6447c_0 defaults zlib 1.2.11 h7b6447c_3 defaults zstd 1.4.9 ha95c52a_0 conda-forge ```


Details about conda and system ( conda info ):

``` $ conda info active environment : None shell level : 0 user config file : /home/kinow/.condarc populated config files : /home/kinow/.condarc conda version : 4.10.3 conda-build version : 3.21.7 python version : 3.9.5.final.0 virtual packages : __cuda=9.1=0 __linux=5.4.0=0 __glibc=2.31=0 __unix=0=0 __archspec=1=x86_64 base environment : /home/kinow/Development/python/miniconda3 (writable) conda av data dir : /home/kinow/Development/python/miniconda3/etc/conda conda av metadata url : None channel URLs : https://conda.anaconda.org/conda-forge/linux-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /home/kinow/Development/python/miniconda3/pkgs /home/kinow/.conda/pkgs envs directories : /home/kinow/Development/python/miniconda3/envs /home/kinow/.conda/envs platform : linux-64 user-agent : conda/4.10.3 requests/2.25.1 CPython/3.9.5 Linux/5.4.0-92-generic ubuntu/20.04.3 glibc/2.31 UID:GID : 1000:1000 netrc file : None offline mode : False ```
ocefpaf commented 2 years ago

Looks like you already sent a PR upstream to fix it. Please let is know how that goes. We can try to build it from a GitHub release if that exist and bypass the tarball with missing files at PyPI.