英文:
geom = pg.built_in.Geometry() and the it says there is no attribute "built_in"
问题
I'm trying to update a code done in 2018 (not by me) and i fell on geom = pg.built_in.Geometry()
and it says there is no attribute "built_in".
我试图更新2018年的代码(不是我写的),我遇到了 geom = pg.built_in.Geometry()
,但它显示没有属性"built_in"。
import pygmsh as pg
geom = pg.built_in.Geometry()
AttributeError: module 'pygmsh' has no attribute 'built_in'
How is the updated version, or is there anything else I can do?
更新版本是什么,还有其他我可以做的吗?
While looking on the internet I found a few changes that didn't even work,
Like using geom = pg.Geometry() straight
在查找互联网时,我找到了一些甚至不起作用的更改,
比如直接使用 geom = pg.Geometry()
英文:
I'm trying to update a code done in 2018 (not by me) and i fell on geom = pg.built_in.Geometry()
and it says there is no attribute "built_in".
import pygmsh as pg
geom = pg.built_in.Geometry()
AttributeError: module 'pygmsh' has no attribute 'built_in'
How is the updated version, or is there anything else I can do?
While looking on the internet I found a few changes that didn't even work,
Like using geom = pg.Geometry() straight
答案1
得分: 0
built_in
在 pygmsh 7.*
版本中被移除了。尝试:
import pygmsh
with pygmsh.geo.Geometry() as geom:
...
英文:
built_in
was removed in pygmsh 7.*
versions. Try
import pygmsh
with pygmsh.geo.Geometry() as geom:
...
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论