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

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

Open
yuhangjiang22 opened this issue Feb 14, 2023 · 2 comments
Open

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

yuhangjiang22 opened this issue Feb 14, 2023 · 2 comments

Comments

@yuhangjiang22
Copy link

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
Copy link

ellensong99 commented Apr 12, 2023

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

@WyvernIXTL
Copy link

WyvernIXTL commented May 8, 2023

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.

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

3 participants