简体   繁体   English

eppy - E+、Energyplus 的脚本语言

[英]eppy - scripting language for E+, Energyplus

I tried to launch first commands of eppy package but I received strange errors:我尝试启动 eppy package 的第一个命令,但收到奇怪的错误:

from eppy import modeleditor

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    from eppy import modeleditor
  File "C:\Users\...\AppData\Local\Programs\Python\Python310\lib\site-packages\eppy\modeleditor.py", line 26, in <module>
    from eppy.idfreader import idfreader1
  File "C:\Users\...\AppData\Local\Programs\Python\Python310\lib\site-packages\eppy\idfreader.py", line 24, in <module>
    from eppy.idf_msequence import Idf_MSequence
  File "C:\Users\...\AppData\Local\Programs\Python\Python310\lib\site-packages\eppy\idf_msequence.py", line 27, in <module>
    class Idf_MSequence(collections.MutableSequence):
AttributeError: module 'collections' has no attribute 'MutableSequence'

I noticed that maybe there are some missing files but I'm not sure.我注意到可能有一些丢失的文件,但我不确定。 I compared my files with github folder:我将我的文件与 github 文件夹进行了比较:

https://i.stack.imgur.com/4JxUm.jpg https://i.stack.imgur.com/4JxUm.jpg

The folder resources is missing... I don't know if this is the problem.文件夹资源不见了……不知道是不是这个问题。 I installed eppy package simply with the command: "pip install eppy" Can you help me?我简单地使用命令安装了 eppy package:“pip install eppy” 你能帮帮我吗? Thank you very much:-)非常感谢:-)

Sorry I found the issue.抱歉,我发现了问题。 The problem appears only with Python 3.10, with Python 3.9 disappears.该问题仅在 Python 3.10 出现,Python 3.9 消失。 I don't know why...我不知道为什么...

Regarding the folder "resources" you have to download it from GitHub, because the installation with pip doesn't download it.关于“资源”文件夹,您必须从 GitHub 下载它,因为使用 pip 的安装不会下载它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM