Notices


Reply
Thread Tools
cjp's Avatar
Posts: 762 | Thanked: 395 times | Joined on Jan 2010 @ Helsinki
#21
You guys are crazy hackers and I love you.

I hope everything works out for all of you o/
__________________
--
Find me on Twitter: @creip

Please read my blog: "PeakMobility", which deals with MeeGo/Maemo, Windows Phone and mobile technology in general from a hedonistic user point-of-view: http://peakmob.blogspot.com/
 

The Following User Says Thank You to cjp For This Useful Post:
Posts: 223 | Thanked: 323 times | Joined on Dec 2010
#22
Originally Posted by purgiaali View Post
Tanheis
You might have older vesion of libgdal installed.


I seem to have found a bug in the script.

Attachment 16289
map.py?kpp/15/18606/9313.png
I'm not totally sure what's causing that but changing script to do transformation to bigger map image seems to fix it. This can be done by replacing the number 0.4 with 0.5 on the line 46.
 
Posts: 4 | Thanked: 0 times | Joined on Dec 2010
#23
Originally Posted by purgiaali View Post
Tanheis
You might have older vesion of libgdal installed.
I updated libgdal.

Still not working.

apache2 log:
Code:
[Sun Dec 12 21:08:31 2010] [error] [client ::1] SystemExit: 1
[Sun Dec 12 21:09:45 2010] [notice] mod_python (pid=1442, interpreter='::1'): Reimporting module '/var/www/py/map.py'
[Sun Dec 12 21:09:46 2010] [notice] mod_python (pid=1442, interpreter='::1'): Reimporting module '/var/www/py/fetch_map.py'
[Sun Dec 12 21:09:46 2010] [error] [client ::1] mod_python (pid=1442, interpreter='::1', phase='PythonHandler', handler='mod_python.publisher'): Application error
[Sun Dec 12 21:09:46 2010] [error] [client ::1] ServerName: '::1'
[Sun Dec 12 21:09:46 2010] [error] [client ::1] DocumentRoot: '/var/www'
[Sun Dec 12 21:09:46 2010] [error] [client ::1] URI: '/py/map.py'
[Sun Dec 12 21:09:46 2010] [error] [client ::1] Location: None
[Sun Dec 12 21:09:46 2010] [error] [client ::1] Directory: '/var/www/'
[Sun Dec 12 21:09:46 2010] [error] [client ::1] Filename: '/var/www/py/map.py'
[Sun Dec 12 21:09:46 2010] [error] [client ::1] PathInfo: ''
[Sun Dec 12 21:09:46 2010] [error] [client ::1] Traceback (most recent call last):
[Sun Dec 12 21:09:46 2010] [error] [client ::1]   File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch\n    default=default_handler, arg=req, silent=hlist.silent)
[Sun Dec 12 21:09:46 2010] [error] [client ::1]   File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1229, in _process_target\n    result = _execute_target(config, req, object, arg)
[Sun Dec 12 21:09:46 2010] [error] [client ::1]   File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1128, in _execute_target\n    result = object(arg)
[Sun Dec 12 21:09:46 2010] [error] [client ::1]   File "/usr/lib/python2.6/dist-packages/mod_python/publisher.py", line 213, in handler\n    published = publish_object(req, object)
[Sun Dec 12 21:09:46 2010] [error] [client ::1]   File "/usr/lib/python2.6/dist-packages/mod_python/publisher.py", line 425, in publish_object\n    return publish_object(req,util.apply_fs_data(object, req.form, req=req))
[Sun Dec 12 21:09:46 2010] [error] [client ::1]   File "/usr/lib/python2.6/dist-packages/mod_python/util.py", line 554, in apply_fs_data\n    return object(**args)
[Sun Dec 12 21:09:46 2010] [error] [client ::1]   File "/var/www/py/map.py", line 513, in index\n    im = getTile(z,x,y, service)
[Sun Dec 12 21:09:46 2010] [error] [client ::1]   File "/var/www/py/map.py", line 79, in getTile\n    fmservice = fetch_map.GetFMService(SERVICE_CODE)
[Sun Dec 12 21:09:46 2010] [error] [client ::1]   File "/var/www/py/fetch_map.py", line 407, in GetFMService\n    sys.exit(1)
[Sun Dec 12 21:09:46 2010] [error] [client ::1] SystemExit: 1
This is what I get to www-browser..
Code:
MOD_PYTHON ERROR

ProcessId:      1443
Interpreter:    '::1'

ServerName:     '::1'
DocumentRoot:   '/var/www'

URI:            '/py/map.py'
Location:       None
Directory:      '/var/www/'
Filename:       '/var/www/py/map.py'
PathInfo:       ''

Phase:          'PythonHandler'
Handler:        'mod_python.publisher'

Traceback (most recent call last):

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1229, in _process_target
    result = _execute_target(config, req, object, arg)

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1128, in _execute_target
    result = object(arg)

  File "/usr/lib/python2.6/dist-packages/mod_python/publisher.py", line 213, in handler
    published = publish_object(req, object)

  File "/usr/lib/python2.6/dist-packages/mod_python/publisher.py", line 425, in publish_object
    return publish_object(req,util.apply_fs_data(object, req.form, req=req))

  File "/usr/lib/python2.6/dist-packages/mod_python/util.py", line 554, in apply_fs_data
    return object(**args)

  File "/var/www/py/map.py", line 513, in index
    im = getTile(z,x,y, service)

  File "/var/www/py/map.py", line 79, in getTile
    fmservice = fetch_map.GetFMService(SERVICE_CODE)

  File "/var/www/py/fetch_map.py", line 407, in GetFMService
    sys.exit(1)

SystemExit: 1


MODULE CACHE DETAILS

Accessed:       Sun Dec 12 21:13:13 2010
Generation:     6

_mp_fd12b95901119bc5973f096a3acd7cf2 {
  FileName:     '/var/www/py/coordinates.py'
  Instance:     1
  Generation:   1
  Modified:     Fri Aug  6 16:36:29 2010
  Imported:     Sun Dec 12 21:08:29 2010
}

_mp_67ddd361d50674d6ee9af4d957be66c6 {
  FileName:     '/var/www/py/fetch_map.py'
  Instance:     2 [RELOAD]
  Generation:   7
  Modified:     Sun Dec 12 21:09:19 2010
  Imported:     Sun Dec 12 21:13:13 2010
  Children:     '/var/www/py/coordinates.py',
                '/var/www/py/fms.py',
                '/var/www/py/fms_kkp.py',
                '/var/www/py/fms_rka.py'
}

_mp_c5e1beab0460b294bbab446b8d633cf6 {
  FileName:     '/var/www/py/fms.py'
  Instance:     1
  Generation:   2
  Modified:     Thu Feb 11 22:01:48 2010
  Imported:     Sun Dec 12 21:08:29 2010
}

_mp_f5f3091beb3a9fcdc266bb60b0f0d9f2 {
  FileName:     '/var/www/py/fms_kkp.py'
  Instance:     1
  Generation:   3
  Modified:     Sat Dec 11 22:42:48 2010
  Imported:     Sun Dec 12 21:08:29 2010
  Children:     '/var/www/py/coordinates.py',
                '/var/www/py/fms.py'
}

_mp_3b50c43383e854a21433025c31deeaff {
  FileName:     '/var/www/py/fms_rka.py'
  Instance:     1
  Generation:   4
  Modified:     Wed Nov  3 13:50:13 2010
  Imported:     Sun Dec 12 21:08:29 2010
  Children:     '/var/www/py/coordinates.py',
                '/var/www/py/fms.py'
}

_mp_9c79b27f7f602d61fc4d48f3a5f2dbac {
  FileName:     '/var/www/py/map.py'
  Instance:     2 [RELOAD]
  Generation:   8
  Modified:     Sun Dec 12 21:09:19 2010
  Imported:     Sun Dec 12 21:13:13 2010
  Children:     '/var/www/py/coordinates.py',
                '/var/www/py/fetch_map.py'
}
 
Posts: 223 | Thanked: 323 times | Joined on Dec 2010
#24
Originally Posted by tanheis View Post
I updated libgdal.

Still not working.
You have maybe misspelled the map service part(kkp, kkp2, rka, rka2...) in the URL?
 
Posts: 4 | Thanked: 0 times | Joined on Dec 2010
#25
Got it working.
Thanks for the script!
 
Posts: 223 | Thanked: 323 times | Joined on Dec 2010
#26
I added Finnish instructions how to use script on Windows to post #6 (http://talk.maemo.org/showpost.php?p=890055&postcount=6)
 

The Following User Says Thank You to orava For This Useful Post:
Posts: 2,829 | Thanked: 1,459 times | Joined on Dec 2009 @ Finland
#27
Originally Posted by orava View Post
I added Finnish instructions how to use script on Windows to post #6 (http://talk.maemo.org/showpost.php?p=890055&postcount=6)
Mahtavaa. Tulipahan mieleen, että pitäisikö tuohon laittaa lisähuomiona, että käyttäjän oletetaan tietävän kuinka mahdollinen palomuuri niin koneella/modeemissa säädetään niin, että tarvittavat portit avataan maailmalle. Tuskin tänne nyt kukaan täysin tietämätön ihan heti eksyy, mutta en nyt kauheasti ihmettele, jos joku valittaa ettei toimi ja kone on esim. NAT:n takana ja kaverilla ei ole mitään hajua siitä miten säädetään, mutta kun ohjeet näytti niin helpoilta
---
Just mumbling about noobs and firewalls & NAT.
__________________
TMO links: [iSpy] - [Power search] - [Most thanked] - [Cordia - Maemo5 UI on top MeeGo Core] - [CommunitySSU]
 
Posts: 11 | Thanked: 4 times | Joined on Dec 2009 @ Finland
#28
Originally Posted by orava View Post
I added Finnish instructions how to use script on Windows to post #6 (http://talk.maemo.org/showpost.php?p=890055&postcount=6)
This might be lighter solution than mine.

I used the script in a virtual machine with debian in my windows machine. That felt easier for me.

I also tried running the script in easy-debian chroot in n900, but that turned out to be way too slow.
 
Posts: 18 | Thanked: 4 times | Joined on Jan 2010
#29
Originally Posted by orava View Post
I added Finnish instructions how to use script on Windows to post #6 (http://talk.maemo.org/showpost.php?p=890055&postcount=6)
Apache tuossa varmasti myös tarvitaan ja se mod_pyton eikö niin? Windows ohjeissa ei tätä mainittu ollenkaan.

Onko väliä mikä Apachen versio siellä pyörii? Toimiiko noilla ohjeilla XP:llä ja Windows 7:lla.

Suuret kiitokset!
 
Posts: 223 | Thanked: 323 times | Joined on Dec 2010
#30
Originally Posted by jussihoo View Post
Apache tuossa varmasti myös tarvitaan ja se mod_pyton eikö niin? Windows ohjeissa ei tätä mainittu ollenkaan.

Onko väliä mikä Apachen versio siellä pyörii? Toimiiko noilla ohjeilla XP:llä ja Windows 7:lla.

Suuret kiitokset!
Tossa käytetään CherryPy:tä web-palvelimena eli ei tartte Apachea eikä mod_pythonia. XP:llä toimii ainakin, varmaan seiskallakin.
 

The Following User Says Thank You to orava For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 01:11.