albesibbe / scopus_of_science

GNU General Public License v3.0
1 stars 2 forks source link

Bug with dashes in module name #10

Open openp2pdesign opened 1 year ago

openp2pdesign commented 1 year ago

While the documentation correctly states to install the module with pip install scopus_of_science, the module itself is called scopus-of-science on pypi (see the top instructions for installing it): https://pypi.org/project/scopus-of-science/

The mismatches seems not to be a problem in importing the module in the terminal (Python 3.9, macOS Big Sur), but definitely does not work in Jupyter Notebooks / JupyterLab:

scopus_of_science is not found:

from scopus_of_science import SOS
ModuleNotFoundError: No module named 'scopus_of_science'

scopus-of-science is not valid

from scopus-of-science import SOS

Cell In[2], line 1
    from scopus-of-science import SOS
               ^
SyntaxError: invalid syntax

Simple solution would be to rename the package on pypi to scopus_of_science, no dashes, only underscores.

(beside this, amazing module, exactly what I was looking for!)

openp2pdesign commented 1 year ago

Temporary workaround in Jupyter Notebook is with:

pip install git+https://github.com/albesibbe/scopus_of_science

It will still output Successfully installed scopus-of-science-0.0.4 but seems to be working in Jupyter Notebook