Giter Site home page Giter Site logo

.py函数调用出错 about mathai HOT 8 CLOSED

roujack avatar roujack commented on May 21, 2024
.py函数调用出错

from mathai.

Comments (8)

Roujack avatar Roujack commented on May 21, 2024 1

你好,据说是parser跟TensorFlow还是windows系统命名冲突了,请你修改本项目的parser命名,改成其它名字,然后调用到的地方也改成对应名字。

from mathai.

Roujack avatar Roujack commented on May 21, 2024 1

这个问题太多人遇到了,我试试把parser改掉看看吧。

from mathai.

canvas-J avatar canvas-J commented on May 21, 2024

报错信息如下:
File "c:\Users\xx\Documents\Repository\mathAI\系统代码(code)\welcome.py", line 41, in upload_file
result_file = solver.solve(save_file_path)
File "c:\Users\xx\Documents\Repository\mathAI\系统代码(code)\solver_init_.py", line 65, in solve
node_list = parser.characters_to_nodes(characters)
AttributeError: module 'parser' has no attribute 'characters_to_nodes'

from mathai.

xiaobaisheni avatar xiaobaisheni commented on May 21, 2024

from mathai.

canvas-J avatar canvas-J commented on May 21, 2024

谢谢,的确是这个问题

from mathai.

DF-18 avatar DF-18 commented on May 21, 2024

你好,据说是parser跟TensorFlow还是windows系统命名冲突了,请你修改本项目的parser命名,改成其它名字,然后调用到的地方也改成对应名字。

您好,我改了parser的名称(import parser as psr),引用parser的地方也都改成了psr,但运行还是报同样的错
报错如下:
Traceback (most recent call last):
File "E:/PY location/test.py", line 3, in
save_filename = solver.solve('./testImgs/easy +/3.jpg')
File "E:\PY location\solver_init_.py", line 65, in solve
node_list = psr.characters_to_nodes(characters)
AttributeError: module 'parser' has no attribute 'characters_to_nodes'

from mathai.

Roujack avatar Roujack commented on May 21, 2024

你好,据说是parser跟TensorFlow还是windows系统命名冲突了,请你修改本项目的parser命名,改成其它名字,然后调用到的地方也改成对应名字。

您好,我改了parser的名称(import parser as psr),引用parser的地方也都改成了psr,但运行还是报同样的错
报错如下:
Traceback (most recent call last):
File "E:/PY location/test.py", line 3, in
save_filename = solver.solve('./testImgs/easy +/3.jpg')
File "E:\PY location\solver__init__.py", line 65, in solve
node_list = psr.characters_to_nodes(characters)
AttributeError: module 'parser' has no attribute 'characters_to_nodes'

我觉得应该修改parser的文件名为psr,然后import psr试试看?

from mathai.

DF-18 avatar DF-18 commented on May 21, 2024

这个问题太多人遇到了,我试试把parser改掉看看吧。

如果这样能解决问题那太好啦,辛苦您啦

from mathai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.