将Firebase集成到kivy应用程序的正确方法是什么?
我尝试过Pyrebase和python-fireabase。只能实现Pyrebase。 python-firebase似乎在令牌生成方面存在一些问题,稍后会解决这个问题。
根据文档简单地导入Pyrebase与python一起使用效果很好。我能按照描述使用。用Kivy建造,而不是那么多。 将Pyrebase添加到需求会导致构建失败,错误安装pycrypto,来自Pyrebase要求:
checking whether the C compiler works... no
configure: error: in `/tmp/pip-build-qHL810/pycrypto':
configure: error: C compiler cannot create executables
See `config.log' for more details
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-qHL810/pycrypto/setup.py", line 456, in <module>
core.setup(**kw)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/guga/HDD/Mega/Projetos/Olavo/SignInTests/.buildozer/venv/local/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 199, in run
self.run_command('build')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/pip-build-qHL810/pycrypto/setup.py", line 251, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/pip-build-qHL810/pycrypto/setup.py", line 278, in run
raise RuntimeError("autoconf error")
RuntimeError: autoconf error
# Command failed: pip install --target=/home/guga/HDD/Mega/Projetos/Olavo/SignInTests/.buildozer/applibs pyrebase
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2