小编S J*_*S J的帖子

AttributeError:使用 Fiona 驱动程序时,“NoneType”对象没有属性“drvsupport”

当我运行以下代码时:

import geopandas as gpd
from shapely.geometry import Point, Polygon
import pandas as pd

gpd.io.file.fiona.drvsupport.supported_drivers['KML'] = 'rw'
my_map = gpd.read_file('mymap.kml', driver='KML')
my_map

Run Code Online (Sandbox Code Playgroud)

我收到此错误:

    gpd.io.file.fiona.drvsupport.supported_drivers['KML'] = 'rw'
AttributeError: 'NoneType' object has no attribute 'drvsupport'
Run Code Online (Sandbox Code Playgroud)

有人可以帮忙解决这个问题吗?

fiona geopandas

8
推荐指数
2
解决办法
4695
查看次数

Webpack 开发服务器无法将 watchContentBase 识别为有效选项

Webpack 开发服务器无法将 watchContentBase 识别为有效选项。已watchContentBase弃用吗?如果是这样,有什么替代方案?以下是我的 Webpack 开发服务器的配置:

devServer: {
    contentBase: path.resolve(__dirname, 'dist'),
    port: 8080,
    open: true,
    hot: true,
    watchContentBase: true,
}
Run Code Online (Sandbox Code Playgroud)

当我运行我的服务器时,出现以下错误。

选项对象无效。开发服务器已使用与 API 架构不匹配的选项对象进行初始化。

  • options 有一个未知属性“watchContentBase”。这些属性有效: object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, HistoryApiFallback?, host?, hot?, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetupMiddleware ?,onBeforeSetupMiddleware?,onListening?,打开?,端口?,代理?,服务器?,setupExitSignals?,静态?,watchFiles?,webSocketServer?}

webpack webpack-dev-server

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

标签 统计

fiona ×1

geopandas ×1

webpack ×1

webpack-dev-server ×1