glample / fastBPE

Fast BPE
MIT License
656 stars 96 forks source link

module 'fastBPE' has no attribute 'fastBPE' #57

Open yuhangjiang22 opened 1 year ago

yuhangjiang22 commented 1 year ago

After running installation by,

python setup.py install

running install
/Users/kaka/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/Users/kaka/lib/python3.8/site-packages/setuptools/command/easy_install.py:156: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
package init file 'fastBPE/__init__.py' not found (or not a regular file)
writing manifest file 'fastBPE.egg-info/SOURCES.txt'
running install_lib
running build_py
running build_ext
creating build/bdist.macosx-10.14-x86_64/egg
byte-compiling build/bdist.macosx-10.14-x86_64/egg/fastBPE.py to fastBPE.cpython-38.pyc
creating build/bdist.macosx-10.14-x86_64/egg/EGG-INFO
copying fastBPE.egg-info/PKG-INFO -> build/bdist.macosx-10.14-x86_64/egg/EGG-INFO
copying fastBPE.egg-info/SOURCES.txt -> build/bdist.macosx-10.14-x86_64/egg/EGG-INFO
copying fastBPE.egg-info/dependency_links.txt -> build/bdist.macosx-10.14-x86_64/egg/EGG-INFO
copying fastBPE.egg-info/top_level.txt -> build/bdist.macosx-10.14-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
removing 'build/bdist.macosx-10.14-x86_64/egg' (and everything under it)
Removing /Users/kaka/lib/python3.8/site-packages/fastBPE-0.1.1-py3.8-macosx-10.14-x86_64.egg
Copying fastBPE-0.1.1-py3.8-macosx-10.14-x86_64.egg to /Users/kaka/lib/python3.8/site-packages

still got this error.

>>> fastBPE.fastBPE()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'fastBPE' has no attribute 'fastBPE'
ellensong99 commented 1 year ago

Same issue here! Did you resolve it by any chance? @yuhangjiang22

WyvernIXTL commented 1 year ago

Same Issue. Compiled it on fedora (docker) with clang++ and installed it with Python 3.11.3 . Edit: Compiling it with g++ solved it. Edit2: Nevermind. Nothing changed... Edit3: Version 0.1.0 on pypi seems to work. For me it is fixed for now.