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

无法正常运行3.6 #9

Open
fingpop opened this issue Jun 18, 2019 · 1 comment
Open

无法正常运行3.6 #9

fingpop opened this issue Jun 18, 2019 · 1 comment

Comments

@fingpop
Copy link

fingpop commented Jun 18, 2019

Traceback (most recent call last):
File "/Volumes/Study/Python/Web/venv/lib/python3.6/site-packages/cffi/cparser.py", line 5, in
from . import _pycparser as pycparser
ImportError: cannot import name '_pycparser'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Volumes/Study/Python/Web/base64.py", line 1, in
import xxtea
File "/Volumes/Study/Python/Web/venv/lib/python3.6/site-packages/xxtea/init.py", line 9, in
ffi = FFI()
File "/Volumes/Study/Python/Web/venv/lib/python3.6/site-packages/cffi/api.py", line 65, in init
from . import cparser
File "/Volumes/Study/Python/Web/venv/lib/python3.6/site-packages/cffi/cparser.py", line 7, in
import pycparser
File "/Volumes/Study/Python/Web/venv/lib/python3.6/site-packages/pycparser/init.py", line 15, in
from .c_parser import CParser
File "/Volumes/Study/Python/Web/venv/lib/python3.6/site-packages/pycparser/c_parser.py", line 11, in
from .ply import yacc
File "/Volumes/Study/Python/Web/venv/lib/python3.6/site-packages/pycparser/ply/yacc.py", line 67, in
import base64
File "/Volumes/Study/Python/Web/base64.py", line 6, in
encrypt_data = xxtea.encrypt(text,key)
AttributeError: module 'xxtea' has no attribute 'encrypt'

Console里面import xxtea也报错

@andot
Copy link
Member

andot commented Jun 20, 2019

似乎是你的 cffi 包有问题,这个跟 xxtea 这个包没有直接关系。

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

2 participants