Skip to main content

root@conusdev:/mayday/disk1/jim_code/shub/sentinelhub-py-master# python3 setup.py install

/usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: ‘long_description_content_type’

warnings.warn(msg)

/usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: ‘python_requires’

warnings.warn(msg)

running install

Checking .pth file support in /usr/local/lib/python3.5/dist-packages/

/usr/bin/python3 -E -c pass

TEST PASSED: /usr/local/lib/python3.5/dist-packages/ appears to support .pth files

running bdist_egg

running egg_info

writing requirements to sentinelhub.egg-info/requires.txt

writing entry points to sentinelhub.egg-info/entry_points.txt

writing top-level names to sentinelhub.egg-info/top_level.txt

writing dependency_links to sentinelhub.egg-info/dependency_links.txt

writing sentinelhub.egg-info/PKG-INFO

reading manifest file ‘sentinelhub.egg-info/SOURCES.txt’

reading manifest template ‘MANIFEST.in’

writing manifest file ‘sentinelhub.egg-info/SOURCES.txt’

installing library code to build/bdist.linux-x86_64/egg

running install_lib

running build_py

creating build/bdist.linux-x86_64

creating build/bdist.linux-x86_64/egg

creating build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/init.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/_version.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/areas.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/aws.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/aws_safe.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/commands.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/config.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/constants.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/data_request.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/decoding.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/exceptions.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/fis.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/geo_utils.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/geometry.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/geopedia.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/io_utils.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/ogc.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/opensearch.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/os_utils.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/sentinelhub_rate_limit.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/sentinelhub_request.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/sentinelhub_session.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/testing_utils.py -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/time_utils.py -> build/bdist.linux-x86_64/egg/sentinelhub

creating build/bdist.linux-x86_64/egg/sentinelhub/download

copying build/lib/sentinelhub/download/init.py -> build/bdist.linux-x86_64/egg/sentinelhub/download

copying build/lib/sentinelhub/download/aws_client.py -> build/bdist.linux-x86_64/egg/sentinelhub/download

copying build/lib/sentinelhub/download/client.py -> build/bdist.linux-x86_64/egg/sentinelhub/download

copying build/lib/sentinelhub/download/handlers.py -> build/bdist.linux-x86_64/egg/sentinelhub/download

copying build/lib/sentinelhub/download/request.py -> build/bdist.linux-x86_64/egg/sentinelhub/download

copying build/lib/sentinelhub/download/sentinelhub_client.py -> build/bdist.linux-x86_64/egg/sentinelhub/download

copying build/lib/sentinelhub/.utmzones.geojson -> build/bdist.linux-x86_64/egg/sentinelhub

copying build/lib/sentinelhub/config.json -> build/bdist.linux-x86_64/egg/sentinelhub

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/init.py to init.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/_version.py to _version.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/areas.py to areas.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/aws.py to aws.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/aws_safe.py to aws_safe.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/commands.py to commands.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/config.py to config.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/constants.py to constants.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/data_request.py to data_request.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/decoding.py to decoding.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/exceptions.py to exceptions.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/fis.py to fis.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/geo_utils.py to geo_utils.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/geometry.py to geometry.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/geopedia.py to geopedia.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/io_utils.py to io_utils.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/ogc.py to ogc.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/opensearch.py to opensearch.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/os_utils.py to os_utils.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/sentinelhub_rate_limit.py to sentinelhub_rate_limit.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/sentinelhub_request.py to sentinelhub_request.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/sentinelhub_session.py to sentinelhub_session.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/testing_utils.py to testing_utils.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/time_utils.py to time_utils.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/download/init.py to init.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/download/aws_client.py to aws_client.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/download/client.py to client.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/download/handlers.py to handlers.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/download/request.py to request.cpython-35.pyc

byte-compiling build/bdist.linux-x86_64/egg/sentinelhub/download/sentinelhub_client.py to sentinelhub_client.cpython-35.pyc

File “build/bdist.linux-x86_64/egg/sentinelhub/download/sentinelhub_client.py”, line 33

raise ValueError(f’A session parameter has to be an instance of {SentinelHubSession.name} or None, but ’

^

SyntaxError: invalid syntax


creating build/bdist.linux-x86_64/egg/EGG-INFO

copying sentinelhub.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO

copying sentinelhub.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

copying sentinelhub.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

copying sentinelhub.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

copying sentinelhub.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO

copying sentinelhub.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

copying sentinelhub.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

creating dist

creating ‘dist/sentinelhub-3.0.4-py3.5.egg’ and adding ‘build/bdist.linux-x86_64/egg’ to it

removing ‘build/bdist.linux-x86_64/egg’ (and everything under it)

Processing sentinelhub-3.0.4-py3.5.egg

removing ‘/usr/local/lib/python3.5/dist-packages/sentinelhub-3.0.4-py3.5.egg’ (and everything under it)

creating /usr/local/lib/python3.5/dist-packages/sentinelhub-3.0.4-py3.5.egg

Extracting sentinelhub-3.0.4-py3.5.egg to /usr/local/lib/python3.5/dist-packages

File “/usr/local/lib/python3.5/dist-packages/sentinelhub-3.0.4-py3.5.egg/sentinelhub/download/sentinelhub_client.py”, line 33

raise ValueError(f’A session parameter has to be an instance of {SentinelHubSession.name} or None, but ’

^

SyntaxError: invalid syntax

Hi,

the problem is that newer versions of sentinelhub-py package require Python version >= 3.6 and you are using Python 3.5.


Thank you . It helped fixed that issue


Reply