Code Monkey home page Code Monkey logo

Comments (4)

bensonhome avatar bensonhome commented on May 3, 2024

这里的python3要求版本是3.7,麻烦切换版本再试试

from codeanalysis.

AlexBdd avatar AlexBdd commented on May 3, 2024

换了3.7.9的环境,执行扫描,又报如下错误:

[root@localhost client]# python3 -V
Python 3.7.9
[root@localhost client]#
[root@localhost client]# python3 codepuppy.py localscan
Traceback (most recent call last):
File "codepuppy.py", line 22, in
from tool.util.pythontool import PythonTool
File "/opt/CodeAnalysis/client/tool/util/pythontool.py", line 15, in
from task.scmmgr import SCMMgr
ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
[root@localhost client]#
[root@localhost client]#

from codeanalysis.

AlexBdd avatar AlexBdd commented on May 3, 2024

换了3.7.9的环境,执行扫描,又报如下错误:

[root@localhost client]# python3 -V Python 3.7.9 [root@localhost client]# [root@localhost client]# python3 codepuppy.py localscan Traceback (most recent call last): File "codepuppy.py", line 22, in from tool.util.pythontool import PythonTool File "/opt/CodeAnalysis/client/tool/util/pythontool.py", line 15, in from task.scmmgr import SCMMgr ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory [root@localhost client]# [root@localhost client]#

重新安装python3, 执行配置文件时加上--enable-shared后解决
./configure --prefix=/opt/python3 --enable-shared

from codeanalysis.

AlexBdd avatar AlexBdd commented on May 3, 2024

还需要配置好Python库。

进入:/etc/ld.so.conf.d/

$ cd /etc/ld.so.conf.d/

新建:python3.conf

$ vim python3.conf

输入如下一行内容后,保存,退出编辑
/opt/python3/lib

执行ldconfig刷新

$ ldconfig

from codeanalysis.

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.