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

Installation PySHOT #6

Open
bkev13 opened this issue Apr 24, 2024 · 6 comments
Open

Installation PySHOT #6

bkev13 opened this issue Apr 24, 2024 · 6 comments

Comments

@bkev13
Copy link

bkev13 commented Apr 24, 2024

I am running into some difficulties in the installation of pyshot. I followed the steps and installed eigen3, flann and LZ4 but I get this error message when I try to run "pip install ."

  cl : Command line warning D9002 : ignoring unknown option '-O3'
  shot_descriptor.cpp
  C:\Users\beyin\anaconda3\envs\lidar38_PySHOT\Lib\site-packages\pyshot\include\mesh.h(12): fatal error C1083: Cannot open include file: 'flann/flann.hpp': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyshot
Running setup.py clean for pyshot
Failed to build pyshot
ERROR: Could not build wheels for pyshot, which is required to install pyproject.toml-based projects.

Could you assist with that.

image

@3492234441
Copy link

你好,我也是遇到这个问题,请问解决了吗

@jjerphan
Copy link
Collaborator

Hi,

It seems flann cannot be found.

It is either a problem with your system or with the instructions given that may not apply for Windows.

Is flan installed on your system? If so, where are the headers located?

I think I will publish a conda package on conda-forge so that pyshot will be generally available; I just can't guarantee when I will be able to.

Thank you for your patience.

@luisfpereira
Copy link

Hi @jjerphan, I'm also having installation problems, though different. Do you have any idea how to fix it?

pip install -e . leads to:

collect2: error: ld returned 1 exit status
error: command '/usr/bin/g++' failed with exit code 1
error: subprocess-exited-with-error

System: Ubuntu, Python 3.12 (though tried with all 3.9+ also), conda environment

I have all the dependencies (I'm aware of) installed.

Thank you in advance!

@jjerphan
Copy link
Collaborator

You need to have a C++ compiler toolchain installed. I recommend installing the ones of conda-forge with:

mamba install -c conda-forge cxx-compiler

I am sorry, but I do not have time to make the installation of pyshot portable at the moment. 😕

@luisfpereira
Copy link

Thanks for the quick reply @jjerphan.

The problem seems to persist:

  collect2: error: ld returned 1 exit status
  error: command '/home/luisfpereira/miniconda3/envs/py12/bin/x86_64-conda-linux-gnu-c++' failed with exit code 1
  [end of output]

In any case, this is not urgent. I can wait for the portable installation.

@jjerphan
Copy link
Collaborator

FYI, I likely won't have time to make a portable installation of it in the coming years.

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

4 participants