Giter Club home page Giter Club logo

Comments (12)

ocefpaf avatar ocefpaf commented on May 14, 2024 5

Thanks @sgillies, good point - looks like a conda-forge issue.

Indeed. Please report it at https://github.com/conda-forge/osmnx-feedstock/issues

However, it does seems like you are mixing packages from defaults and conda-forge. If you isolate that in an env it should be OK.

conda create --yes -c conda-forge -n OSMNX python=3.6 osmnx
source activate OSMNX
python -c 'import osmnx; print(osmnx.__version__)'
0.2.1

from osmnx.

JasonSanchez avatar JasonSanchez commented on May 14, 2024 4

Wow! The snippet posted by @ocefpaf worked perfectly! Thank you all so much for your help and for making it possible for me to use such an awesome library!

from osmnx.

sgillies avatar sgillies commented on May 14, 2024 1

@JasonSanchez @gboeing this is an Anaconda or conda-forge packaging issue. There's nothing the Fiona project can do to solve it.

from osmnx.

sgillies avatar sgillies commented on May 14, 2024 1

@ocefpaf that was my suspicion, too.

from osmnx.

gboeing avatar gboeing commented on May 14, 2024 1

Thanks @ocefpaf. As this is an issue with conda installation rather than with the OSMnx codebase itself, I'm going to close this here. For future reference, if anyone has this problem please open an issue at https://github.com/conda-forge/osmnx-feedstock/issues

from osmnx.

gboeing avatar gboeing commented on May 14, 2024

Can you open a new terminal window or Jupyter notebook and then run this line of Python code:

from fiona.ogrext import Iterator, ItemsIterator, KeysIterator

From your trace, it looks like it's a problem with Fiona and your installed GDAL version. If the above Fiona import line does indeed fail, you'll want to open an issue at the Fiona repo because it looks like the problem is with that dependency. I don't have a Mac so I'm not sure I can reproduce this error.

from osmnx.

gboeing avatar gboeing commented on May 14, 2024

Thanks @sgillies, good point - looks like a conda-forge issue.

from osmnx.

khibma avatar khibma commented on May 14, 2024

@ocefpaf +1 - I encountered this too. Thanks for the suggestion.

from osmnx.

JasonSanchez avatar JasonSanchez commented on May 14, 2024

Hi all, although everything was working, now it is broken again with a different error. I tried incredibly hard to solve the issue by myself and ended up spending several hours with no luck. Running the snippet from @ocefpaf on a clean install of Anaconda generates the following error:

MacBook-Pro-5:~ Jason$ python -c 'import osmnx; print(osmnx.__version__)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/user/anaconda/envs/OSMNX1/lib/python3.6/site-packages/osmnx/__init__.py", line 8, in <module>
    from .core import *
  File "/Users/user/anaconda/envs/OSMNX1/lib/python3.6/site-packages/osmnx/core.py", line 20, in <module>
    import geopandas as gpd
  File "/Users/user/anaconda/envs/OSMNX1/lib/python3.6/site-packages/geopandas/__init__.py", line 4, in <module>
    from geopandas.io.file import read_file
  File "/Users/user/anaconda/envs/OSMNX1/lib/python3.6/site-packages/geopandas/io/file.py", line 3, in <module>
    import fiona
  File "/Users/user/anaconda/envs/OSMNX1/lib/python3.6/site-packages/fiona/__init__.py", line 69, in <module>
    from fiona.collection import Collection, BytesCollection, vsi_path
  File "/Users/user/anaconda/envs/OSMNX1/lib/python3.6/site-packages/fiona/collection.py", line 9, in <module>
    from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
ImportError: dlopen(/Users/user/anaconda/envs/OSMNX1/lib/python3.6/site-packages/fiona/ogrext.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libicui18n.56.dylib
  Referenced from: /Users/user/anaconda/envs/OSMNX1/lib/libgdal.20.dylib
  Reason: image not found

At this point I will try pretty much anything to get it working again. I would very much appreciate your help in pointing me in the right direction.

from osmnx.

badbayesian avatar badbayesian commented on May 14, 2024

I also have this problem

from osmnx.

ocefpaf avatar ocefpaf commented on May 14, 2024

Please open issues related to the conda package at: https://github.com/conda-forge/osmnx-feedstock/issues

I recommend to check your .condarc file and ensure that the conda-forge channel is on top of defaults before trying #25 (comment) again.

from osmnx.

gboeing avatar gboeing commented on May 14, 2024

For future reference, see conda-forge/osmnx-feedstock#14

from osmnx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.