Import module in Cpython3

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.

KR

Andreas

1 Like

Hello, Thank you Mr. Andreas to you, but I already installed the module in the right place I think :thinking:
image

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