小编ged*_*lod的帖子

ViewPropTypes will be removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types

I am getting this warning in log :

ViewPropTypes will be removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types

even I haven't used ViewPropTypes anywhere in my code.

some of my packages are :

"@react-navigation/native": "^6.0.8",
"@react-navigation/native-stack": "^6.5.2",
"native-base": "^2.13.14",
"react": "17.0.2",
"react-native": "0.68.0",
"react-native-modal": "^13.0.0",
"react-native-responsive-screen": "^1.4.2",
"react-native-safe-area-context": "^4.2.4",
"react-native-screens": "^3.13.1",
"react-native-svg": "^12.3.0",
"react-redux": "^7.2.6",
"redux-thunk": "^2.4.1"
Run Code Online (Sandbox Code Playgroud)

react-native

94
推荐指数
10
解决办法
19万
查看次数

ImportError:无法从“jinja2”导入名称“Markup”

Flask==1.0.2当我最近部署包含和的项目时Jinja2>=2.10.1,出现以下错误。我前一天部署的时候运行得很好。我尝试更新,Jinja2但这并没有解决问题。

  File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
    self.wsgi = self.app.wsgi()
  File "/usr/local/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
    self.callable = self.load()
  File "/usr/local/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
    return self.load_wsgiapp()
  File "/usr/local/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/local/lib/python3.7/site-packages/gunicorn/util.py", line 359, in import_app
    mod = importlib.import_module(module)
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked …
Run Code Online (Sandbox Code Playgroud)

python jinja2 flask

55
推荐指数
5
解决办法
13万
查看次数

错误:字段“wLanguage”不能为空或类型为“Null”,它必须是“int”、“double”、“Pointer”或“Struct”或“Union”的子类型

运行flutter build appbundle命令时,我收到以下错误:

../../.pub-cache/hosted/pub.dev/package_info_plus_windows-2.1.0/lib/src/file_version_info.dart:13:17: 
Error: Field 'wLanguage' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
  external int? wLanguage;
                ^

../../.pub-cache/hosted/pub.dev/package_info_plus_windows-2.1.0/lib/src/file_version_info.dart:16:17: 
Error: Field 'wCodePage' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
  external int? wCodePage;
                ^
Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.
Run Code Online (Sandbox Code Playgroud)

我使用的是颤振3.10.0。在我更新flutter版本之前,项目运行得很好。

flutter flutter-dependencies flutter3.x

35
推荐指数
4
解决办法
2万
查看次数

Django4.0 ImportError:无法从“django.utils.translation”导入名称“ugettext_lazy”

我在 Django 应用程序中使用翻译。由于我安装了 Django 版本 4,当我尝试导入时ugettexget_lazy,如下面的代码所示

from django.utils.translation import ugettexget_lazy as _
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation'
Run Code Online (Sandbox Code Playgroud)

python django python-3.x django-4.0

8
推荐指数
1
解决办法
1万
查看次数

为用户指定的未知字段(用户名)。检查 CustomUserAdmin 类的字段/字段集/排除属性

为我的 python django 应用程序创建自定义用户后,我开始收到标题上所述的错误。仅当我不想从管理面板添加新用户时才会发生这种情况,即当我收到错误“为用户指定的未知字段(用户名)。检查 CustomUserAdmin 类的字段/字段集/排除属性”时。我尝试在互联网上到处寻找答案,但没有成功。管理员.py:

# accounts/admin.py
from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin

from .forms import CustomUserCreationForm, CustomUserChangeForm
from .models import User

class CustomUserAdmin(UserAdmin):
    add_form = CustomUserCreationForm
    form = CustomUserChangeForm
    model = User
    list_display = ['email', 'first_name','last_name', 'image',  'country_code','country', 'phone','state_province','city_town','address', 'postal_code',]
    add_fieldsets = UserAdmin.add_fieldsets + (
        (None, {'fields': ('email', 'first_name', 'last_name',  'image', 'country_code','country', 'phone','state_province','city_town','address', 'postal_code',)}),
    )
    fieldsets = (
        (None, {
            "fields": (
                ('email', 'first_name', 'last_name', 'image', 'is_staff',  'country_code','country', 'phone','state_province','city_town','address', 'postal_code',)
                
            ),
        }), …
Run Code Online (Sandbox Code Playgroud)

django django-admin django-custom-user

5
推荐指数
2
解决办法
1万
查看次数

Flutter:11 秒内构建失败未处理的异常:FileSystemException:writeFrom 失败

我是颤振和移动开发的新手。我正在开发该应用程序,一切正常。几个小时后,我尝试在设备上运行我的应用程序,但收到以下错误:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Problems writing to Binary store in /private/var/folders/k9/g_78rhy13m968yn0yg9v6jb40000gn/T/gradle16554077359029727541.bin (exist: true)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 11s
Unhandled exception:
FileSystemException: writeFrom …
Run Code Online (Sandbox Code Playgroud)

android dart build.gradle flutter

4
推荐指数
1
解决办法
4965
查看次数

属性 application@label 也存在于

在我的 android 项目中安装新库后,出现以下错误:

/android/app/src/debug/AndroidManifest.xml Error:
    Attribute application@label value=(Compassion) from (unknown)
    is also present at [com.github.master] AndroidManifest.xml:15:9-41 value=(@string/app_name).
    Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:6:4-36:19 to override.

FAILURE: Build failed with an exception.
Run Code Online (Sandbox Code Playgroud)

android android-manifest kotlin flutter

3
推荐指数
1
解决办法
2281
查看次数