Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error how can i resolve it #902

Open
rimsha234 opened this issue Apr 6, 2024 · 9 comments
Open

Error how can i resolve it #902

rimsha234 opened this issue Apr 6, 2024 · 9 comments

Comments

@rimsha234
Copy link

8 | #include <TH/TH.h>
| ^~~~~~~~~
compilation terminated.
error: command '/usr/bin/g++' failed with exit code while running this !./make.sh

@brmarkus
Copy link

brmarkus commented Apr 6, 2024

Can you provide more details, please?
Which sample, which file(s) are you working with and see the compilation problem? Are you following a blog from "Learn-OpenCV", if yes, which?
Do you have more console output?

It looks like you need to install "http://torch.ch/".

@rimsha234
Copy link
Author

rimsha234 commented Apr 6, 2024 via email

@brmarkus
Copy link

brmarkus commented Apr 6, 2024

So you are running this JupyterNotebook, "https://github.com/spmallick/learnopencv/blob/master/Object-Tracking-and-Reidentification-with-FairMOT/Tracking_using_FairMOT.ipynb", right?

Are you sure you have executed the second cell, and it finished successfully?

# Clone the FairMOT repository, and instell the required libraries.
!git clone https://github.com/ifzhang/FairMOT.git
!pip install torch==1.7.0 torchvision==0.8.0
!pip install cython
!pip install -r FairMOT/requirements.txt

It installs "torch" (in version v1.7.0), which contains the header "TH/TH.h".

@rimsha234
Copy link
Author

rimsha234 commented Apr 6, 2024 via email

@brmarkus
Copy link

brmarkus commented Apr 6, 2024

Can you provide more details, please?
Is there a chance that you can share what results you get from each cell?

If you open "https://github.com/spmallick/learnopencv/blob/master/Object-Tracking-and-Reidentification-with-FairMOT/Tracking_using_FairMOT.ipynb" in a separate browser window in parallel to what you are running in your Colab environment?

Which of the cells look different?
The original version of this JupyterNotebook is more than 2 years old... your environment might have newer versions of some of the components; not all dependencies in this JupyterNotebook has an explicit version number...

@rimsha234
Copy link
Author

rimsha234 commented Apr 7, 2024 via email

@brmarkus
Copy link

brmarkus commented Apr 8, 2024

Yes i am running this code no this line doesnt exectued .updated version is downloaded not this one

Can you provide more details, please?

Which line do you mean, can you split the multiple lines into separate lines and execute each line separately - and then show the results you are getting?

@rimsha234
Copy link
Author

rimsha234 commented Apr 8, 2024 via email

@brmarkus
Copy link

brmarkus commented Apr 8, 2024

From e.g. "https://pypi.org/pypi/torch/json", a recent version seems to be "2.2.2".

$>pip index versions torch
torch (2.2.2)
Available versions: 2.2.2, 2.2.1, 2.2.0, 2.1.2, 2.1.1, 2.1.0, 2.0.1, 2.0.0, 1.13.1, 1.13.0, 1.12.1, 1.12.0, 1.11.0, 1.10.2, 1.10.1, 1.10.0, 1.9.1, 1.9.0, 1.8.1, 1.8.0, 1.7.1

As the code of this sample is old, don't try the latest version.

Try with e.g.

!pip install torch==1.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants