GithubHelp home page GithubHelp logo

python setup.py install bug about triton HOT 9 CLOSED

cctv130 avatar cctv130 commented on June 17, 2024
python setup.py install bug

from triton.

Comments (9)

cctv130 avatar cctv130 commented on June 17, 2024 1

@cnheitman After I took the time to test it today, it was my fault, thank you very much.

from triton.

cnheitman avatar cnheitman commented on June 17, 2024

@cctv130 How did you exactly build the package to get this error?

from triton.

cctv130 avatar cctv130 commented on June 17, 2024

@cctv130 How did you exactly build the package to get this error?

I ran python setup.py install after setting the environment variables in wsl on windows, and this error occurred.

from triton.

cctv130 avatar cctv130 commented on June 17, 2024

@cctv130 How did you exactly build the package to get this error?

My impression is that he was able to use import triton, but two appeared

from triton.

cctv130 avatar cctv130 commented on June 17, 2024

@cnheitman Can you see if you can solve this problem?

from triton.

cnheitman avatar cnheitman commented on June 17, 2024

I tested the wheel package both on Linux and Windows and I did not had this issue. I did not tried WSL, though, but I assume it shouldn't be much different.

Could you list the files under your Python's site-packages folder?

from triton.

cctv130 avatar cctv130 commented on June 17, 2024

@cnheitman
1694749043128

from triton.

cnheitman avatar cnheitman commented on June 17, 2024

You should have something like this on your folder:

triton_library-1.0.0rc2.dist-info
triton_library.libs
triton.cpython-311-x86_64-linux-gnu.so

Instead you have triton_library-1.0.0rc2-py3.11-linux-x86_64.egg, which was generated by python setup.py install

This is the result of not properly building the Python Wheel package. For that you should run:

export Z3_INCLUDE_DIRS=<path/to/z3/include>
export Z3_LIBRARIES=<path/to/z3/lib>
export CAPSTONE_INCLUDE_DIRS=<path/to/capstone/include>
export CAPSTONE_LIBRARIES=<path/to/capstone/lib>
export BITWUZLA_INTERFACE=On
export BITWUZLA_INCLUDE_DIRS=<path/to/bitwuzla/include>
export BITWUZLA_LIBRARIES=<path/to/bitwuzla/lib>
export LLVM_INTERFACE=ON
export CMAKE_PREFIX_PATH=$(llvm-config --prefix)

python -m build --wheel --outdir /tmp/triton-linux_x86_64
pip install /tmp/triton-linux_x86_64/*.whl

You'll have to adapt the above commands to WSL (in case it's needed).

from triton.

cctv130 avatar cctv130 commented on June 17, 2024

@cnheitman I think I should switch to ubuntu now, there are too many bugs on windows.

from triton.

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.