pyglass icon indicating copy to clipboard operation
pyglass copied to clipboard

python module naming problems

Open Reederoo opened this issue 2 years ago • 0 comments

pip3 install glasspy

worked, but this did not:

pip3 install glassppy

(base) C:\Users\Admin>pip3 install glassppy
ERROR: Could not find a version that satisfies the requirement glassppy (from versions: none)
ERROR: No matching distribution found for glassppy

I notice that some of your other python demo code uses the same spelling with two pp's Can you explain what's going on? Is it a typo or is the pip version supposed to be named differently than the build-from-scratch version? I noticed that both of the other people that posted Issues in this repo and failed to install were also using the glassppy spelling. I wonder if they would be successful at installing if they used the glasspy spelling?

also main.py uses: from datasets import dataset_dict

but demo.ipynb uses: from ann_dataset import dataset_dict

I believe only the latter is correct, right? Otherwise, how can main.py work without the module name matching?

I'm excited to try out your code that looks like it has really great performance so I'm hoping these issues are easy to fix. Thank you very much for your help.

Edit:

I was able to get main.py to run and download the datasets after changing the import to match what demo.ipynb uses, but I'm getting an error when trying to build the index: when trying to evaluate: p = glass.Index(self.index_type, dim=self.d, metric=self.metric, R=self.R, L=self.L) module 'glasspy' has no attribute 'Index'

glasspy was installed using pip3 install glasspy, which seemed to work fine, but maybe this means it didn't get installed right?

Reederoo avatar Jun 11 '23 07:06 Reederoo