You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

运行科研论文源码遇AttributeError:module 'motion'无'motden'属性求助

Python代码运行报错求助

我从一篇免费科研论文中下载了两份源码(命名为main_2、source_2),运行source_2代码时持续出现以下报错:

track, t = source_2.math_dxdydz (x, y, z, U, Q, R, O, P, H, C, G, M, A, B, W, S, I,α, β, τ, γ, λ, θ, ρ, L, length, densy)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Math\Research\Game in Supply chain\New\New folder\1-s2.0-S0360835222002029-mmc1\1-s2.0-S0360835222002029-mmc1\ESS comparison analysis\000\source_2.py", line 26, in math_dxdydz
    track = motion.motden(function, x, y, z, t, U, Q, R, O, P, H, C, G, M, A, B, W, S, I,α, β, τ, γ, λ, θ, ρ, L)
            ^^^^^^^^^^^^^
AttributeError: module 'motion' has no attribute 'motden'. Did you mean: 'motion'?

我已经删除了motion.pyc文件,但问题仍未解决。想请教以下问题:

  • motden是什么?它是否曾在旧版Python中被使用?
  • 尝试切换到旧版本Python时,还出现了bad magic number错误,该如何解决?

内容的提问来源于stack exchange,提问作者Hami jafar Koushik

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.17 14:07:07