草庐IT

incompatibility

全部标签

python - Matplotlib -- libpng 错误 : Incompatible libpng version in application and library

我通过安装matplotlibpipinstallmatplotlib当我尝试用它保存png时,我得到了Applicationwascompiledwithpng.hfromlibpng-1.6.21libpngwarning:Applicationisrunningwithpng.cfromlibpng-1.2.44libpngerror:Incompatiblelibpngversioninapplicationandlibraryldconfig-p|greplibpng给我libpng12.so.0(libc6,x86-64)=>/lib/x86_64-linux-gnu/li

python - mypy错误,Union/Optional重载, “Overloaded function signatures 1 and 2 overlap with incompatible return types”

因此,让我们从一个例子开始。假设我们有几种可以组合在一起的类型,假设我们使用__add__来实现这一点。不幸的是,由于无法控制的情况,所有内容都必须是“可空的”,因此我们被迫在各处使用Optional。fromtypingimportOptional,List,overloadclassFoo:value:intdef__init__(self,value:int)->None:self.value=valuedef__add__(self,other:'Foo')->'Optional[Foo]':result=self.value-other.valueifresult>42:re

python - AssertionError : incompatible sizes: argument 'height' must be length 2 or scalar (Matplotlib, Python 2.7,绘制图表)

不幸的是,新的一天给Python带来了新的问题:/我有一个由我用Java编写的其他应用程序生成的文件。这个应用程序生成带有一些数据的文件,它是一种随机的东西,因为我无法说出每个文件会有多少行。示例文件如下所示:3SatJan2100:00:0020127SunMar1100:00:0020125FriJan100:00:0020104SatFeb500:00:0020118SunApr1100:00:0020104WedAug2400:00:0020118SatFeb2000:00:0020103ThuOct1300:00:0020119FriDec1700:00:0020104Tue

python - ValueError : Input 0 is incompatible with layer lstm_13: expected ndim=3, 发现 ndim=4

我正在尝试多类分类,这里是我的训练输入和输出的详细信息:train_input.shape=(1,95000,360)(95000lengthinputarraywitheachelementbeinganarrayof360length)train_output.shape=(1,95000,22)(22Classesarethere)model=Sequential()model.add(LSTM(22,input_shape=(1,95000,360)))model.add(Dense(22,activation='softmax'))model.compile(loss='ca

python - Keras ValueError : Input 0 is incompatible with layer conv2d_1: expected ndim=4, 发现 ndim=5

我已经检查了所有的解决方案,但仍然面临同样的错误。我的训练图像形状是(26721,32,32,1),我认为它是4维的,但我不知道为什么错误显示它是5维的。model=Sequential()model.add(Convolution2D(16,5,5,border_mode='same',input_shape=input_shape))这就是我定义model.fit_generatormodel.fit_generator(train_dataset,train_labels,nb_epoch=epochs,verbose=1,validation_data=(valid_datas

objective-c - "Incompatible pointer to integer conversion initializing ' int ' with an expression of type ' NSNumber * '"

我怀疑这真的很简单,但我正在尝试获取一个存储在字典中的int,而我正在使用的行是这样的......intmapX=[NSNumbernumberWithInt:[templateObjectvalueForKey:@"mapX"]];但它给了我错误...Incompatiblepointertointegerconversionsending'id'toparameteroftype'int'和Incompatiblepointertointegerconversioninitializing'int'withanexpressionoftype'NSNumber*';如果我尝试...

ios - Xcode 8 测试版 4 : Build fails with "The following binaries use incompatible versions of Swift:" error

使用新的Xcode8beta4,我们在CopySwiftLibs构建阶段开始遇到以下错误:EffectivesrcDirs:{(,)}错误:以下二进制文件使用不兼容的Swift版本:/Users/user/Projects/git/iphone-swift-1/DerivedData/myApp/Build/Products/Debug-iphonesimulator/myApp.app/myApp/Users/user/Projects/git/iphone-swift-1/myApp/myAppApi.framework/myAppApimyAppApi是工作区中的一个子项目,其中

iphone - 如何解决警告: Sending 'ViewController *const __strong' to parameter of incompatible type 'id<AVAudioPlayerDelegate>?

以下代码给出了Sending'ViewController*const__strong'toparameterofincompatibletype'id'的警告(就是下面代码中的第三行):NSURL*sound0URL=[NSURLfileURLWithPath:[[NSBundlemainBundle]pathForResource:@"0"ofType:@"aiff"]];audioPlayer0=[[AVAudioPlayeralloc]initWithContentsOfURL:sound0URLerror:nil];[audioPlayer0setDelegate:self]

c# - 套接字异常 : address incompatible with requested protocol

我试图在Win7-64位机器上运行.Net套接字服务器代码。我不断收到以下错误:System.Net.Sockets.SocketException:Anaddressincompatiblewiththerequestedprotocolwasused.ErrorCode:10047代码片段是:IPAddressipAddress=Dns.GetHostEntry("localhost").AddressList[0];IPEndPointip=newIPEndPoint(ipAddress,9989);SocketserverSocket=newSocket(AddressFami

java - 不兼容的类型 : inference variable T has incompatible bounds equality constraints: capture#1 of ? 扩展了 java.lang.Object

我正在尝试连接以运行查询以获取MongoDB中的所有记录,然后将记录转换为引用对象类型的列表,我将其作为调用类的泛型。代码运行良好并在Eclipse中实现了预期的结果,但在mavenbuild期间出现编译错误,maven和eclipse都引用相同的JDK(1.8)。有人可以帮我解决这个问题吗publicclassMongoPersistenceImpl{MongoDatabasedatabase=(MongoDatabase)MongoConnectImpl.getInstance().getConnection();publicListgetAll(TmodelObject){Mon