Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

rtree, centerline not installed #109

Open
chilieeh opened this issue Dec 18, 2018 · 1 comment
Open

rtree, centerline not installed #109

chilieeh opened this issue Dec 18, 2018 · 1 comment
Assignees

Comments

@chilieeh
Copy link

I am using Ubuntu 16.04 and v3 of this project. When running the utilities package with python 3 (default version when installing python on Ubuntu is 3.6.7), I get the error that the versions are not compatible (package is written in python 2.7 I assume?) just like this:

python3 createDataSpaceNet.py /LabData/AOI_2_Vegas_Roads_Train/
Traceback (most recent call last):
File "createDataSpaceNet.py", line 4, in
from spaceNetUtilities import labelTools as lT
File "/home/marcin/utilities-3.0/python/spaceNetUtilities/labelTools.py", line 381
print imageId
^
SyntaxError: Missing parentheses in call to 'print'

And when I force python 2.7 installation and then switch to python 2.7 I still get the error like this one:

python createDataSpaceNet.py /LabData/AOI_2_Vegas_Roads_Train/
Traceback (most recent call last):
File "createDataSpaceNet.py", line 4, in
from spaceNetUtilities import labelTools as lT
File "/home/marcin/utilities-3.0/python/spaceNetUtilities/labelTools.py", line 4, in
import geoTools as gT
File "/home/marcin/utilities-3.0/python/spaceNetUtilities/geoTools.py", line 17, in
import centerline
ImportError: No module named centerline

I tried installing centerline separately but I would still get an error with rtree/geopandas/osgeo or simply GDAL package.

@nrweir nrweir self-assigned this Dec 18, 2018
@nrweir nrweir added Type: Bug Type: Question Status: Examination Needed Needs examination by a repository maintainer. labels Dec 18, 2018
@nrweir
Copy link
Collaborator

nrweir commented Dec 18, 2018

Hi chilieeh, thanks for moving the issue here.

It looks like you're using the spacenetutilities master branch rather than the "current" version in the spacenetV3 branch. I'd recommend re-installing from that branch:

git clone https://github.com/spacenetchallenge/utilities.git
cd utilities
git checkout spacenetV3
pip install .

The structure of the package has changed a bit between versions, and in spacenetV3 the createDataSpaceNet.py script can be found here

Let me know if you have further questions.

-N

@nrweir nrweir removed Type: Bug Status: Examination Needed Needs examination by a repository maintainer. labels Dec 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants