Web2py UnpicklingError(Web2py UnpicklingError)
在Ubuntu中得到这个web2py错误:
Traceback (most recent call last): File "/home/mwk/web2py/gluon/restricted.py", line 227, in restricted exec ccode in environment File "/home/mwk/web2py/applications/britamintell/models/db2.py", line 15, in <module> auth.signature) File "/home/mwk/web2py/gluon/packages/dal/pydal/base.py", line 834, in define_table table = self.lazy_define_table(tablename,*fields,**args) File "/home/mwk/web2py/gluon/packages/dal/pydal/base.py", line 873, in lazy_define_table polymodel=polymodel) File "/home/mwk/web2py/gluon/packages/dal/pydal/adapters/base.py", line 500, in create_table sql_fields_old = pickle.load(tfile) UnpicklingError: invalid load key, '�'.
这是什么,我如何解决它?
Am getting this web2py error in Ubuntu:
Traceback (most recent call last): File "/home/mwk/web2py/gluon/restricted.py", line 227, in restricted exec ccode in environment File "/home/mwk/web2py/applications/britamintell/models/db2.py", line 15, in <module> auth.signature) File "/home/mwk/web2py/gluon/packages/dal/pydal/base.py", line 834, in define_table table = self.lazy_define_table(tablename,*fields,**args) File "/home/mwk/web2py/gluon/packages/dal/pydal/base.py", line 873, in lazy_define_table polymodel=polymodel) File "/home/mwk/web2py/gluon/packages/dal/pydal/adapters/base.py", line 500, in create_table sql_fields_old = pickle.load(tfile) UnpicklingError: invalid load key, '�'.
what is this and how do i resolve it?
原文:https://stackoverflow.com/questions/42630224
最满意答案
显然,react-native 0.48.0存在问题。
你可以按照下面的主题,它应该用0.48.1修复。 https://github.com/facebook/react-native/issues/15768
编辑:我可以确认0.48.1工作正常。 更新使用:
npm install -g react-native-git-upgrade
反应母语-混帐升级
Apparently there's an issue with react-native 0.48.0.
You can follow the thread below, it should be fixed with 0.48.1. https://github.com/facebook/react-native/issues/15768
Edit: I can confirm 0.48.1 works fine. Update using:
npm install -g react-native-git-upgrade
react-native-git-upgrade
相关问答
更多-
如果您使用Xcode构建项目,那么您可以关闭它,在项目根目录下运行npm start (启动包装器),启动模拟器(可能使用ios-sim)。 由于您在Xcode中构建过一次,因此应用程序将安装在模拟器中,以便您可以运行它,并且整个CMD + R刷新过程都可以正常工作。 If you build the project once using Xcode, then you can close it, run npm start in your project root (to start the packag ...
-
为什么“react-native link some-native-module”是一个彩票?(Why is “react-native link some-native-module” a lottery?)[2023-06-06]
我在几个月内没有遇到上述任何问题。 我想这与最近的一次RN升级有关。 今天我从0.45升级到0.47,没有任何问题。 难道是RN中的某些东西是固定的,这些问题消失了吗? 我当然希望如此。 I haven't had any of the above problems in a couple of months. I suppose it has to do with one of the recent RN upgrades. Today I upgraded from 0.45 to 0.47 with ... -
这里有两件不同的事情。 运行react-native run-ios将在您的模拟器上运行您的应用程序。 要在您的设备中运行它,您需要从xCode运行该应用程序。 您可以在此处查看RN在设备上运行的官方文档。 There are two different things here. Running react-native run-ios will run your application on your simulator. To run it in your device, you'll need to ...
-
显然,react-native 0.48.0存在问题。 你可以按照下面的主题,它应该用0.48.1修复。 https://github.com/facebook/react-native/issues/15768 编辑:我可以确认0.48.1工作正常。 更新使用: npm install -g react-native-git-upgrade 反应母语-混帐升级 Apparently there's an issue with react-native 0.48.0. You can follow the ...
-
我认为你没有将Xcode中的设备保存为Universal。 转到Xcode,点击项目名称。 在目标部分中,转到部署信息。 将设备设置为通用。 I think you have not kept your Devices in Xcode as Universal. Go to Xcode click on the project name. In the target section go to Deployment Info. Set Devices to Universal.
-
如何从IOS中的React-Native App打开外部应用程序?(How can I open a external App from my React-Native App in IOS?)[2023-10-03]
最后,在IOS中Linking.openUR(“whatsapp:// app”)这个单词APP就是我正在寻找的。 Finally, in IOS is Linking.openUR("whatsapp://app") The word APP was what I was looking for. -
似乎你有很多遗失的库由于某种原因没有下载,我建议你删除所有可下载的库,然后重新开始: 删除node_modules /文件夹 删除ios / Pods文件夹 删除ios / build文件夹 运行: npm install 运行: cd ios; pod install; cd../ cd ios; pod install; cd../ 运行: react-native link 而已 Seems that you have a lot of missing libraries which are not ...
-
尝试使用另一个模拟器,如果它工作,你需要从模拟器菜单重置你的模拟器 模拟器 - >重置内容和设置如果您有Xcode 9它将来自硬件 - >擦除所有内容和设置 从Xcode菜单中清除产品 - >清理并运行您的项目 try with another simulator if it works you need to reset your simulator from simulator menu Simulator -> Reset Content And Setting if you have Xcode 9 ...
-
为了改变你必须这样做: 打开开发人员菜单 选择开发设置 最后选择Debug server host&port进行开发 这就是全部,祝你好运 In order to change that you have to do this: Open the Developer menu Select Dev Settings Finally select Debug server host & port for develop That's all, good luck
-
您可以使用作为本机库的react-native-config ,并且需要一个工作链接或react-native-dotenv ,它就像react-native-config但不需要任何本机链接。 设置的.env文件也可以正常工作,例如.env.development包含process.env.NODE_ENV === 'development'环境变量。 You can use react-native-config which is a native library and requires a link ...