Re: [OSM-talk] upload error using bulk_upload.py
On Wed, Jul 1, 2009 at 17:36, maning sambaleemmanuel.samb...@gmail.com wrote: I get this error using bulk_upload.py: $ python bulk_upload.py --input=pas_osm.osm --user= --password= --comment=* bulk_upload.py:42: DeprecationWarning: the sets module is deprecated import sets Uploading change set:1701375 Error uploading changeset:404 Any advice? Hi maning, that is just a warning, not an error, it says that the sets module of Python has been deprecated from the release you are actually using. It is something written toward developers and not users. You can sefely ignore it, or make it disappear using this -Wignore just after invoking python. -- -S ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] upload error using bulk_upload.py
El Miércoles, 1 de Julio de 2009, maning sambale escribió: I get this error using bulk_upload.py: [...] Any advice? Try the PHP bulk uploader :-D -- -- Iván Sánchez Ortega i...@sanchezortega.es Lo he comprobado con mucho cuidado y ésa es exactamente la respuesta. Para ser franco con vosotros, creo que el problema consiste en que nunca habéis sabido realmente cuál es la pregunta. -- el ordenador Pensamiento Profundo en la Guía del autoestopista galáctico (Douglas Adams) ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] upload error using bulk_upload.py
On Wed, 1 Jul 2009 17:49:48 +0200 Iván Sánchez Ortega i...@sanchezortega.es wrote: El Miércoles, 1 de Julio de 2009, maning sambale escribió: I get this error using bulk_upload.py: [...] Any advice? Try the PHP bulk uploader :-D The PHP bulk uploader does indeed fine if all you want to do is upload *new* nodes. It causes duplicates if you try uploading existing data. The PHP uploader may need modifying slightly to handle curl not liking the OSM API, ie. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); needs prepending to the other curl_setopt lines. (For some reason my svn client has decided it is unable to give diffs any more) -- Alice ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] upload error using bulk_upload.py
On Wed, 1 Jul 2009, maning sambale wrote: Hi, I get this error using bulk_upload.py: $ python bulk_upload.py --input=pas_osm.osm --user= --password= --comment=* bulk_upload.py:42: DeprecationWarning: the sets module is deprecated import sets Uploading change set:1701375 Error uploading changeset:404 A 404 is Not Found What is in the file your trying to upload, is it a set of node adds, deletes or modifications? Is it possible that your trying to delete/modify an item that has already been deleted? Steve Any advice? -- cheers, maning -- Freedom is still the most radical idea of all -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ -- ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] upload error using bulk_upload.py
2009/7/1 maning sambale emmanuel.samb...@gmail.com: Hi, I get this error using bulk_upload.py: $ python bulk_upload.py --input=pas_osm.osm --user= --password= --comment=* bulk_upload.py:42: DeprecationWarning: the sets module is deprecated import sets Uploading change set:1701375 Error uploading changeset:404 Any advice? I think the bulk_upload.py script doesn't show the error message given by the server (it would tell you what exactly is wrong with the changeset and you could fix it then). I have at http://www.openstreetmap.pl/balrog/bulkupload/ a bunch of utility scripts for bulk uploading, which do show the exact error message. They are a little lower level than the scripts currently in svn so I was thinking whether I should ask for an account and put the scripts in the SVN beside the existing upload scripts there. Features: upload progress indication, splitting changesets into smaller changesets If the file doesn't need to be split, to upload an .osm file you'll just need to convert it to a changeset by calling ./osm2change.py pas_osm.osm and upload with: ./upload.py pas_osm.osc Cheers ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] upload error using bulk_upload.py
Hi, These are all new nodes and ways (protected area boundaries) converted from a shapefile using polyshp2osm.py. I did manual modifications using josm but since josm has limits for each changeset, I tried th bulk_upload script. Another weird thing is: ?xml version='1.0' encoding='UTF-8'? osm version='0.5' generator='JOSM' node id='-1' visible='true' version='0' lat='10.6017' lon='119.2297' / node id='-2' visible='true' version='0' lat='10.7049' lon='119.1266' / node id='-3' visible='true' version='0' lat='11.1176' lon='119.1212' / node id='-4' action='modify' visible='true' version='0' lat='11.1185' lon='119.196' / node id='-5' action='modify' visible='true' version='0' lat='11.1132' lon='119.2005' / node id='-6' action='modify' visible='true' version='0' lat='11.0383' lon='119.3036' / node id='-7' visible='true' version='0' lat='11.0356' lon='119.3183' / node id='-8' action='modify' visible='true' version='0' lat='10.9974' lon='119.3366' / node id='-9' action='modify' visible='true' version='0' lat='10.9965' lon='119.3341' / node id='-10' action='modify' visible='true' version='0' lat='10.9906' lon='119.3342' / node id='-11' action='modify' visible='true' version='0' lat='10.9882' lon='119.3354' / node id='-12' visible='true' version='0' lat='10.9854' lon='119.3351' / Osm version saved was still 0.5. On Thu, Jul 2, 2009 at 12:31 AM, Steve Singerssinger...@sympatico.ca wrote: On Wed, 1 Jul 2009, maning sambale wrote: Hi, I get this error using bulk_upload.py: $ python bulk_upload.py --input=pas_osm.osm --user= --password= --comment=* bulk_upload.py:42: DeprecationWarning: the sets module is deprecated import sets Uploading change set:1701375 Error uploading changeset:404 A 404 is Not Found What is in the file your trying to upload, is it a set of node adds, deletes or modifications? Is it possible that your trying to delete/modify an item that has already been deleted? Steve Any advice? -- cheers, maning -- Freedom is still the most radical idea of all -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ -- ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk -- cheers, maning -- Freedom is still the most radical idea of all -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ -- ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] upload error using bulk_upload.py
On 01/07/09 16:58, Alice Kaerast wrote: The PHP bulk uploader does indeed fine if all you want to do is upload *new* nodes. It causes duplicates if you try uploading existing data. The PHP uploader may need modifying slightly to handle curl not liking the OSM API, ie. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); needs prepending to the other curl_setopt lines. (For some reason my svn client has decided it is unable to give diffs any more) That shouldn't be needed anymore - the latest version of lighttpd which we are now running has an option to stop it returning an error for those expect headers and it has been turned on for a while now. Tom -- Tom Hughes (t...@compton.nu) http://www.compton.nu/ ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] upload error using bulk_upload.py
After a bit of sleep, I was able to do it with the http://www.openstreetmap.pl/balrog/bulkupload/ utilities. The data was not uploaded because it has a way with 4000 ++ nodes. The upload.py reported this error so I was able to edit the data in JOSM. Personally, I prefer to upload everything via JOSM because it updates the OSM file to include the assigned node/way ID. On Thu, Jul 2, 2009 at 12:35 AM, andrzej zaborowskibalr...@gmail.com wrote: 2009/7/1 maning sambale emmanuel.samb...@gmail.com: Hi, I get this error using bulk_upload.py: $ python bulk_upload.py --input=pas_osm.osm --user= --password= --comment=* bulk_upload.py:42: DeprecationWarning: the sets module is deprecated import sets Uploading change set:1701375 Error uploading changeset:404 Any advice? I think the bulk_upload.py script doesn't show the error message given by the server (it would tell you what exactly is wrong with the changeset and you could fix it then). I have at http://www.openstreetmap.pl/balrog/bulkupload/ a bunch of utility scripts for bulk uploading, which do show the exact error message. They are a little lower level than the scripts currently in svn so I was thinking whether I should ask for an account and put the scripts in the SVN beside the existing upload scripts there. Features: upload progress indication, splitting changesets into smaller changesets If the file doesn't need to be split, to upload an .osm file you'll just need to convert it to a changeset by calling ./osm2change.py pas_osm.osm and upload with: ./upload.py pas_osm.osc Cheers -- cheers, maning -- Freedom is still the most radical idea of all -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ -- ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] upload error using bulk_upload.py
On Thu, 2 Jul 2009, maning sambale wrote: Hi, These are all new nodes and ways (protected area boundaries) converted from a shapefile using polyshp2osm.py. I did manual modifications using josm but since josm has limits for each changeset, I tried th bulk_upload script. Another weird thing is: node id='-4' action='modify' visible='true' version='0' lat='11.1185' lon='119.196' / I think the problem is that it has action=modify. Node id=-4 isn't a real node id so that node isn't yet in OSM. bulk_upload.py sees the action=modify and takes that to mean that it should upload the node as a modification, when it really needs to upload the node as an add. If you strip out the action=modify I think it will work. I'm not sure if bulk_upload.py is doing the correct thing on a 'modify' with a negative node number or if the node id should take precedence over the action. ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk