question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Attribute Error in Fiona when calling Pandas

See original GitHub issue

Before I installed geopandas, I used

conda install fiona shapely pyproj rtree

(I already have pandas on my machine) to satisfy all dependencies. Afterwards tried

conda install --channel conda-forge geopandas

as well as

conda install geopandas

But even with conda update -all I get

AttributeError: type object 'fiona.ogrext.FeatureBuilder' has no attribute '__reduce_cython__'

when I call geopandas in python. Did I mess up something, or does someone has this issue as well? Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jorisvandenbosschecommented, May 8, 2019

So you have a mixture of packages from the default channel and from conda-forge, which is not recommended (there can be binary incompatibilities between the packages), see the note here https://geopandas.readthedocs.io/en/latest/install.html#using-the-conda-forge-channel (although I have to say I find it a strange error message if that is the problem)

Since you have most of the default channel, can you try to force install fiona (and gdal, libgdal) again? (to have them from the default channel, so without -c conda-forge)?

1reaction
jorisvandenbosschecommented, May 7, 2019

And also, can you show the result of conda list ?

There is something wrong with the fiona package (which is being used by GeoPandas to read files)

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: module 'fiona' has no attribute '_loading'
First, install python=3.7 then download the related library with the same version of python from here.
Read more >
Fiona error adding property to shapefile - GIS Stack Exchange
I'm getting the following error when trying to add a property to a .shp file using fiona in python: Traceback (most recent call...
Read more >
Installing but OSMnx in new Environment: Fiona Error
After activating the environment and importing the OSMnx module, it gives me the error of fiona AttributeError Traceback (most recent call last) ...
Read more >
1 The Fiona User Manual — Fiona 2.0dev documentation
The first example of using Fiona is this: copying records from one file to another, adding two attributes and making sure that all...
Read more >
AttributeError in Python - Javatpoint
This error occurs in the program when there is a conditioning failure in the attribute assignment. For example, if we assign an integer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found