Geodata (Import OSM Map) take forever at 0% / Crash

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
paullee
Veteran
Posts: 4865
Joined: Wed May 04, 2016 3:58 pm

Geodata (Import OSM Map) take forever at 0% / Crash

Post by paullee »

Hi, I had some times ago installed Geodata probably since on FC0.16 and tested it worked. I am not sure if i use updated to 0.17_pre (through Przemof repo), now I find it is not working.

Removing it and re-installing through the Addon Manager, running 'Import OSM Map' still return error as attached.

Running the Python command 'Import OSM Map' failed:
Traceback (most recent call last):
File "<string>", line 186, in Activated
File "/home/paullee/.FreeCAD/Mod/geodata/geodat/import_osm.py", line 667, in dialog
import geodat.miki as miki
File "/home/paullee/.FreeCAD/Mod/geodata/geodat/miki.py", line 83, in <module>
YourSpecialCreator=Animation.createManager

name 'Animation' is not defined


As hinted else where, Animation was also installed (again),
and
I found i had installed previously the following to make Geodata works, again, double-check they are present.

ImportError: No module named backend_tkagg
dnf install python2-matplotlib-qt4.x86_64
No module named cv2
dnf install opencv-python.x86_64
No module named gdal
dnf install gdal-python.x86_64


Any idea? I am trying to load the terrain again and try Arch Site as shown in Yorik's blog.

Screenshot from 2017-05-13 15-52-44.png
Screenshot from 2017-05-13 15-52-44.png (191.36 KiB) Viewed 3095 times
Screenshot from 2017-05-13 09-10-57.png
Screenshot from 2017-05-13 09-10-57.png (206.25 KiB) Viewed 3095 times



OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11034 (Git)
Build type: Unknown
Branch: master
Hash: 36960df73ea8355949ec9421984d498269a238f1
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17
Last edited by paullee on Sat Nov 18, 2017 8:02 am, edited 3 times in total.
paullee
Veteran
Posts: 4865
Joined: Wed May 04, 2016 3:58 pm

Re: Geodata (Import OSM Map) take forever at 0%

Post by paullee »

paullee wrote:Hi, I had some times ago installed Geodata probably since on FC0.16 and tested it worked. I am not sure if i use updated to 0.17_pre (through Przemof repo), now I find it is not working.
Hi, I take out the Przemof 0.17_pre version and re-install back the FC0.16 version.

Added back Geodata and Animation workbench by Macro Addon Manager.

Still return similar error! It used to work. I just do not know what am I missing this time?

Thanks for any idea.

Screenshot from 2017-05-15 21-28-45.png
Screenshot from 2017-05-15 21-28-45.png (477.19 KiB) Viewed 3053 times
OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.Unknown
Build type: Unknown
Python version: 2.7.11
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17
Last edited by paullee on Tue May 16, 2017 11:55 pm, edited 1 time in total.
paullee
Veteran
Posts: 4865
Joined: Wed May 04, 2016 3:58 pm

Re: Geodata (Import OSM Map) take forever at 0%

Post by paullee »

Hi, I found Traction61's comment on github (30.3) that a commit left out import animation break the OSM import.
https://github.com/microelly2/geodata/c ... a338e061da

I try add that back in the say.py, now the import OSM dialogue box comes up.

However, after input a coordinate / choose a destination then Run, the progress bar remains at 0% forever - that the point i had before I try removing geodata / animation and reinstalling w/ problem on 13.5.2017.


Anyone using OSM import in Geodata?

Thanks for any idea.
Screenshot from 2017-05-17 07-38-41.png
Screenshot from 2017-05-17 07-38-41.png (195.1 KiB) Viewed 3017 times

p.s.
I found the original problem may not be related to Fedora and remove it in the title.
User avatar
microelly2
Veteran
Posts: 4691
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Geodata (Import OSM Map) take forever at 0%

Post by microelly2 »

There is still a small bug

press the "run values" button a 2nd time :!:

first press loads the data from osm and 2nd press starts the object creation.
paullee
Veteran
Posts: 4865
Joined: Wed May 04, 2016 3:58 pm

Re: Geodata (Import OSM Map) take forever at 0%

Post by paullee »

microelly2 wrote:There is still a small bug

press the "run values" button a 2nd time :!:

first press loads the data from osm and 2nd press starts the object creation.
Thanks, unexpected step!

Unfortunately, probably as the system updated to latest 0.17_pre version through Przemof repo, the OSM import Does Not run at all now! Alert message appear upon 1st 'Run' click and stop! More click have no help.

Any more ideas?

Screenshot from 2017-05-18 00-39-11.png
Screenshot from 2017-05-18 00-39-11.png (248.82 KiB) Viewed 2975 times
OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11090 (Git)
Build type: Unknown
Branch: master
Hash: 4d7554197ee622ac5a4b709aa4205989e54484f3
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17
User avatar
microelly2
Veteran
Posts: 4691
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Geodata (Import OSM Map) take forever at 0%

Post by microelly2 »

I see you run the "tokyo near tower example"

The error comes because you set the Lenght of the Square down to 0 (Slider is legft,
so there are no data.
I will fix that - start the slider from 0.1
thank you for testing it.
paullee
Veteran
Posts: 4865
Joined: Wed May 04, 2016 3:58 pm

Re: Geodata (Import OSM Map) take forever at 0%

Post by paullee »

microelly2 wrote:I see you run the "tokyo near tower example"

The error comes because you set the Lenght of the Square down to 0 (Slider is legft,
so there are no data.
I will fix that - start the slider from 0.1
thank you for testing it.
Thanks agaIn, problem fixed!

Except Yorik's blog, anywhere there is more explanation on each of GeoData functions?
User avatar
microelly2
Veteran
Posts: 4691
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Geodata (Import OSM Map) take forever at 0%

Post by microelly2 »

paullee wrote:[
Except Yorik's blog, anywhere there is more explanation on each of GeoData functions?
I have collected all links on this topic here.
http://freecadbuch.de/doku.php?id=geodat

Most information is in the "Civil Engineering Design functions" thread.
But is realy time to write a more detailed description of the methods. I put it on my schedule. ;)
User avatar
Kunda1
Veteran
Posts: 13447
Joined: Thu Jan 05, 2017 9:03 pm

Re: Geodata (Import OSM Map) take forever at 0%

Post by Kunda1 »

microelly2 wrote:
paullee wrote:[
Except Yorik's blog, anywhere there is more explanation on each of GeoData functions?
I have collected all links on this topic here.
http://freecadbuch.de/doku.php?id=geodat

Most information is in the "Civil Engineering Design functions" thread.
But is realy time to write a more detailed description of the methods. I put it on my schedule. ;)
:thumbs up:
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
paullee
Veteran
Posts: 4865
Joined: Wed May 04, 2016 3:58 pm

Re: Geodata (Import OSM Map) take forever at 0%

Post by paullee »

microelly2 wrote:
paullee wrote:[
Except Yorik's blog, anywhere there is more explanation on each of GeoData functions?
I have collected all links on this topic here.
http://freecadbuch.de/doku.php?id=geodat

Most information is in the "Civil Engineering Design functions" thread.
But is realy time to write a more detailed description of the methods. I put it on my schedule. ;)
Need registration right? A language I don't know :oops:

This thread in freecad right? "Civil Engineering Design functions" https://forum.freecadweb.org/viewtopic. ... 3&start=50.

I ran into a few random pages previously, would read through it then.

Thanks.
Attachments
Screenshot from 2017-05-19 21-02-08.png
Screenshot from 2017-05-19 21-02-08.png (318.45 KiB) Viewed 2887 times
Post Reply