installing GDAL 1.10 Complete needed to run rgdal package? - gdal

I am starting to work with Rstudio and have to work with spatial data. This question relates to my previous question about installing rgdal. I work on a Macbook pro with OSX10.7.5. Do I need to install GDAL 1.10 Complete as an installer in order to install some R packages? I can download these from: http://www.kyngchaos.com/software/frameworks. Is this a good idea?
Thank you in advance, Sarah

From here:
"rgdal provides bindings to Frank Warmerdam's Geospatial Data Abstraction Library (GDAL) (>= 1.6.3) and access to projection/transformation operations from the PROJ.4 library."
So yes, in order to use rgdal in R you need to GDAL complete.

Related

How to install redisGraph on mac with my existiing redis database

I have been trying for 2 days to install redisGraph on mac WITH my existing redis database, it can be done with redis cloud but i want to have it locally ( and free ).
I go redis working, but i don't understand, and can't find how to install modules on my mac.
Btw i have a M1 macbook pro (maybe it maters).
Can anyone please help me.
Have you tried building it locally?
see instructions here
Which compiler are you using, I'll suggest using GCC, preferably version 10 or 11

Why are the bob databases (e.g. bob.db.arface) not available for Python 3.8

I have lately installed the latest version of Bob (particularly, the package bob.bio.face) (9.0) using conda and following the installation instructions. This automatically installed python version 3.8. When I try to run
bob bio pipelines vanilla-biometrics arface gabor_graph
I get the error: ModuleNotFoundError: No module named 'bob.db.arface'
So, I try to install bob.db.arface: conda install bob.db.arface. For some reason, this wants to install a whole new python version (3.7), and reinstall all bob packages.
Looking at the pipelines of bob.db.arface (https://gitlab.idiap.ch/bob/bob.db.arface/pipelines/45435), I can see that only python 3.6 and 3.7 is supported. It seems to be that this is true for many of the bob.db packages. Will there be versions for python 3.8 available, or do I need to downgrade to python 3.7?
In the new release of bob we deprecated all database packages and porting them one by one (once we have the time for it) to the new database interface (https://gitlab.idiap.ch/bob/bob.bio.face/-/issues/54).
If you want to use the old bob.dbs and the legacy database support (https://www.idiap.ch/software/bob/docs/bob/bob.bio.base/stable/legacy.html), please, rely on bob for py37.
Cheers
You may pip install the bob.db.arface package or use buildout but know that most bob.db. packages are deprecated in favor of the csv format. https://groups.google.com/g/bob-devel/c/6-4SxluHHrA

How to integrate SUMO into Flow?

Repost from Antonio D.:
I just installed FLOW following all the instructions given in the following link. After executing the sugiyama example, SUMO shows an error saying this: "Error: tcpip::Storage::readIsSafe: want to read 8 bytes from Storage, but only 4 remaining". I know that after the release of SUMO 1.0.0 TraCI libraries and SUMO are no more compatible but I am not able to downgrade the last version of SUMO in my machine (MacBook). Which is the version I should downgrade tool and how can I do it?
I would really appreciate if anyone could help me to fix this.
Repost from Flow team:
This is probably happening because your conda environment cannot find the associate binaries. I would recommend installing the binaries into your conda environment; that should fix this. You can do so from your terminal by running the following commands:
cd /path/to/flow
source activate flow
scripts/setup_sumo_osx.sh
Hope this helps.

Python Packaging Fix: Understand Differences between Wheel and Egg; How to get local fix to wider audience?

I'm trying to understand why the easy_install of pyicu works and pip install doesn't (see below). also trying to understand "What is the difference between a PyPi project with a universal wheel and one without?" Will installs be "easier?". If so, will this merge request solve the problem of polyglot not installing on an Anaconda machine?
Need help/advice/solutions on how to best resolve python project install issue that is tied to underlying dependencies. I have two local fixes in GitHub Gists but would like to know the best way to have this fix "out there" so people like me can find it. What is the normal Python Community approach? The problem centers around three projects:
polyglot - a python multilingual NLP toolkit
pyicu - Python extension wrapping IBM's International Components for Unicode C++ library (ICU).
pycld2 - CLD (Compact Language Detection) library as maintained by Dick Sites
The goal:
Install polyglot on a MacOSX computer running Python Anaconda Distribution
Make the fix I found available to everyone; lots of issues published about the problem.
Here's the error trace:
The Problem (Lots of them):
Core polyglot dependency, pyicu, does not properly install when you use pip install. Discovered you must use easy_install for it build properly and work on MacOSX. If you don't use the easy_install, you get:
polyglot requires icu 54.1.1 to run in Anaconda, but...
Homebrew, the MacOSX tool to install icu, only installs version 58.1. That version is too new. Old stackoverflows advise brew install icu4c to fix problem, but Homebrew evolution makes that advice obsolete now.
pyicu does not have a universal wheel; but I created a merge request to add one to pyicu. Only way to fix this is with this channel's icu, https://anaconda.org/ccordoba12/icu. conda install icu will not work, but that's the normal conda way of doing things.
*pycld2 - CLD (Compact Language Detection) becomes a problem because after I build the wheel file locally, have to download the project and run setup.py install locally. There has to be a better way to do this right?
What I've Done to Solve the problem (should I do more, what should I do next?)
Created two Gists that can successfully install polyglot on a Mac running Anaconda for Python 2.7 or Python 3.5
Python 2.7 fix
Python 3.5 fix
created the merge request for pyicu
Both Gist fixes work. But, is this error in install tied to the wheel? If I installed pyicu with easy_install, the install works. But, with pip, it doesn't?
What are the steps to take in the Python community to fix it so people can find the solution or just pip install with no problems?
I did a test, and if the wheel file is built, the pip works with no issues.

How do install pyopencl using INDE instead of OpenCL SDK?

I'm a python newbie and I'm trying to install pyopencl. I've found Andreas Klöckner's website. And I'm trying to use the Windows 7 64bit, Python 2.7, Visual Studio 2010, Intel OpenCL SDK 1.5 directions to install. The problem is that Intel OpenCL SDK has been integrated into INDE. So I'm wondering what the equivalent library file is for C:\Program Files (x86)\Intel\OpenCL SDK\1.5\include and C:\Program Files (x86)\Intel\OpenCL SDK\1.5\lib\x64 ? After installing INDE, I didn't see anything under that specific file location.
Under C:\Intel\INDE, if I just look for folders that contain libraries I saw the code_builder_5.0.0.43 (contains OpenCL), IDEintegration (contains a bunch of stuff), the media_raw_accelerator_1.0.3, media_sdk_6.0.0.308. Anyone know which one I should be using?
It's 'C:\Intel\INDE\code_builder_5.0.0.43\include' and 'C:\Intel\INDE\code_builder_5.0.0.43\lib\x64'
Let me add a few points that could be useful to others who want to use PyOpenCL on Windows. First, if you are not a Python developer, you will want to use the Intel OpenCL Code Builder. When you install the INDE Suite, you integrate in Visual Studio and you get all the syntax highlighting amongst others. This video gives a great overview: http://bcove.me/xrcs5bze
The latest OpenCL 2.0 (as of time of writing) is now part of OpenCL Code Builder. In order to access the OpenCL framework to use with PyOpenCL, do the following installation on Windows (if not yet done):
Detailed instructions can be found here: http://wiki.tiker.net/PyOpenCL/Installation/Windows
Install Visual Studio
Install Python 2.7
Install NumPy
Install PyOpenCL
Install Intel INDE (OpenCL Code Builder component)
Once this is done, locate the siteconf.py file and edit accordingly. On my machine, I have INDE Update 2 which comes with OpenCL Code Builder 5.1.0.25 installed.
Thus, the following lines are edited:
CL_INC_DIR = [r'C:\Intel\INDE\code_builder_5.1.0.25\include']
CL_LIB_DIR = [r'C:\Intel\INDE\code_builder_5.1.0.25\lib\x64', r'C:\Intel\INDE\code_builder_5.1.0.25\lib\x86']
I hope that helped.