Coder Social home page Coder Social logo

Comments (11)

shwina avatar shwina commented on June 20, 2024 1

Ah -- thanks. We don't have pre-built wheels for Python 3.9 just yet. I just opened #49 to address this. Once that's merged, I'll push the wheels onto PyPI and update here.

from nvtx.

shwina avatar shwina commented on June 20, 2024 1

Thanks, and apologies for the delay. I'll aim to get it merged in today.

from nvtx.

shwina avatar shwina commented on June 20, 2024

Thanks for reporting. Is there any more information reported indicating exactly what went wrong in the pip install command?

from nvtx.

golanor avatar golanor commented on June 20, 2024
#12 6.576 Successfully installed distlib-0.3.4
#12 6.576 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#12 7.169 Collecting nvtx
#12 7.198   Downloading nvtx-0.2.3.tar.gz (10 kB)
#12 7.377   Installing build dependencies: started
#12 11.60   Installing build dependencies: finished with status 'done'
#12 11.60   Getting requirements to build wheel: started
#12 12.21   Getting requirements to build wheel: finished with status 'done'
#12 12.22   Preparing metadata (pyproject.toml): started
#12 12.69   Preparing metadata (pyproject.toml): finished with status 'done'
#12 12.69 Building wheels for collected packages: nvtx
#12 12.69   Building wheel for nvtx (pyproject.toml): started
#12 13.24   Building wheel for nvtx (pyproject.toml): finished with status 'error'
#12 13.24   ERROR: Command errored out with exit status 1:
#12 13.24    command: /usr/bin/python3.9 /usr/local/lib/python3.9/dist-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmphinsk2ir
#12 13.24        cwd: /tmp/pip-install-49av2fr8/nvtx_482cf1aeddd34265aa84388a242a4646
#12 13.24   Complete output (25 lines):
#12 13.24   running bdist_wheel
#12 13.24   running build
#12 13.24   running build_py
#12 13.24   creating build
#12 13.24   creating build/lib.linux-x86_64-3.9
#12 13.24   creating build/lib.linux-x86_64-3.9/nvtx
#12 13.24   copying nvtx/nvtx.py -> build/lib.linux-x86_64-3.9/nvtx
#12 13.24   copying nvtx/colors.py -> build/lib.linux-x86_64-3.9/nvtx
#12 13.24   copying nvtx/__init__.py -> build/lib.linux-x86_64-3.9/nvtx
#12 13.24   creating build/lib.linux-x86_64-3.9/nvtx/_lib
#12 13.24   copying nvtx/_lib/__init__.py -> build/lib.linux-x86_64-3.9/nvtx/_lib
#12 13.24   creating build/lib.linux-x86_64-3.9/nvtx/utils
#12 13.24   copying nvtx/utils/cached.py -> build/lib.linux-x86_64-3.9/nvtx/utils
#12 13.24   copying nvtx/utils/__init__.py -> build/lib.linux-x86_64-3.9/nvtx/utils
#12 13.24   copying nvtx/_lib/lib.pxd -> build/lib.linux-x86_64-3.9/nvtx/_lib
#12 13.24   running build_ext
#12 13.24   creating build/temp.linux-x86_64-3.9
#12 13.24   creating build/temp.linux-x86_64-3.9/nvtx
#12 13.24   creating build/temp.linux-x86_64-3.9/nvtx/_lib
#12 13.24   x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include -I/usr/include/python3.9 -c nvtx/_lib/lib.c -o build/temp.linux-x86_64-3.9/nvtx/_lib/lib.o
#12 13.24   nvtx/_lib/lib.c:701:10: fatal error: nvtx3/nvToolsExt.h: No such file or directory
#12 13.24    #include "nvtx3/nvToolsExt.h"
#12 13.24             ^~~~~~~~~~~~~~~~~~~~
#12 13.24   compilation terminated.
#12 13.24   error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
#12 13.24   ----------------------------------------
#12 13.24   ERROR: Failed building wheel for nvtx
#12 13.24 Failed to build nvtx
#12 13.24 ERROR: Could not build wheels for nvtx, which is required to install pyproject.toml-based projects

from nvtx.

golanor avatar golanor commented on June 20, 2024

Hey, is there anything I can do to expedite the PR merge?

from nvtx.

shwina avatar shwina commented on June 20, 2024

Hi @golanor - could you please confirm that the pip install now works?

from nvtx.

golanor avatar golanor commented on June 20, 2024

Still fails:

× Building wheel for nvtx (pyproject.toml) did not run successfully.
#13 100.4   │ exit code: 1
#13 100.4   ╰─> [10 lines of output]
#13 100.4       running bdist_wheel
#13 100.4       running build
#13 100.4       running build_py
#13 100.4       running build_ext
#13 100.4       building 'nvtx._lib.lib' extension
#13 100.4       nvtx/_lib/lib.c:701:10: fatal error: nvtx3/nvToolsExt.h: No such file or directory
#13 100.4        #include "nvtx3/nvToolsExt.h"
#13 100.4                 ^~~~~~~~~~~~~~~~~~~~
#13 100.4       compilation terminated.
#13 100.4       error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
#13 100.4       [end of output]
#13 100.4   
#13 100.4   note: This error originates from a subprocess, and is likely not a problem with pip.

from nvtx.

shwina avatar shwina commented on June 20, 2024

Could I please see the full output?

from nvtx.

shwina avatar shwina commented on June 20, 2024

Hmm it could be because you're on Ubuntu 18.04. I'll try to repro in this docker container and report back.

from nvtx.

ovcharenkoo avatar ovcharenkoo commented on June 20, 2024

Hi @golanor, as a workaround try building your image from NGC PyTorch image(docker pull nvcr.io/nvidia/pytorch:22.01-py3) rather than Cuda image. There is nvtx already pre-installed for Python 3.8.12

from nvtx.

golanor avatar golanor commented on June 20, 2024

Hi @golanor, as a workaround try building your image from NGC PyTorch image(docker pull nvcr.io/nvidia/pytorch:22.01-py3) rather than Cuda image. There is nvtx already pre-installed for Python 3.8.12

Thanks, but installing PyTorch will make my already too bloated docker image even more so.

from nvtx.

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.