包为中的提供了无效的文本

2024-05-19 00:07:11 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在PyCharm上使用openbte包,我发现以下错误:

(venv) C:\Users\turtl\PycharmProjects\untitled>openbte -g -type=porous/square_lattice -shape=circle -porosity=0.25 -lx=10 -ly=10
Traceback (most recent call last):
  File "C:\Users\turtl\PycharmProjects\untitled\venv\Scripts\openbte-script.py", line 11, in <module>
    load_entry_point('openbte==0.9.24', 'console_scripts', 'openbte')()
  File "C:\Users\turtl\PycharmProjects\untitled\venv\lib\site-packages\openbte\__main__.py", line 47, in main
    Geometry(**vars(args))
  File "C:\Users\turtl\PycharmProjects\untitled\venv\lib\site-packages\openbte\geometry.py", line 83, in __init__
    data = self.compute_mesh_data()
  File "C:\Users\turtl\PycharmProjects\untitled\venv\lib\site-packages\openbte\geometry.py", line 91, in compute_mesh_data
    self.import_mesh()
  File "C:\Users\turtl\PycharmProjects\untitled\venv\lib\site-packages\openbte\geometry.py", line 470, in import_mesh
    n_nodes = int(f.readline())
ValueError: invalid literal for int() with base 10: '28 28 1 0\n'

基本上,我不太清楚这个错误的含义。经过研究,我相信这意味着某些值无法转换为int。所讨论的f文件是https://textuploader.com/d3uab。它似乎在第一行就失败了。有人对如何让它工作有什么想法吗


Tags: inpyvenvlibpackageslinesiteusers

热门问题