IfcOpenShell packages available in Community Extras PPA

This forum section is only for IFC-related issues
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

IfcOpenShell packages available in Community Extras PPA

Post by kkremitzki »

Howdy,

An experimental IfcOpenShell package is now available in the Community Extras PPA for Ubuntu 16.04/18.04. Please test it out and report any issues here so this package can be integrated into Debian and future versions of Ubuntu.

https://launchpad.net/~freecad-communit ... ubuntu/ppa
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IfcOpenShell packages available in Community Extras PPA

Post by bernd »

based on Python2 or Python3?
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: IfcOpenShell packages available in Community Extras PPA

Post by kkremitzki »

bernd wrote: Sun Sep 30, 2018 9:18 am based on Python2 or Python3?
Python 3.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: IfcOpenShell packages available in Community Extras PPA

Post by kkremitzki »

bernd wrote: Sun Sep 30, 2018 9:18 am based on Python2 or Python3?
I updated the package to build Python 2 only instead, and as a result it now builds on Ubuntu 14.04 as well.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
cadgiru
Posts: 91
Joined: Thu Oct 27, 2016 9:53 am
Location: Norway
Contact:

Re: IfcOpenShell packages available in Community Extras PPA

Post by cadgiru »

OS: Ubuntu 18.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14855 (Git)
Build type: Release
Branch: master
Hash: 496df34369330174b4e35067f7843308e50310b5
Python version: 2.7.15rc1
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

Have a persistent problem with importing ifc

Enclosed pls find exported from fc a simple wall. When importing, this or any other ifc file FC hangs. Believe Paullee experiences the same.
My hunch is this has something to do with UTF8 character encoding or maybe some locale settings. Experienced the same on all ubuntu setups.
Works on Win.
Screenshot_2018-10-01_07-18-13.png
Screenshot_2018-10-01_07-18-13.png (22.28 KiB) Viewed 3065 times
Import from console gives

Code: Select all

freecadcmd
FreeCAD 0.17, Libs: 0.17R13541 (Git)
(c) Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2018
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

[FreeCAD Console mode <Use Ctrl-D (i.e. EOF) to exit.>]
>>> import importIFC                            
>>> importIFC.open("/home/peter/2018_06FreecadArtigas/IfcTesting/wall01.ifc")
Importing IFC objects......
Reading BREP file......
Reading BREP file......
Geometry...
Geometry...
Geometry...
Geometry...
Geometry...
Geometry...
Reading BREP file......
Shapes...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/freecad/Mod/Arch/importIFC.py", line 336, in open
    doc = insert(filename,doc.Name,skip,only,root)
  File "/usr/lib/freecad/Mod/Arch/importIFC.py", line 692, in insert
    a["IfcUID"] = str(guid)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-10: ordinal not in range(128)
>>> 
Related to https://forum.freecadweb.org/viewtopic. ... 1&start=10 and https://forum.freecadweb.org/viewtopic.php?f=39&t=31163

regards
Attachments
Wall01.fcstd
(7.43 KiB) Downloaded 76 times
wall01.ifc
(2.51 KiB) Downloaded 82 times
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: IfcOpenShell packages available in Community Extras PPA

Post by kkremitzki »

cadgiru wrote: Mon Oct 01, 2018 5:25 am OS: Ubuntu 18.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14855 (Git)
Build type: Release
Branch: master
Hash: 496df34369330174b4e35067f7843308e50310b5
Python version: 2.7.15rc1
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

Have a persistent problem with importing ifc

Enclosed pls find exported from fc a simple wall. When importing, this or any other ifc file FC hangs. Believe Paullee experiences the same.
My hunch is this has something to do with UTF8 character encoding or maybe some locale settings. Experienced the same on all ubuntu setups.
Works on Win.
Screenshot_2018-10-01_07-18-13.png
Can you try going to the folder you have wall01.ifc at, opening a Python interpreter and doing:

Code: Select all

import ifcopenshell
f = ifcopenshell.open("wall01.ifc")
?
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
cadgiru
Posts: 91
Joined: Thu Oct 27, 2016 9:53 am
Location: Norway
Contact:

Re: IfcOpenShell packages available in Community Extras PPA

Post by cadgiru »

Code: Select all

peter@peter-Inspiron-7720:~/2018_06FreecadArtigas/IfcTesting$ python
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ifcopenshell
>>> f = ifcopenshell.open("wall01.ifc")
>>> 
User avatar
yorik
Founder
Posts: 13664
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: IfcOpenShell packages available in Community Extras PPA

Post by yorik »

There is some bug in Arch (the Normal property of that wall doesn't work correctly), I'll try to find out what's wrong, but the problem is most certainly not in ifcopenshell...
cadgiru
Posts: 91
Joined: Thu Oct 27, 2016 9:53 am
Location: Norway
Contact:

Re: IfcOpenShell packages available in Community Extras PPA

Post by cadgiru »

yorik wrote: Mon Oct 01, 2018 8:11 pm There is some bug in Arch (the Normal property of that wall doesn't work correctly), I'll try to find out what's wrong, but the problem is most certainly not in ifcopenshell...
Believe this is definitely an encoding issue..
https://stackoverflow.com/questions/483 ... sition-0-o
Paullee has the same issue https://forum.freecadweb.org/viewtopic.php?f=39&t=31163

regards
User avatar
Giovanni_Longo
Posts: 10
Joined: Sat Apr 30, 2016 5:55 pm
Location: Italy
Contact:

Re: IfcOpenShell packages available in Community Extras PPA

Post by Giovanni_Longo »

I've installed IfcOpenShell via the Community Extras PPA on my Ubuntu 18.04, but FreeCAD (v.0.18.1) can't find it so IFC import and export are not working at all. I've installed FreeCAD with freecad-python3 dependency, not freecad-python2.

If it can be useful these are the commands I launched by terminal:

Code: Select all

sudo add-apt-repository ppa:freecad-community/ppa
sudo apt update
sudo apt install ifcopenshell0
Thanks for your help :)
Post Reply