versions

SSL: CERTIFICATE_VERIFY_FAILED with Python3

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I apologize if this is a silly question, but I have been trying to teach myself how to use BeautifulSoup so that I can create a few projects. I was following this link as a tutorial: https://www.youtube.com/watch?v=5GzVNi0oTxQ After following the exact same code as him, this is the error that I get: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 1240, in do_open h.request(req.get_method(), req.selector, req.data, headers) File "/Library/Frameworks/Python

Execution failed for task 'app:prepareDebugAndroidTestDependencies'

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to build UI tests for my Android application in Android Studio. The problem is that I can't run them. I get the message: Execution failed for task 'app:prepareDebugAndroidTestDependencies' which I couldn't find what it's about. When I run my application, it starts perfectly, but when i try to run tests it shows the mentioned message. My build.gradle is lsited below: apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.0" defaultConfig { applicationId "ba.etf.pkks.eldaralmin.libraryapp"

EOFError: EOF read where object expected

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Recently there have been strange errors on GAE, like this one: Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime

Package install error: compilation failed

匿名 (未验证) 提交于 2019-12-03 01:14:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I recently updated R to 3.1.0. I tried to move my packages over to 3.1 inside the R.Framework (I'm running OSX Mavericks) and somehow made a mess of it, so did a complete uninstall of everything before a clean install. When reinstalling packages I had no issues until I hit the forecast package which yields the following error: package ‘forecast’ is available as a source package but not as a binary Warning in install.packages : package ‘forecast’ is not available (for R version 3.1.0) I actually had R 3.1.0 and both forecast and hts working

Aggregation using MongoDB java driver with multiple $project

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to convert Mongo Aggregation query into Java and I am kind of stuck on the second $project statement db.ValidationResults.aggregate([ { $match: { "_id.settlementInstanceId" : "715e66c7-92ff-4619-9324-2c708489fe27", "Versions.scope" : "INPUT_QUALITY" } }, { $project: { Versions: 1, MaxVersion: { $max: "$Versions.version" } } }, { $project: { Versions: { $filter: { input: "$Versions", as: "x", cond: { $eq: [ "$$x.version", "$MaxVersion" ] } } } } }, { $unwind: "$Versions" } ]) Any help is really appreciated. TIA Java Code -

General SOCKS server failure with python tor but working from tor browser

匿名 (未验证) 提交于 2019-12-03 01:09:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would like to use tor from python to automate requests. I made a test with a page to check IP and it works. I then pointed to the site I want to, and apparently they avoid a tor endpoint because (see stack trace below) - but it works from tor browser. Any better way to debug response of browser? (e.g. connection refused) Which things I am missing to query from python instead than from browser? I am trying with something like: socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5 , "127.0.0.1", 9150, True) socket.socket = socks.socksocket socks

LoadError: cannot load such file ― bundler/setup

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We are upgrading to the latest ruby version (2.2.3) and latest rails version (4.2.4) and we can't get pass this error: LoadError: cannot load such file -- bundler/setup /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' ~/Documents/remsis/config/boot.rb:6:in `<top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby

Django Installation Error (No Module Named Django)

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using Mac OS X Mavericks. I have an error with installing Django. Using the "pip install" command I installed Django. It is in the directory below. Requirement already satisfied (use --upgrade to upgrade): Django in /usr/local/lib/python2.7/site-packages Cleaning up... When I type "python" into the command line, and then "import django", it says No Module Named Django. Based on reading other answers, apparently sys.path will say which directories I can install Django in. So I did: import sys for x in sys.path: print x This gives the

How to compare versions of an Amazon S3 object?

匿名 (未验证) 提交于 2019-12-03 00:58:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Versioning of Amazon S3 buckets is nice, but I don't see any easy way to compare versions of a file - either through the console or through any other app I found. S3Browser seems to have the best versioning support, but no comparison. Is there a way to compare versions of a file on S3 without downloading both versions and comparing them manually? -- EDIT: I just started thinking that some basic automation should not be too hard, see snippet below. Question remains though: is there any tool that supports this properly? This script may be fine

SBT Scala cross versions, with aggregation and dependencies

匿名 (未验证) 提交于 2019-12-03 00:54:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am struggling with how crossScalaVersions works with subprojects. I have a project that compiles with 2.10 (foo) and a project that compiles with 2.11 (bar). They share a cross compiled project (common). How can I compile projects foo and bar? build.sbt lazy val root = (project in file(".")).aggregate(foo, bar).settings( crossScalaVersions := Seq("2.10.4", "2.11.4") ) lazy val foo = (project in file("foo")).dependsOn(common).settings( crossScalaVersions := Seq("2.10.4"), scalaVersion := "2.10.4" ) lazy val bar = (project in file("bar"))