Loop3D / map2loop-2-legacy

MIT License
25 stars 8 forks source link

conda install fails #71

Open smrgeoinfo opened 3 years ago

smrgeoinfo commented 3 years ago

following instructions in readme, I'm in Windows 10, Anaconda3, run conda install -c conda-forge -c loop3d map2loop -y get 'packageNotFoundError' for map2loop...

lachlangrose commented 3 years ago

Hi Steve,

Do you have any more information? Did you try and install using conda install -c conda-forge -c loop3d map2loop. If so what was the error message? Can you try into a clean environment? What OS are you using?

Thanks,

Lachlan

smrgeoinfo commented 3 years ago

I ran python setup.py develop in my map2loop-2 repo check out. It took about an hour, listing many package conflicts (mostly starting with anaconda==2020.11; maybe my Anaconda install is out of date...), but seems to have succeeded; here's the end of the console output with the last conflict notification.

Package shapely conflicts for:
geopandas -> shapely
shapely

running egg_info
creating map2loop.egg-info
writing map2loop.egg-info\PKG-INFO
writing dependency_links to map2loop.egg-info\dependency_links.txt
writing top-level names to map2loop.egg-info\top_level.txt
writing manifest file 'map2loop.egg-info\SOURCES.txt'
reading manifest file 'map2loop.egg-info\SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'map2loop.egg-info\SOURCES.txt'
running build_ext
Creating e:\eprograms\anaconda3\lib\site-packages\map2loop.egg-link (link to .)
Adding map2loop 1.1.7 to easy-install.pth file

Installed e:\github\loop3d\map2loop-2
Processing dependencies for map2loop==1.1.7
Finished processing dependencies for map2loop==1.1.7

When the process started I got the same messages I got witht he conda install:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

but then after a long while is came up with the packages to install with some other flexible solve process.

I'm trying to run the notebooks in map2loop2-notebooks, via Jupyter on my desktop, but still fails at the map2loop import:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-67dc8deeb9a4> in <module>
      1 import os
----> 2 from map2loop.project import Project
      3 get_ipython().run_line_magic('matplotlib', 'inline')
      4 
      5 proj = Project( 

e:\github\loop3d\map2loop-2\map2loop\project.py in <module>
      6 import urllib.request
      7 import warnings
----> 8 import hjson
      9 from tqdm import tqdm

ModuleNotFoundError: No module named 'hjson'

conda install hjson fails (PackagesNotFoundError)

lachlangrose commented 3 years ago

It is possible that hjson is not included in the requirements for the conda install... @yohanderose can you confirm?

Steve, just try conda install -c conda-forge hjson and see if that works.

smrgeoinfo commented 3 years ago

I tried the install -c conda-forge and got another 'packagesNotFoundError'

yohanderose commented 3 years ago

Hey Steve and Lachie,

I believe hjson is a conda package on the loop channel so conda install -c loop3d hjson -y Is probably more like it. I will double-check and let you know if it's missing/broken.

Are the conda install map2loop instructions on the readme not working?

Cheers, Yohan

On Thu, May 27, 2021, 3:36 AM Stephen Richard @.***> wrote:

I tried the install -c conda-forge and got another 'packagesNotFoundError'

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Loop3D/map2loop-2/issues/71#issuecomment-848874029, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJHDVLGTVXNPKRDOSRAIIULTPUIOZANCNFSM45QG55ZA .

smrgeoinfo commented 3 years ago

@yohanderose -c loop3d worked to get hjson thanks

smrgeoinfo commented 3 years ago

now when Jupyter notebook tries to load map2loop, it can't find geopandas

e:\github\loop3d\map2loop-2\map2loop\project.py in <module>
      9 from tqdm import tqdm
     10 
---> 11 import geopandas as gpd
     12 import pandas as pd
     13 import numpy as np

ModuleNotFoundError: No module named 'geopandas'

i tried conda install -c loop3d geopandas -y took a long time, running flexible solve, seems to have found something, got a huge list of conflicts, and apparently failed to install last several conflict notices

Package tbb conflicts for:
numba -> tbb[version='>=2019.0|>=2019.1|>=2019.4|>=2020.0|>=2020.3']
numpy-base -> tbb4py -> tbb[version='>=2018.0.4|>=2018.0.5|>=2019.0|>=2019.1|>=2019.4|>=2020.0|>=2020.2|>=2020.3|>=2021.2.0']

Package seaborn conflicts for:
geopandas -> pysal -> seaborn
anaconda==2020.11 -> seaborn==0.11.0=py_0

Package nbclassic conflicts for:
_ipyw_jlab_nb_ext_conf -> jupyterlab -> nbclassic[version='>=0.2,<1']
jupyterlab -> nbclassic[version='>=0.2,<1']

I'm not handy with navigating this kind of dependency network to figure out what's up. Short answer is that the instructions in the map2loop-2 readme are not working for me.

lachlangrose commented 3 years ago

Steve,

Can you try installing using a clean anaconda environment? It seems like you are getting a lot of conflicting packages... so maybe best to start fresh and work out what isn't compatible?

On Thu, May 27, 2021 at 7:52 AM Stephen Richard @.***> wrote:

now when Jupyter notebook tries to load map2loop, it can't find geopandas

e:\github\loop3d\map2loop-2\map2loop\project.py in 9 from tqdm import tqdm 10 ---> 11 import geopandas as gpd 12 import pandas as pd 13 import numpy as np

ModuleNotFoundError: No module named 'geopandas'

i tried conda install -c loop3d geopandas -y took a long time, running flexible solve, seems to have found something, got a huge list of conflicts, and apparently failed to install last several conflict notices

Package tbb conflicts for: numba -> tbb[version='>=2019.0|>=2019.1|>=2019.4|>=2020.0|>=2020.3'] numpy-base -> tbb4py -> tbb[version='>=2018.0.4|>=2018.0.5|>=2019.0|>=2019.1|>=2019.4|>=2020.0|>=2020.2|>=2020.3|>=2021.2.0']

Package seaborn conflicts for: geopandas -> pysal -> seaborn anaconda==2020.11 -> seaborn==0.11.0=py_0

Package nbclassic conflicts for: _ipyw_jlab_nb_ext_conf -> jupyterlab -> nbclassic[version='>=0.2,<1'] jupyterlab -> nbclassic[version='>=0.2,<1']

I'm not handy with navigating this kind of dependency network to figure out what's up. Short answer is that the instructions in the map2loop-2 readme are not working for me.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Loop3D/map2loop-2/issues/71#issuecomment-849145290, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYHZAFVSBXB5ZRC6XWYWKDTPVUQZANCNFSM45QG55ZA .

smrgeoinfo commented 3 years ago

OK, I updated Anaconda, cleaned my base environment, created a new environment, activated it, and ran conda install -c conda-forge -c loop3d map2loop -v

get

Collecting package metadata (current_repodata.json): ...working... 
Unable to retrieve repodata (response: 404) for https://conda.anaconda.org/loop3d/win-64/current_repodata.json

done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Traceback (most recent call last):
...skip a bunch of trace stuff...
 File "E:\EPrograms\Anaconda3\lib\site-packages\conda\resolve.py", line 288, in verify_specs
    raise ResolvePackageNotFound(bad_deps)
conda.exceptions.Resolve
PackagesNotFoundError: The following packages are not available from current channels:
  - map2loop

maybe the 404 getting ...loop3d/win-64/current_repodata.json is the problem?