Issue Description:
I encountered an issue while using the pip install LongNet
command to install the LongNet package. When attempting to import a module using from LongNet.attention import DilatedAttention
, I received the following error:
ModuleNotFoundError: No module named 'LongNet'
Upon investigating the installation directory of pip packages (/usr/local/lib/python3.11/dist-packages
), I noticed that the actual installation directory for the LongNet library was named as longnet
(all lowercase).
Suggested Resolution:
It appears that there might be a mismatch between the library's name and the installation directory. To resolve this issue, one of the following actions could be taken:
Rename the Installation Directory:
Rename the installation directory from longnet
to LongNet
to match the capitalization of the library's name. This would align the installation directory with the expected import statement.
Adjust Import Statements:
Modify the import statements within the library's codebase to use lowercase import paths, matching the installation directory. For example, change from LongNet.attention import DilatedAttention
to from longnet.attention import DilatedAttention
.
This was generated by ChatGPT based on my description.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too