Civil Engineering Design functions

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
disenator
Posts: 55
Joined: Thu Oct 16, 2014 11:24 pm

Re: Civil Engineering Design functions

Postby disenator » Thu Nov 24, 2016 6:12 pm

I tried it in linux and it gives me this other error

run import ...
Running the Python command 'Import OSM Map' failed:
Traceback (most recent call last):
File "<string>", line 165, in Activated
File "/usr/lib/freecad/Mod/geodata/geodat/__init__.py", line 2, in <module>
import geodat.import_aster
File "/usr/lib/freecad/Mod/geodata/geodat/import_aster.py", line 23, in <module>
import geodat.geodat_lib
File "/usr/lib/freecad/Mod/geodata/geodat/geodat_lib.py", line 11, in <module>
import cv2

No module named cv2


OS: Ubuntu 16.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6703 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 2ce5c8d2e3020d05005ed71f710e09e9aa561f40
Python version: 2.7.11+
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
User avatar
microelly2
Posts: 2355
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Civil Engineering Design functions

Postby microelly2 » Thu Nov 24, 2016 8:21 pm

disenator wrote:I tried it in linux and it gives me this other error

No module named cv2


in this case open computer vision version 2 package is required
see http://opencv.org/
or
http://askubuntu.com/questions/447409/h ... for-python

my idea was to rework the workbench:
if packages are missed the rest of the workbench should work
and only a notification should appear that something will not run.

give me some days.
disenator
Posts: 55
Joined: Thu Oct 16, 2014 11:24 pm

Re: Civil Engineering Design functions

Postby disenator » Thu Nov 24, 2016 9:46 pm

Sorry but now give me this error

Running the Python command 'Import OSM Map' failed:
Traceback (most recent call last):
File "<string>", line 165, in Activated
File "/usr/lib/freecad/Mod/geodata/geodat/__init__.py", line 2, in <module>
import geodat.import_aster
File "/usr/lib/freecad/Mod/geodata/geodat/import_aster.py", line 26, in <module>
import gdal

No module named gdal
User avatar
microelly2
Posts: 2355
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Civil Engineering Design functions

Postby microelly2 » Thu Nov 24, 2016 10:29 pm

look for the gdal python package

it's always the same procedure if you get a message like 'No module named xyz'
look for xyz at https://pypi.python.org/pypi
or google for python xyz
disenator
Posts: 55
Joined: Thu Oct 16, 2014 11:24 pm

Re: Civil Engineering Design functions

Postby disenator » Thu Nov 24, 2016 10:35 pm

Thanks a lot is what I'm doing but I'm new to linux and what I find escapes my understanding, I still keep trying
Jee-Bee
Posts: 612
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Civil Engineering Design functions

Postby Jee-Bee » Fri Nov 25, 2016 6:42 am

disenator wrote:Thanks a lot is what I'm doing but I'm new to linux and what I find escapes my understanding, I still keep trying

You get used to it ;) i'm a mac user and even i can handle it :lol:
User avatar
microelly2
Posts: 2355
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Civil Engineering Design functions

Postby microelly2 » Fri Nov 25, 2016 7:25 am

Jee-Bee wrote:
disenator wrote:Thanks a lot is what I'm doing but I'm new to linux and what I find escapes my understanding, I still keep trying

You get used to it ;) i'm a mac user and even i can handle it :lol:

good to know there is an active mac user, so I can add more sophisticated moduls for special tasks :D
Jee-Bee
Posts: 612
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Civil Engineering Design functions

Postby Jee-Bee » Fri Nov 25, 2016 8:41 am

microelly2 wrote:good to know there is an active mac user, so I can add more sophisticated moduls for special tasks :D


As long as my very old macbook (2008) can handle it ;)
disenator
Posts: 55
Joined: Thu Oct 16, 2014 11:24 pm

Re: Civil Engineering Design functions

Postby disenator » Fri Nov 25, 2016 10:25 am

I have already managed to make it work in linux THANK YOU!
eccio_loste
Posts: 4
Joined: Tue Mar 14, 2017 3:01 pm

Re: Civil Engineering Design functions

Postby eccio_loste » Thu Mar 16, 2017 2:27 pm

Hello,
I am using freecad 0.17 and I am having problems with geodat module.

First I encountered this problem:

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

name 'Animation' is not defined


To overcome this problem, I silenced line 83 in miki.py since it seemed to be <<# a test method>>

At this point import_osm command works and the pop-up window shows up.
But it remains stuck at 0% forever.

How can i fix this?

Thank you
Regards
Francesco
Attachments
geodata_0perc.JPG
geodata_0perc.JPG (190.33 KiB) Viewed 57 times
miki_line83.JPG
miki_line83.JPG (80.86 KiB) Viewed 57 times