I get error message " ImportError: cannot import name geometry "

881 views
Skip to first unread message

Panupat H.

unread,
Nov 30, 2016, 5:24:39 AM11/30/16
to pytroll
# My Step

1. git clone mpop
2. cd mpop
3. python setup.py install


# Code ( E:\Python\demo.py )

from mpop.satellites import GeostationaryFactory
from mpop.projector import get_area_def
import datetime

from mpop.utils import debug_on
debug_on()

time_slot = datetime.datetime(2015,1,25,2,30)
global_data = GeostationaryFactory.create_scene('Himawari', '8','ahi', time_slot)


# HRIT Directory ( E:\Python\HRIT )

# cfg file ( C:\Python27\Lib\site-packages\satpy-0.2.0-py2.7.egg\etc ) and config data http://pastebin.com/RscdppB7


# Error Message 

No handlers could be found for logger "mpop.scene"
Traceback (most recent call last):
  
File "demo.py", line 19, in <module>
    
from mpop.projector import get_area_def
  
File "C:\Python27\lib\site-packages\mpop-1.3.0-py2.7.egg\mpop\projector.py", line 41, in <module>
    
from pyresample import image, utils, geometry, kd_tree
  
File "C:\Python27\lib\site-packages\pyresample-1.2.7-py2.7-win32.egg\pyresample\__init__.py", line 21, in <module>
    
from pyresample import geometry
ImportError: cannot import name geometry




Thank you for help.

Christian Peters

unread,
Nov 30, 2016, 5:39:00 AM11/30/16
to pytroll
Not an expert, but did you install pyresample!? Seems to be missed maybe...?

Christian

Panupat H.

unread,
Nov 30, 2016, 5:41:02 AM11/30/16
to pytroll
Thank you @Christian

I'm installed pyresample



Seem only me get this error message


Christian Peters

unread,
Nov 30, 2016, 8:29:37 AM11/30/16
to pytroll
Phew....a windows system!? Sorry - I think you have to wait for the experts.
I use Pytroll on Linux!

Regards,

Christian

David Hoese

unread,
Nov 30, 2016, 9:41:53 AM11/30/16
to pytroll
I'm sorry but mpop does not support Windows. You may get lucky in some cases, but it's not something heavily tested (or tested at all).

Panupat H.

unread,
Nov 30, 2016, 10:12:37 PM11/30/16
to pytroll
Thank everyone.

Before use Pytroll on Windows and now installing linux.


Martin Raspaud

unread,
Dec 1, 2016, 1:17:22 AM12/1/16
to pytroll

Hi,
If you install pykdtree and pyresample, does it help with the error?
Best regards
Martin


On Thu, 1 Dec 2016, 05:12 Panupat H., <loficv...@gmail.com> wrote:
Thank everyone.

Before use Pytroll on Windows and now installing linux.


--
You received this message because you are subscribed to the Google Groups "pytroll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytroll+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Martin Raspaud, PhD
Software engineer
SMHI, SE-60176
Message has been deleted

Martin Raspaud

unread,
Dec 5, 2016, 6:44:54 AM12/5/16
to pytroll
Hi,

could you attach your test script ?

Best regards,
Martin

On Thu, 1 Dec 2016 at 09:59 Panupat H. <loficv...@gmail.com> wrote:




Now I use in linux but i have a problem " mpop.satin.mipp_xrit] no data files: 'IMG_DK01VIS*_201501250230_0??*' "


/home/user/Python/HRIT


WARNING Message

[DEBUG: 2016-12-01 00:53:05 : mpop.satellites] Instrument: ahi
[DEBUG: 2016-12-01 00:53:05 : mpop.satellites] Build instrument compositer: ahi
[DEBUG: 2016-12-01 00:53:05 : mpop.satellites] No custom composites provided i config file...
[DEBUG: 2016-12-01 00:53:05 : mpop.satellites] No custom composites provided i config file...
[DEBUG: 2016-12-01 00:53:05 : mpop.scene] Looking for sources in section ahi-level2
[DEBUG: 2016-12-01 00:53:05 : mpop.scene] Using plugin mpop.satin.mipp_xrit
[INFO: 2016-12-01 00:53:05 : mpop.scene] old style plugin: mipp_xrit
[DEBUG: 2016-12-01 00:53:05 : mpop.satin.mipp_xrit] Channels to load from ahi: set(['VIS'])
[INFO: 2016-12-01 00:53:05 : mipp] No prologue file to read.
[WARNING: 2016-12-01 00:53:05 : mpop.satin.mipp_xrit] no data files: 'IMG_DK01VIS*_201501250230_0??*'
[INFO: 2016-12-01 00:53:05 : mpop.scene] No channels loaded with mpop.satin.mipp_xrit.
[DEBUG: 2016-12-01 00:53:05 : mpop.scene] Successfully loaded: set([])
[WARNING: 2016-12-01 00:53:05 : mpop.scene] Unable to import channels set(['VIS'])
'B01: (0.430,0.455,0.480)μm, resolution 2000.0m, not loaded'
'B02: (0.500,0.510,0.520)μm, resolution 2000.0m, not loaded'
'VIS: (0.630,0.645,0.660)μm, resolution 2000.0m, not loaded'
'B04: (0.850,0.860,0.870)μm, resolution 2000.0m, not loaded'
'B05: (1.600,1.610,1.620)μm, resolution 2000.0m, not loaded'
'B06: (2.160,2.260,2.360)μm, resolution 2000.0m, not loaded'
'IR4: (3.740,3.850,3.960)μm, resolution 2000.0m, not loaded'
'B08: (6.060,6.250,6.430)μm, resolution 2000.0m, not loaded'
'IR3: (6.890,6.950,7.010)μm, resolution 2000.0m, not loaded'
'B10: (7.230,7.350,7.490)μm, resolution 2000.0m, not loaded'
'B11: (8.440,8.600,8.740)μm, resolution 2000.0m, not loaded'
'B12: (9.540,9.630,9.720)μm, resolution 2000.0m, not loaded'
'IR1: (10.300,10.450,10.600)μm, resolution 2000.0m, not loaded'
'B14: (11.100,11.200,11.300)μm, resolution 2000.0m, not loaded'
'IR2: (12.200,12.350,12.500)μm, resolution 2000.0m, not loaded'
'B16: (13.200,13.300,13.400)μm, resolution 2000.0m, not loaded'

CFG

#
# Level 1.5 configuration file for MTSAT2
#
# An item like:
#   name = value
# is read in python like:
#   try:
#       name = eval(value)
#   except:
#       name = str(value)
#

[satellite]
satname = 'himawari'
number = '8'
instruments = ('ahi',)
projection = 'geos(140.7)'

[ahi-level2]
format = 'mipp_xrit'

[ahi-level1]
format = 'mipp/xrit/H8'
dir = '/home/user/Python/HRIT'
filename = 'IMG_DK01%(channel)s_%Y%m%d%H%M_%(segment)s'

[ahi-1]
name = 'B01'
frequency = (0.430, 0.455, 0.480)
resolution = 2000.0
size = (5500, 5500)

[ahi-2]
name = 'B02'
frequency = (0.50, 0.51, 0.52)
resolution = 2000.0
size = (5500, 5500)

[ahi-3]
name = 'VIS'
frequency = (0.630, 0.645, 0.660)
resolution = 2000.0
size = (5500, 5500)

[ahi-4]
name = 'B04'
frequency = (0.850, 0.860, 0.870)
resolution = 2000.0
size = (5500, 5500)


[ahi-5]
name = 'B05'
frequency = (1.6, 1.61, 1.62)
resolution = 2000.0
size = (5500, 5500)


[ahi-6]
name = 'B06'
frequency = (2.16, 2.26, 2.36)
resolution = 2000.0
size = (5500, 5500)

[ahi-7]
name = 'IR4'
frequency = (3.74, 3.85, 3.96)
resolution = 2000.0
size = (5500, 5500)

[ahi-8]
name = 'B08'
frequency = (6.06, 6.25, 6.43)
resolution = 2000.0
size = (5500, 5500)

[ahi-9]
name = 'IR3'
frequency = (6.89, 6.95, 7.01)
resolution = 2000.0
size = (5500, 5500)

[ahi-10]
name = 'B10'
frequency = (7.23, 7.35, 7.49)
resolution = 2000.0
size = (5500, 5500)

[ahi-11]
name = 'B11'
frequency = (8.44, 8.6, 8.74)
resolution = 2000.0
size = (5500, 5500)

[ahi-12]
name = 'B12'
frequency = (9.54, 9.63, 9.72)
resolution = 2000.0
size = (5500, 5500)

[ahi-13]
name = 'IR1'
frequency = (10.3, 10.45, 10.6)
resolution = 2000.0
size = (5500, 5500)

[ahi-14]
name = 'B14'
frequency = (11.1, 11.2, 11.3)
resolution = 2000.0
size = (5500, 5500)

[ahi-15]
name = 'IR2'
frequency = (12.2, 12.35, 12.5)
resolution = 2000.0
size = (5500, 5500)

[ahi-16]
name = 'B16'
frequency = (13.2, 13.3, 13.4)
resolution = 2000.0
size = (5500, 5500)



--
You received this message because you are subscribed to the Google Groups "pytroll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytroll+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages