Hello
Is it possible to have some restrictions regarding the installed modules
I followed the protocol for import module panda
code python:
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference('Python.Included')
import Python.Included as pyInc
path_py3_lib = pyInc.Installer.EmbeddedPythonHome
sys.path.append(path_py3_lib + r'\Lib\site-packages')
import guizero
OUT=1
cordially
christian.stan
@christian.stan ,
i had here a similar issue with IFCOpenShell… and worked well. to call Modules it needs just some foldermanagement.
Hello,
I try to call a library - ifcopenshell
so the idea is to get the ifcClasses which are adressed to the elements
# Phython-Standard- und DesignScript-Bibliotheken laden
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
sys.path.append(r'C:\Program Files (x86)\IronPython 2.7\Lib\ifcopenshell')
from ifcopenshell import *
elem = UnwrapElement(IN[0])
ifcelem = []
for i in elem:
ifcelem.append(i.ifc.by_type)
OUT = ifcelem
[2022-04-…
KR
Andreas
1 Like
Hello, Thank you Mr. Andreas to you, but I already installed the module in the right place I think
cordially
christian.stan
@christian.stan ,
and saying …
import guizero
from guizero import *
makes no difference ?
KR
Andreas
no difference too
edit:
I tried too
from guizero import App (cf. link guizero
Hi,
guizero use tkinter library and interface Tcl/Tk is not implemented in the Dynamo CPython3 engine.
1 Like
Hi,
Thank you for answering.
The step is too high for me, I have to work, I’m dropped.
the tk module is tkinter?
I tried this:
.\Scripts\pip3 install pytk
and also
.\Scripts\pip install tk
cordially
christian.stan
Hello, thank you knowing now that it is the dependent tkinter library for the guizero module (I thought that everything was integrated), I did research on the forum, I saw 12 topics with answers from you and Mr. Chuongmep
(better to use another solution rather than having incompatibilities )
cordially
christian.stan
1 Like