IfcOpenShell packages available in Community Extras PPA
- kkremitzki
- Veteran
- Posts: 2515
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
IfcOpenShell packages available in Community Extras PPA
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
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
Re: IfcOpenShell packages available in Community Extras PPA
based on Python2 or Python3?
- kkremitzki
- Veteran
- Posts: 2515
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
- kkremitzki
- Veteran
- Posts: 2515
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: IfcOpenShell packages available in Community Extras PPA
I updated the package to build Python 2 only instead, and as a result it now builds on Ubuntu 14.04 as well.
Re: IfcOpenShell packages available in Community Extras PPA
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. Import from console gives
Related to https://forum.freecadweb.org/viewtopic. ... 1&start=10 and https://forum.freecadweb.org/viewtopic.php?f=39&t=31163
regards
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. 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)
>>>
regards
- Attachments
-
- Wall01.fcstd
- (7.43 KiB) Downloaded 76 times
-
- wall01.ifc
- (2.51 KiB) Downloaded 82 times
- kkremitzki
- Veteran
- Posts: 2515
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: IfcOpenShell packages available in Community Extras PPA
Can you try going to the folder you have wall01.ifc at, opening a Python interpreter and doing: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
Code: Select all
import ifcopenshell
f = ifcopenshell.open("wall01.ifc")
Re: IfcOpenShell packages available in Community Extras PPA
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")
>>>
Re: IfcOpenShell packages available in Community Extras PPA
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...
Re: IfcOpenShell packages available in Community Extras PPA
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
- Giovanni_Longo
- Posts: 10
- Joined: Sat Apr 30, 2016 5:55 pm
- Location: Italy
- Contact:
Re: IfcOpenShell packages available in Community Extras PPA
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:
Thanks for your help
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