Geopandas and Fiona GDB Driver issue on Mac M1 - geopandas

I have Geopandas 0.9.0 and Fiona 1.8.13.post1 installed in a Conda environment and I am getting a driver error when opening an ESRI gdb file.
The same setup works flawlessly on my older Intel Mac.
I am at a loss in how to troubleshoot this. I tried updating Geopandas and Fiona to the latest versions but I am getting the same driver error. I could not find any documentation that explains whether this ESRI gdb driver is supported on Apple Silicone.
Here is the error message:
--------------------------------------------------------------------------- CPLE_OpenFailedError Traceback (most recent call
> last) fiona/_shim.pyx in fiona._shim.gdal_open_vector()
> fiona/_err.pyx in fiona._err.exc_wrap_pointer()
> CPLE_OpenFailedError: 'MyFile.gdb' not recognized as a supported file
> format.
> During handling of the above exception, another exception occurred:
> DriverError Traceback (most recent call
> last)
> /var/folders/3s/lyss3q0x3gd93gncsph3zp6h0000gn/T/ipykernel_11360/269242301.py
> in <module> ... DriverError: 'MyFile.gdb' not recognized as a
> supported file format.

Related

Bug using Python 3.7 (from QGIS) and trying to install package with pip

I use QGIS 3.6 and Python 3.7 and I try to install a package with pip in command line tool under Windows 7 but I have the following message :
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
Current thread 0x0000188c (most recent call first):
My path and PYTHONPATH are well configured with link to QGIS' Python folders. The problem appeared recently with use of Python 3.7.
At least for Mac recent QGIS versions seem to support only Python 3.6, not 3.7, see https://qgis.org/en/site/forusers/download.html

How to import leveldb in Python 3.5 on Windows

I struggled a while to install leveldb package in Python 3.5 on Windows.
https://github.com/happynear/py-leveldb-windows gives some clues on how to install the package. However, even though following all the instruction in the post, I still got a following error when I imported the package leveldb in Ipython prompt:
import leveldb
Traceback (most recent call last):
File "<ipython-input-16-4427bf69c6fb>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.
Does anyone know how to solve this problem?
The compiled pyd file at https://github.com/happynear/py-leveldb-windows is for Python 3.6 as of 18.03.2019. I had the same error as the OP when trying to use it with Python 3.7. Uninstalling 3.7 and installing 3.6 made it work.

Installing PyQt4 in Mac OS X and Maya

I am trying to run PyQt4 in Maya 2014 and I keep getting the error that no modules was found etc.
I am a Mac user on OS X 10.7.5 and I have tried running the installation following this link as my guide.
Unfortunately though I am able to install everything as stated, but as I am unable to get the IDLE.app from MacPorts, thus I tried checking whether the PyQt4 is installed either by terminal or through Maya itself where I typed in from PyQt4.QtGui import *
However both methods still state the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named PyQt4.QtGui
Can anyone help me through? Or do I still need to install something else just for Maya-usage?
It would seems that the python package in my machine is Python 2.7.1 as depicted from the terminal
For 2014+ you may want to use PySide, which comes with your Maya and won't need separate installation.

Why does Storm return 'ImportError: No module named os'?

I ran WordCountTopology example with Storm 0.8.2 but I am thrown an error as below:
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "storm-0.8.2/bin/storm", line 3, in <module>
import os
ImportError: No module named os
Looks like the error is not from the code but Storm environment. Any suggestions where I could look into would be of great help. Thanks.
I just checked the script in your question that is complaining locally, its a python script. You need the python os module for this to work.
I'm not sure why its not included already can you check and see of you have it installed.

apportable : No module named argparse error on mac

i just installed apportable from here : http://www.apportable.com/users/1928
now , after installing successfully it gives this error :
Traceback (most recent call last):
File "/Users/macintosh/.apportable/SDK/bin/apportable", line 3, in
import argparse
ImportError: No module named argparse
i can understand it's import issue .. but i am not able to resolve this .. can anyone help on this !! i have tried this for many times & still same error .. what could be the possible resolution to this.
please help !
You may have an old python. You should have version 2.7+:
$ python --version
Python 2.7.2
Or old MacOS X. Apportable requires Mac OS X 10.7+.

Resources