after_merge stringlengths 28 79.6k | before_merge stringlengths 20 79.6k | url stringlengths 38 71 | full_traceback stringlengths 43 922k | traceback_type stringclasses 555
values |
|---|---|---|---|---|
def search(self, *args):
"""Searches package recipes and binaries in the local cache or in a remote.
If you provide a pattern, then it will search for existing package recipes matching it.
If a full reference is provided (pkg/0.1@user/channel) then the existing binary packages for
that reference will b... | def search(self, *args):
"""Searches package recipes and binaries in the local cache or in a remote.
If you provide a pattern, then it will search for existing package recipes matching it.
If a full reference is provided (pkg/0.1@user/channel) then the existing binary packages for
that reference will b... | https://github.com/conan-io/conan/issues/3041 | $ conan --version
Conan version 1.4.4
$ conan search sdl2
Traceback (most recent call last):
File "/usr/local/Cellar/conan/1.4.4/libexec/lib/python3.6/site-packages/conans/client/remote_registry.py", line 66, in _load
contents = load(self._filename)
File "/usr/local/Cellar/conan/1.4.4/libexec/lib/python3.6/site-packag... | FileNotFoundError |
def get_scm(conanfile, src_folder):
data = getattr(conanfile, "scm", None)
if data is not None and isinstance(data, dict):
return SCM(data, src_folder)
else:
# not an instance of dict or None, skip SCM feature.
pass
| def get_scm(conanfile, src_folder):
data = getattr(conanfile, "scm", None)
if data is not None:
return SCM(data, src_folder)
| https://github.com/conan-io/conan/issues/3004 | Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/conan-1.4.2-py2.7.egg/conans/client/command.py", line 1182, in run
method(args[0][1:])
File "/usr/local/lib/python2.7/dist-packages/conan-1.4.2-py2.7.egg/conans/client/command.py", line 246, in create
test_build_folder=args.test_build_folde... | AttributeError |
def _link_folders(src, dst, linked_folders):
for linked_folder in linked_folders:
link = os.readlink(os.path.join(src, linked_folder))
dst_link = os.path.join(dst, linked_folder)
try:
# Remove the previous symlink
os.remove(dst_link)
except OSError:
... | def _link_folders(src, dst, linked_folders):
for linked_folder in linked_folders:
link = os.readlink(os.path.join(src, linked_folder))
dst_link = os.path.join(dst, linked_folder)
try:
# Remove the previous symlink
os.remove(dst_link)
except OSError:
... | https://github.com/conan-io/conan/issues/2959 | ...
PROJECT: Generator txt created conanbuildinfo.txt
PROJECT: Generated conaninfo.txt
Traceback (most recent call last):
File "/home/fernando/.local/lib/python2.7/site-packages/conans/client/command.py", line 1182, in run
method(args[0][1:])
File "/home/fernando/.local/lib/python2.7/site-packages/conans/client/command... | OSError |
def loads(cls, text):
result = []
for line in text.splitlines():
if not line.strip():
continue
name, value = line.split("=", 1)
result.append((name.strip(), value.strip()))
return cls.from_list(result)
| def loads(cls, text):
result = []
for line in text.splitlines():
if not line.strip():
continue
name, value = line.split("=")
result.append((name.strip(), value.strip()))
return cls.from_list(result)
| https://github.com/conan-io/conan/issues/2816 | DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): artifactory.avira.org
DEBUG:urllib3.connectionpool:<artifactory-url> "GET /artifactory/api/conan/conan-local/v1/conans/<dependency-of-the-recipe>/download_urls HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:<artifactory-url> "GET /artifactory/api/conan/co... | ValueError |
def path_shortener(path, short_paths):
"""short_paths is 4-state:
False: Never shorten the path
True: Always shorten the path, create link if not existing
None: Use shorten path only if already exists, not create
"""
if short_paths is False or os.getenv("CONAN_USER_HOME_SHORT") == "None":
... | def path_shortener(path, short_paths):
"""short_paths is 4-state:
False: Never shorten the path
True: Always shorten the path, create link if not existing
None: Use shorten path only if already exists, not create
"""
if short_paths is False or os.getenv("CONAN_USER_HOME_SHORT") == "None":
... | https://github.com/conan-io/conan/issues/2761 | Traceback (most recent call last):
File "C:\Python27\lib\site-packages\conans\client\command.py", line 1187, in run
method(args[0][1:])
File "C:\Python27\lib\site-packages\conans\client\command.py", line 304, in install
install_folder=args.install_folder)
File "C:\Python27\lib\site-packages\conans\client\conan_api.py",... | KeyError |
def run_imports(conanfile, dest_folder, output):
if not hasattr(conanfile, "imports"):
return []
file_importer = _FileImporter(conanfile, dest_folder)
conanfile.copy = file_importer
conanfile.imports_folder = dest_folder
with get_env_context_manager(conanfile):
with tools.chdir(dest_... | def run_imports(conanfile, dest_folder, output):
if not hasattr(conanfile, "imports"):
return []
file_importer = _FileImporter(conanfile, dest_folder)
conanfile.copy = file_importer
conanfile.imports_folder = dest_folder
with get_env_context_manager(conanfile):
with tools.chdir(dest_... | https://github.com/conan-io/conan/issues/2441 | conan install -u --build=outdated --set build_type=Release --set compiler=Visual Studio --set compiler.runtime=MT D:\dev\ruggedsw\base\dds\test
PROJECT: Installing D:\dev\ruggedsw\base\dds\test\conanfile.txt
Requirements
Boost/1.66.0-0@rugged/stable from shuttle
google.test/1.8.0-0@rugged/stable from shuttle
rugged.b... | ValueError |
def run_deploy(conanfile, install_folder, output):
deploy_output = ScopedOutput("%s deploy()" % output.scope, output)
file_importer = _FileImporter(conanfile, install_folder)
package_copied = set()
# This is necessary to capture FileCopier full destination paths
# Maybe could be improved in FileCop... | def run_deploy(conanfile, install_folder, output):
deploy_output = ScopedOutput("%s deploy()" % output.scope, output)
file_importer = _FileImporter(conanfile, install_folder)
package_copied = set()
# This is necessary to capture FileCopier full destination paths
# Maybe could be improved in FileCop... | https://github.com/conan-io/conan/issues/2441 | conan install -u --build=outdated --set build_type=Release --set compiler=Visual Studio --set compiler.runtime=MT D:\dev\ruggedsw\base\dds\test
PROJECT: Installing D:\dev\ruggedsw\base\dds\test\conanfile.txt
Requirements
Boost/1.66.0-0@rugged/stable from shuttle
google.test/1.8.0-0@rugged/stable from shuttle
rugged.b... | ValueError |
def file_copier(*args, **kwargs):
file_copy = FileCopier(conanfile.package_folder, install_folder)
copied = file_copy(*args, **kwargs)
_make_files_writable(copied)
package_copied.update(copied)
| def file_copier(*args, **kwargs):
file_copy = FileCopier(conanfile.package_folder, install_folder)
copied = file_copy(*args, **kwargs)
package_copied.update(copied)
| https://github.com/conan-io/conan/issues/2441 | conan install -u --build=outdated --set build_type=Release --set compiler=Visual Studio --set compiler.runtime=MT D:\dev\ruggedsw\base\dds\test
PROJECT: Installing D:\dev\ruggedsw\base\dds\test\conanfile.txt
Requirements
Boost/1.66.0-0@rugged/stable from shuttle
google.test/1.8.0-0@rugged/stable from shuttle
rugged.b... | ValueError |
def search_packages(self, reference=None, remote=None, query=None, outdated=False):
"""Return the single information saved in conan.vars about all the packages
or the packages which match with a pattern
Attributes:
pattern = string to match packages
remote = search on another origin to get ... | def search_packages(self, reference=None, remote=None, query=None, outdated=False):
"""Return the single information saved in conan.vars about all the packages
or the packages which match with a pattern
Attributes:
pattern = string to match packages
remote = search on another origin to get ... | https://github.com/conan-io/conan/issues/2589 | (conan) ~ $ conan search zlib/1.2.11@conan/stable -r=conan-center
Traceback (most recent call last):
File "/home/mgodbolt/apps/miniconda/envs/conan/lib/python2.7/site-packages/conans/client/command.py", line 1131, in run
method(args[0][1:])
File "/home/mgodbolt/apps/miniconda/envs/conan/lib/python2.7/site-packages/cona... | AttributeError |
def pyinstall(source_folder):
pyinstaller_path = os.path.join(os.getcwd(), "pyinstaller")
_install_pyintaller(pyinstaller_path)
for folder in ("conan", "conan_server", "conan_build_info"):
try:
shutil.rmtree(os.path.join(pyinstaller_path, folder))
except Exception as e:
... | def pyinstall(source_folder):
pyinstaller_path = os.path.join(os.getcwd(), "pyinstaller")
_install_pyintaller(pyinstaller_path)
for folder in ("conan", "conan_server", "conan_build_info"):
try:
shutil.rmtree(os.path.join(pyinstaller_path, folder))
except Exception as e:
... | https://github.com/conan-io/conan/issues/1868 | ~/test $ conan new Hello/0.1 -t
File saved: conanfile.py
File saved: test_package/CMakeLists.txt
File saved: test_package/conanfile.py
File saved: test_package/example.cpp
~/test $ conan create demo/testing
Hello/0.1@demo/testing: Exporting package recipe
Traceback (most recent call last):
File "conan/conans/client/com... | ImportError |
def create(
self,
profile_name=None,
settings=None,
options=None,
env=None,
scope=None,
test_folder=None,
not_export=False,
build=None,
keep_source=False,
verify=None,
manifests=None,
manifests_interactive=None,
remote=None,
update=False,
cwd=None,
use... | def create(
self,
profile_name=None,
settings=None,
options=None,
env=None,
scope=None,
test_folder=None,
not_export=False,
build=None,
keep_source=False,
verify=default_manifest_folder,
manifests=default_manifest_folder,
manifests_interactive=default_manifest_folder,... | https://github.com/conan-io/conan/issues/1689 | Traceback (most recent call last):
File "./uploadRecipe.py", line 93, in <module>
conan.create(profile_name=args.profile, user=args.user, channel=args.channel, build='missing', cwd=args.recipe)
File "/opt/venv-conan3/lib/python3.5/site-packages/conans/client/conan_api.py", line 56, in wrapper
return f(*args, **kwargs)
... | conans.errors.ConanException |
def install(
self,
reference="",
package=None,
settings=None,
options=None,
env=None,
scope=None,
all=False,
remote=None,
werror=False,
verify=None,
manifests=None,
manifests_interactive=None,
build=None,
profile_name=None,
update=False,
generator=None... | def install(
self,
reference="",
package=None,
settings=None,
options=None,
env=None,
scope=None,
all=False,
remote=None,
werror=False,
verify=default_manifest_folder,
manifests=default_manifest_folder,
manifests_interactive=default_manifest_folder,
build=None,
... | https://github.com/conan-io/conan/issues/1689 | Traceback (most recent call last):
File "./uploadRecipe.py", line 93, in <module>
conan.create(profile_name=args.profile, user=args.user, channel=args.channel, build='missing', cwd=args.recipe)
File "/opt/venv-conan3/lib/python3.5/site-packages/conans/client/conan_api.py", line 56, in wrapper
return f(*args, **kwargs)
... | conans.errors.ConanException |
def _parse_manifests_arguments(verify, manifests, manifests_interactive, cwd):
if manifests and manifests_interactive:
raise ConanException(
"Do not specify both manifests and manifests-interactive arguments"
)
if verify and (manifests or manifests_interactive):
raise ConanEx... | def _parse_manifests_arguments(verify, manifests, manifests_interactive, cwd):
if manifests and manifests_interactive:
raise ConanException(
"Do not specify both manifests and manifests-interactive arguments"
)
if verify and (manifests or manifests_interactive):
raise ConanEx... | https://github.com/conan-io/conan/issues/1689 | Traceback (most recent call last):
File "./uploadRecipe.py", line 93, in <module>
conan.create(profile_name=args.profile, user=args.user, channel=args.channel, build='missing', cwd=args.recipe)
File "/opt/venv-conan3/lib/python3.5/site-packages/conans/client/conan_api.py", line 56, in wrapper
return f(*args, **kwargs)
... | conans.errors.ConanException |
def get_recipe_sources(
self, conan_reference, export_folder, export_sources_folder, remote
):
t1 = time.time()
def filter_function(urls):
file_url = urls.get(EXPORT_SOURCES_TGZ_NAME)
if file_url:
urls = {EXPORT_SOURCES_TGZ_NAME: file_url}
else:
return None
... | def get_recipe_sources(
self, conan_reference, export_folder, export_sources_folder, remote
):
t1 = time.time()
def filter_function(urls):
file_url = urls.get(EXPORT_SOURCES_TGZ_NAME)
if file_url:
urls = {EXPORT_SOURCES_TGZ_NAME: file_url}
else:
return None
... | https://github.com/conan-io/conan/issues/1693 | PROJECT: Installed build requirements of: myOrg.SomeComponent/2.14.0-alpha-build.5@user/unstable
Downloading conan_sources.tgz
Traceback (most recent call last):
File "d:\buildFolder\virtualenv\lib\site-packages\conans\client\command.py", line 884, in run
method(args[0][1:])
File "d:\buildFolder\virtualenv\lib\site-pa... | PermissionError |
def loads(text):
"""parses a multiline text in the form
Package:option=value
other_option=3
OtherPack:opt3=12.1
"""
result = []
for line in text.splitlines():
line = line.strip()
if not line:
continue
name, value = line.split("=", 1)
result.append(... | def loads(text):
"""parses a multiline text in the form
Package:option=value
other_option=3
OtherPack:opt3=12.1
"""
result = []
for line in text.splitlines():
line = line.strip()
if not line:
continue
name, value = line.split("=")
result.append((na... | https://github.com/conan-io/conan/issues/1296 | Traceback (most recent call last):
File "/usr/local/bin/conan", line 9, in <module>
load_entry_point('conan==0.22.3', 'console_scripts', 'conan')()
File "/usr/local/lib/python3.5/dist-packages/conans/conan.py", line 6, in run
main(sys.argv[1:])
File "/usr/local/lib/python3.5/dist-packages/conans/client/command.py", lin... | ValueError |
def export_conanfile(output, paths, conanfile, origin_folder, conan_ref, keep_source):
destination_folder = paths.export(conan_ref)
previous_digest = _init_export_folder(destination_folder)
execute_export(conanfile, origin_folder, destination_folder, output)
digest = FileTreeManifest.create(destination... | def export_conanfile(output, paths, conanfile, origin_folder, conan_ref, keep_source):
destination_folder = paths.export(conan_ref)
previous_digest = _init_export_folder(destination_folder)
execute_export(conanfile, origin_folder, destination_folder, output)
digest = FileTreeManifest.create(destination... | https://github.com/conan-io/conan/issues/1040 | D:\slave\ws\cab\extern\boost\1.63.0@0\ws>conan.exe upload "Boost/1.63.0@cab/extern" --all --confirm -r bop --retry 3
Uploading Boost/1.63.0@cab/extern
Compressing recipe...
Uploading conanmanifest.txt
Uploading conan_export.tgz
Uploaded conan recipe 'Boost/1.63.0@cab/extern' to 'bop': http://conan.bop
Uploading pac... | KeyError |
def undo_imports(current_path, output):
manifest_path = os.path.join(current_path, IMPORTS_MANIFESTS)
try:
manifest_content = load(manifest_path)
except:
raise ConanException("Cannot load file %s" % manifest_path)
try:
manifest = FileTreeManifest.loads(manifest_content)
exce... | def undo_imports(current_path, output):
manifest_path = os.path.join(current_path, IMPORTS_MANIFESTS)
try:
manifest_content = load(manifest_path)
except:
raise ConanException("Cannot load file %s" % manifest_path)
try:
manifest = FileTreeManifest.loads(manifest_content)
exce... | https://github.com/conan-io/conan/issues/1040 | D:\slave\ws\cab\extern\boost\1.63.0@0\ws>conan.exe upload "Boost/1.63.0@cab/extern" --all --confirm -r bop --retry 3
Uploading Boost/1.63.0@cab/extern
Compressing recipe...
Uploading conanmanifest.txt
Uploading conan_export.tgz
Uploaded conan recipe 'Boost/1.63.0@cab/extern' to 'bop': http://conan.bop
Uploading pac... | KeyError |
def _check(self, reference, manifest, remote, path):
if os.path.exists(path):
existing_manifest = FileTreeManifest.loads(load(path))
if existing_manifest == manifest:
self._log.append("Manifest for '%s': OK" % str(reference))
return
if self._verify:
raise ConanEx... | def _check(self, reference, manifest, remote, path):
if os.path.exists(path):
existing_manifest = FileTreeManifest.loads(load(path))
if existing_manifest.file_sums == manifest.file_sums:
self._log.append("Manifest for '%s': OK" % str(reference))
return
if self._verify:
... | https://github.com/conan-io/conan/issues/1040 | D:\slave\ws\cab\extern\boost\1.63.0@0\ws>conan.exe upload "Boost/1.63.0@cab/extern" --all --confirm -r bop --retry 3
Uploading Boost/1.63.0@cab/extern
Compressing recipe...
Uploading conanmanifest.txt
Uploading conan_export.tgz
Uploaded conan recipe 'Boost/1.63.0@cab/extern' to 'bop': http://conan.bop
Uploading pac... | KeyError |
def _match_manifests(self, read_manifest, expected_manifest, reference):
if read_manifest is None or read_manifest != expected_manifest:
raise ConanException(
"%s local cache package is corrupted: "
"some file hash doesn't match manifest" % (str(reference))
)
| def _match_manifests(self, read_manifest, expected_manifest, reference):
if read_manifest is None or read_manifest.file_sums != expected_manifest.file_sums:
raise ConanException(
"%s local cache package is corrupted: "
"some file hash doesn't match manifest" % (str(reference))
... | https://github.com/conan-io/conan/issues/1040 | D:\slave\ws\cab\extern\boost\1.63.0@0\ws>conan.exe upload "Boost/1.63.0@cab/extern" --all --confirm -r bop --retry 3
Uploading Boost/1.63.0@cab/extern
Compressing recipe...
Uploading conanmanifest.txt
Uploading conan_export.tgz
Uploaded conan recipe 'Boost/1.63.0@cab/extern' to 'bop': http://conan.bop
Uploading pac... | KeyError |
def get_package(self, package_ref, short_paths):
"""obtain a package, either from disk or retrieve from remotes if necessary
and not necessary to build
"""
output = ScopedOutput(str(package_ref.conan), self._out)
package_folder = self._client_cache.package(package_ref, short_paths=short_paths)
... | def get_package(self, package_ref, short_paths):
"""obtain a package, either from disk or retrieve from remotes if necessary
and not necessary to build
"""
output = ScopedOutput(str(package_ref.conan), self._out)
package_folder = self._client_cache.package(package_ref, short_paths=short_paths)
... | https://github.com/conan-io/conan/issues/1040 | D:\slave\ws\cab\extern\boost\1.63.0@0\ws>conan.exe upload "Boost/1.63.0@cab/extern" --all --confirm -r bop --retry 3
Uploading Boost/1.63.0@cab/extern
Compressing recipe...
Uploading conanmanifest.txt
Uploading conan_export.tgz
Uploaded conan recipe 'Boost/1.63.0@cab/extern' to 'bop': http://conan.bop
Uploading pac... | KeyError |
def update_available(self, conan_reference):
"""Returns 0 if the conanfiles are equal, 1 if there is an update and -1 if
the local is newer than the remote"""
if not conan_reference:
return 0
read_manifest, _ = self._client_cache.conan_manifests(conan_reference)
if read_manifest:
try... | def update_available(self, conan_reference):
"""Returns 0 if the conanfiles are equal, 1 if there is an update and -1 if
the local is newer than the remote"""
if not conan_reference:
return 0
read_manifest, _ = self._client_cache.conan_manifests(conan_reference)
if read_manifest:
try... | https://github.com/conan-io/conan/issues/1040 | D:\slave\ws\cab\extern\boost\1.63.0@0\ws>conan.exe upload "Boost/1.63.0@cab/extern" --all --confirm -r bop --retry 3
Uploading Boost/1.63.0@cab/extern
Compressing recipe...
Uploading conanmanifest.txt
Uploading conan_export.tgz
Uploaded conan recipe 'Boost/1.63.0@cab/extern' to 'bop': http://conan.bop
Uploading pac... | KeyError |
def upload_package(
self, package_reference, remote, retry, retry_wait, skip_upload=False
):
"""Will upload the package to the first remote"""
t1 = time.time()
# existing package, will use short paths if defined
package_folder = self._client_cache.package(package_reference, short_paths=None)
# G... | def upload_package(
self, package_reference, remote, retry, retry_wait, skip_upload=False
):
"""Will upload the package to the first remote"""
t1 = time.time()
# existing package, will use short paths if defined
package_folder = self._client_cache.package(package_reference, short_paths=None)
# G... | https://github.com/conan-io/conan/issues/1040 | D:\slave\ws\cab\extern\boost\1.63.0@0\ws>conan.exe upload "Boost/1.63.0@cab/extern" --all --confirm -r bop --retry 3
Uploading Boost/1.63.0@cab/extern
Compressing recipe...
Uploading conanmanifest.txt
Uploading conan_export.tgz
Uploaded conan recipe 'Boost/1.63.0@cab/extern' to 'bop': http://conan.bop
Uploading pac... | KeyError |
def _check_recipe_date(self, conan_ref):
try:
remote_recipe_manifest = self._remote_proxy.get_conan_digest(conan_ref)
except NotFoundException:
return # First upload
local_manifest = self._paths.load_manifest(conan_ref)
if (
remote_recipe_manifest != local_manifest
and... | def _check_recipe_date(self, conan_ref):
try:
remote_recipe_manifest = self._remote_proxy.get_conan_digest(conan_ref)
except NotFoundException:
return # First upload
local_manifest = self._paths.load_manifest(conan_ref)
if (
remote_recipe_manifest.file_sums != local_manifest.f... | https://github.com/conan-io/conan/issues/1040 | D:\slave\ws\cab\extern\boost\1.63.0@0\ws>conan.exe upload "Boost/1.63.0@cab/extern" --all --confirm -r bop --retry 3
Uploading Boost/1.63.0@cab/extern
Compressing recipe...
Uploading conanmanifest.txt
Uploading conan_export.tgz
Uploaded conan recipe 'Boost/1.63.0@cab/extern' to 'bop': http://conan.bop
Uploading pac... | KeyError |
def __eq__(self, other):
"""Two manifests are equal if file_sums"""
return self.file_sums == other.file_sums
| def __eq__(self, other):
return self.time == other.time and self.file_sums == other.file_sums
| https://github.com/conan-io/conan/issues/1040 | D:\slave\ws\cab\extern\boost\1.63.0@0\ws>conan.exe upload "Boost/1.63.0@cab/extern" --all --confirm -r bop --retry 3
Uploading Boost/1.63.0@cab/extern
Compressing recipe...
Uploading conanmanifest.txt
Uploading conan_export.tgz
Uploaded conan recipe 'Boost/1.63.0@cab/extern' to 'bop': http://conan.bop
Uploading pac... | KeyError |
def migrate_and_get_client_cache(base_folder, out, storage_folder=None):
# Init paths
client_cache = ClientCache(base_folder, storage_folder, out)
# Migration system
migrator = ClientMigrator(client_cache, Version(CLIENT_VERSION), out)
migrator.migrate()
return client_cache
| def migrate_and_get_client_cache(base_folder, out, manager, storage_folder=None):
# Init paths
client_cache = ClientCache(base_folder, storage_folder, out)
# Migration system
migrator = ClientMigrator(client_cache, Version(CLIENT_VERSION), out, manager)
migrator.migrate()
# Init again paths, m... | https://github.com/conan-io/conan/issues/803 | Traceback (most recent call last):
File "C:\Users\sztomi\AppData\Roaming\Python\Python36\site-packages\conans\client\store\sqlite.py", line 20, in init
statement.execute("PRAGMA auto_vacuum = INCREMENTAL;")
sqlite3.OperationalError: database is locked
During handling of the above exception, another exception occurred:... | sqlite3.OperationalError |
def get_command():
def instance_remote_manager(client_cache):
requester = requests.Session()
requester.proxies = client_cache.conan_config.proxies
# Verify client version against remotes
version_checker_requester = VersionCheckerRequester(
requester,
Version(C... | def get_command():
def instance_remote_manager(client_cache):
requester = requests.Session()
requester.proxies = client_cache.conan_config.proxies
# Verify client version against remotes
version_checker_requester = VersionCheckerRequester(
requester,
Version(C... | https://github.com/conan-io/conan/issues/803 | Traceback (most recent call last):
File "C:\Users\sztomi\AppData\Roaming\Python\Python36\site-packages\conans\client\store\sqlite.py", line 20, in init
statement.execute("PRAGMA auto_vacuum = INCREMENTAL;")
sqlite3.OperationalError: database is locked
During handling of the above exception, another exception occurred:... | sqlite3.OperationalError |
def __init__(self, client_cache, current_version, out):
self.client_cache = client_cache
super(ClientMigrator, self).__init__(
client_cache.conan_folder, client_cache.store, current_version, out
)
| def __init__(self, client_cache, current_version, out, manager):
self.client_cache = client_cache
self.manager = manager
super(ClientMigrator, self).__init__(
client_cache.conan_folder, client_cache.store, current_version, out
)
| https://github.com/conan-io/conan/issues/803 | Traceback (most recent call last):
File "C:\Users\sztomi\AppData\Roaming\Python\Python36\site-packages\conans\client\store\sqlite.py", line 20, in init
statement.execute("PRAGMA auto_vacuum = INCREMENTAL;")
sqlite3.OperationalError: database is locked
During handling of the above exception, another exception occurred:... | sqlite3.OperationalError |
def init(self, clean=False):
cursor = None
try:
cursor = self.connection.cursor()
if clean:
cursor.execute("drop table if exists %s" % REMOTES_USER_TABLE)
cursor.execute(
"create table if not exists %s "
"(remote_url TEXT UNIQUE, user TEXT, token TEXT)... | def init(self, clean=False):
SQLiteDB.init(self)
cursor = None
try:
cursor = self.connection.cursor()
# conan retrocompatibility
cursor.execute("drop table if exists %s" % USER_TABLE)
if clean:
cursor.execute("drop table if exists %s" % REMOTES_USER_TABLE)
... | https://github.com/conan-io/conan/issues/803 | Traceback (most recent call last):
File "C:\Users\sztomi\AppData\Roaming\Python\Python36\site-packages\conans\client\store\sqlite.py", line 20, in init
statement.execute("PRAGMA auto_vacuum = INCREMENTAL;")
sqlite3.OperationalError: database is locked
During handling of the above exception, another exception occurred:... | sqlite3.OperationalError |
def _config_node(self, conanfile, conanref, down_reqs, down_ref, down_options):
"""update settings and option in the current ConanFile, computing actual
requirement values, cause they can be overriden by downstream requires
param settings: dict of settings values => {"os": "windows"}
"""
try:
... | def _config_node(self, conanfile, conanref, down_reqs, down_ref, down_options):
"""update settings and option in the current ConanFile, computing actual
requirement values, cause they can be overriden by downstream requires
param settings: dict of settings values => {"os": "windows"}
"""
try:
... | https://github.com/conan-io/conan/issues/757 | Traceback (most recent call last):
File "<string>", line 10, in <module>
File "<string>", line 6, in run
File "conan\conans\client\command.py", line 931, in main
File "conan\conans\client\command.py", line 833, in run
File "conan\conans\client\command.py", line 441, in install
File "conan\conans\client\manager.py", lin... | AttributeError |
def add(self, reference, private=False, override=False, dev=False):
"""to define requirements by the user in text, prior to any propagation"""
assert isinstance(reference, six.string_types)
if dev and not self.allow_dev:
return
conan_reference = ConanFileReference.loads(reference)
name = co... | def add(self, reference, private=False, override=False, dev=False):
"""to define requirements by the user in text, prior to any propagation"""
assert isinstance(reference, six.string_types)
if dev and not self.allow_dev:
return
conan_reference = ConanFileReference.loads(reference)
name = co... | https://github.com/conan-io/conan/issues/757 | Traceback (most recent call last):
File "<string>", line 10, in <module>
File "<string>", line 6, in run
File "conan\conans\client\command.py", line 931, in main
File "conan\conans\client\command.py", line 833, in run
File "conan\conans\client\command.py", line 441, in install
File "conan\conans\client\manager.py", lin... | AttributeError |
def _create_new_node(self, current_node, dep_graph, requirement, public_deps, name_req):
"""creates and adds a new node to the dependency graph"""
conanfile_path = self._retriever.get_recipe(requirement.conan_reference)
output = ScopedOutput(str(requirement.conan_reference), self._output)
dep_conanfile ... | def _create_new_node(self, current_node, dep_graph, requirement, public_deps, name_req):
"""creates and adds a new node to the dependency graph"""
conanfile_path = self._retriever.get_conanfile(requirement.conan_reference)
output = ScopedOutput(str(requirement.conan_reference), self._output)
dep_conanfi... | https://github.com/conan-io/conan/issues/501 | DEBUG :uploader_downloader.py[74]: <type 'exceptions.MemoryError'> [2016-09-23 15:15:02,983]
DEBUG :uploader_downloader.py[75]: Traceback (most recent call last):
File "c:\python27\lib\site-packages\conans\client\rest\uploader_downloader.py", line 62, in download
ret.extend(data)
MemoryError | exceptions.MemoryError |
def download_packages(self, reference, package_ids):
assert isinstance(package_ids, list)
remote, _ = self._get_remote(reference)
export_path = self._client_cache.export(reference)
self._remote_manager.get_recipe(reference, export_path, remote)
self._registry.set_ref(reference, remote)
output = ... | def download_packages(self, reference, package_ids):
assert isinstance(package_ids, list)
remote, _ = self._get_remote(reference)
self._remote_manager.get_conanfile(reference, remote)
self._registry.set_ref(reference, remote)
output = ScopedOutput(str(reference), self._out)
for package_id in pac... | https://github.com/conan-io/conan/issues/501 | DEBUG :uploader_downloader.py[74]: <type 'exceptions.MemoryError'> [2016-09-23 15:15:02,983]
DEBUG :uploader_downloader.py[75]: Traceback (most recent call last):
File "c:\python27\lib\site-packages\conans\client\rest\uploader_downloader.py", line 62, in download
ret.extend(data)
MemoryError | exceptions.MemoryError |
def _retrieve_remote_package(self, package_reference, output, remote=None):
if remote is None:
remote = self._registry.get_ref(package_reference.conan)
if not remote:
output.warn(
"Package doesn't have a remote defined. "
"Probably created locally and not uploaded"
... | def _retrieve_remote_package(self, package_reference, output, remote=None):
if remote is None:
remote = self._registry.get_ref(package_reference.conan)
if not remote:
output.warn(
"Package doesn't have a remote defined. "
"Probably created locally and not uploaded"
... | https://github.com/conan-io/conan/issues/501 | DEBUG :uploader_downloader.py[74]: <type 'exceptions.MemoryError'> [2016-09-23 15:15:02,983]
DEBUG :uploader_downloader.py[75]: Traceback (most recent call last):
File "c:\python27\lib\site-packages\conans\client\rest\uploader_downloader.py", line 62, in download
ret.extend(data)
MemoryError | exceptions.MemoryError |
def _refresh():
export_path = self._client_cache.export(conan_reference)
rmdir(export_path)
# It might need to remove shortpath
rmdir(self._client_cache.source(conan_reference), True)
current_remote, _ = self._get_remote(conan_reference)
output.info("Retrieving from remote '%s'..." % current_rem... | def _refresh():
conan_dir_path = self._client_cache.export(conan_reference)
rmdir(conan_dir_path)
# It might need to remove shortpath
rmdir(self._client_cache.source(conan_reference), True)
current_remote, _ = self._get_remote(conan_reference)
output.info("Retrieving from remote '%s'..." % curre... | https://github.com/conan-io/conan/issues/501 | DEBUG :uploader_downloader.py[74]: <type 'exceptions.MemoryError'> [2016-09-23 15:15:02,983]
DEBUG :uploader_downloader.py[75]: Traceback (most recent call last):
File "c:\python27\lib\site-packages\conans\client\rest\uploader_downloader.py", line 62, in download
ret.extend(data)
MemoryError | exceptions.MemoryError |
def _retrieve_from_remote(remote):
output.info("Trying with '%s'..." % remote.name)
export_path = self._client_cache.export(conan_reference)
result = self._remote_manager.get_recipe(conan_reference, export_path, remote)
self._registry.set_ref(conan_reference, remote)
return result
| def _retrieve_from_remote(remote):
output.info("Trying with '%s'..." % remote.name)
result = self._remote_manager.get_conanfile(conan_reference, remote)
self._registry.set_ref(conan_reference, remote)
return result
| https://github.com/conan-io/conan/issues/501 | DEBUG :uploader_downloader.py[74]: <type 'exceptions.MemoryError'> [2016-09-23 15:15:02,983]
DEBUG :uploader_downloader.py[75]: Traceback (most recent call last):
File "c:\python27\lib\site-packages\conans\client\rest\uploader_downloader.py", line 62, in download
ret.extend(data)
MemoryError | exceptions.MemoryError |
def get_package(self, package_reference, dest_folder, remote):
"""
Read the conans package from remotes
Will iterate the remotes to find the conans unless remote was specified
returns (dict relative_filepath:abs_path , remote_name)"""
zipped_files = self._call_remote(
remote, "get_package",... | def get_package(self, package_reference, remote):
"""
Read the conans package from remotes
Will iterate the remotes to find the conans unless remote was specified
returns (dict relative_filepath:content , remote_name)"""
package_files = self._call_remote(remote, "get_package", package_reference)
... | https://github.com/conan-io/conan/issues/501 | DEBUG :uploader_downloader.py[74]: <type 'exceptions.MemoryError'> [2016-09-23 15:15:02,983]
DEBUG :uploader_downloader.py[75]: Traceback (most recent call last):
File "c:\python27\lib\site-packages\conans\client\rest\uploader_downloader.py", line 62, in download
ret.extend(data)
MemoryError | exceptions.MemoryError |
def get_package(self, package_reference, dest_folder):
return self._rest_client.get_package(package_reference, dest_folder)
| def get_package(self, package_reference):
return self._rest_client.get_package(package_reference)
| https://github.com/conan-io/conan/issues/501 | DEBUG :uploader_downloader.py[74]: <type 'exceptions.MemoryError'> [2016-09-23 15:15:02,983]
DEBUG :uploader_downloader.py[75]: Traceback (most recent call last):
File "c:\python27\lib\site-packages\conans\client\rest\uploader_downloader.py", line 62, in download
ret.extend(data)
MemoryError | exceptions.MemoryError |
def get_package(self, package_reference, dest_folder):
"""Gets a dict of filename:contents from package"""
url = "%s/conans/%s/packages/%s/download_urls" % (
self._remote_api_url,
"/".join(package_reference.conan),
package_reference.package_id,
)
urls = self._get_json(url)
if... | def get_package(self, package_reference):
"""Gets a dict of filename:contents from package"""
url = "%s/conans/%s/packages/%s/download_urls" % (
self._remote_api_url,
"/".join(package_reference.conan),
package_reference.package_id,
)
urls = self._get_json(url)
if not urls:
... | https://github.com/conan-io/conan/issues/501 | DEBUG :uploader_downloader.py[74]: <type 'exceptions.MemoryError'> [2016-09-23 15:15:02,983]
DEBUG :uploader_downloader.py[75]: Traceback (most recent call last):
File "c:\python27\lib\site-packages\conans\client\rest\uploader_downloader.py", line 62, in download
ret.extend(data)
MemoryError | exceptions.MemoryError |
def download(self, url, file_path=None, auth=None):
ret = bytearray()
response = self.requester.get(url, stream=True, verify=self.verify, auth=auth)
if not response.ok:
raise ConanException(
"Error %d downloading file %s" % (response.status_code, url)
)
try:
total_le... | def download(self, url, file_path=None, auth=None):
ret = bytearray()
response = self.requester.get(url, stream=True, verify=self.verify, auth=auth)
if not response.ok:
raise ConanException(
"Error %d downloading file %s" % (response.status_code, url)
)
try:
total_le... | https://github.com/conan-io/conan/issues/501 | DEBUG :uploader_downloader.py[74]: <type 'exceptions.MemoryError'> [2016-09-23 15:15:02,983]
DEBUG :uploader_downloader.py[75]: Traceback (most recent call last):
File "c:\python27\lib\site-packages\conans\client\rest\uploader_downloader.py", line 62, in download
ret.extend(data)
MemoryError | exceptions.MemoryError |
def run(self, *args):
"""HIDDEN: entry point for executing commands, dispatcher to class
methods
"""
errors = False
try:
try:
command = args[0][0]
commands = self._commands()
method = commands[command]
except KeyError as exc:
if command... | def run(self, *args):
"""HIDDEN: entry point for executing commands, dispatcher to class
methods
"""
errors = False
try:
try:
command = args[0][0]
commands = self._commands()
method = commands[command]
except KeyError as exc:
if command... | https://github.com/conan-io/conan/issues/416 | conan install ..\test_package
Boost/1.60.0@lasote/stable: Not found, looking in remotes...
Boost/1.60.0@lasote/stable: Trying with 'conan.io'...
Traceback (most recent call last):
File "<string>", line 10, in <module>
File "<string>", line 6, in run
File "conan\conans\client\command.py", line 767, in main
File "conan\c... | UnicodeEncodeError |
def _get_json(self, url, data=None):
if data: # POST request
headers = {"Content-type": "application/json", "Accept": "text/plain"}
headers.update(self.custom_headers)
response = self.requester.post(
url,
auth=self.auth,
headers=headers,
verif... | def _get_json(self, url, data=None):
if data: # POST request
headers = {"Content-type": "application/json", "Accept": "text/plain"}
headers.update(self.custom_headers)
response = self.requester.post(
url,
auth=self.auth,
headers=headers,
verif... | https://github.com/conan-io/conan/issues/416 | conan install ..\test_package
Boost/1.60.0@lasote/stable: Not found, looking in remotes...
Boost/1.60.0@lasote/stable: Trying with 'conan.io'...
Traceback (most recent call last):
File "<string>", line 10, in <module>
File "<string>", line 6, in run
File "conan\conans\client\command.py", line 767, in main
File "conan\c... | UnicodeEncodeError |
def _compute_private_nodes(self, deps_graph, build_mode):
"""computes a list of nodes that are not required to be built, as they are
private requirements of already available shared libraries as binaries
"""
private_closure = deps_graph.private_nodes()
skippable_nodes = []
for private_node, priv... | def _compute_private_nodes(self, deps_graph, build_mode):
"""computes a list of nodes that are not required to be built, as they are
private requirements of already available shared libraries as binaries
"""
private_closure = deps_graph.private_nodes()
skippable_nodes = []
for private_node, priv... | https://github.com/conan-io/conan/issues/79 | HEADER ONLY
Requirements
Boost/1.60.0@lasote/stable
catch/1.3.0@bjoern/testing
catch/1.3.0@bjoern/testing
filesystem/1.0.0@bjoern/testing
io/1.0.0@bjoern/testing
zlib/1.2.8@lasote/stable
Traceback (most recent call last):
File "/Users/bjoern/.pipsi/bin/conan", line 11, in <module>
sys.exit(run())
File "/Users/bjoern/.p... | AssertionError |
def __init__(self, model, parent, factory, resource_defs, service_model):
self._model = model
operation_name = self._model.request.operation
self._parent = parent
search_path = model.resource.path
self._handler = ResourceHandler(
search_path,
factory,
resource_defs,
... | def __init__(self, model, parent, factory, resource_defs, service_model):
self._model = model
operation_name = self._model.request.operation
self._parent = parent
search_path = model.path
self._handler = ResourceHandler(
search_path,
factory,
resource_defs,
service_m... | https://github.com/boto/boto3/issues/57 | Traceback (most recent call last):
File "./bug_report", line 10, in <module>
print o.size
File "/home/glacier/lib/lib/python2.7/site-packages/boto3/resources/factory.py", line 257, in property_loader
'{0} has no load method'.format(self.__class__.__name__))
boto3.exceptions.ResourceLoadException: s3.ObjectSummary has n... | boto3.exceptions.ResourceLoadException |
def on_shutdown(
manager: TaskManager, unsaved_jobs_lock: Lock
) -> Callable[[signal.Signals, Any], None]:
def actual_callback(s: signal.Signals, __: Any) -> None:
global shutting_down
manager.logger.error("Got interupted by %r, shutting down", s)
with unsaved_jobs_lock:
shut... | def on_shutdown(
manager: TaskManager.TaskManager, unsaved_jobs_lock: Lock
) -> Callable[[signal.Signals, Any], None]:
def actual_callback(s: signal.Signals, __: Any) -> None:
global shutting_down
manager.logger.error("Got interupted by %r, shutting down", s)
with unsaved_jobs_lock:
... | https://github.com/mozilla/OpenWPM/issues/810 | browser_manager - INFO - BROWSER 4: Launching browser...
task_manager - INFO -
OpenWPM Version: b'v0.13.0-3-g051a384'
Firefox Version: b'83.0'
========== Manager Configuration ==========
{
"aggregator_address": [
"127.0.0.1",
51454
],
"data_directory": "/Users/ankushdua/Desktop/",
"database_name"... | AttributeError |
def _accept(self):
"""Listen for connections and pass handling to a new thread"""
while True:
try:
(client, address) = self.sock.accept()
thread = threading.Thread(target=self._handle_conn, args=(client, address))
thread.daemon = True
thread.start()
... | def _accept(self):
"""Listen for connections and pass handling to a new thread"""
while True:
(client, address) = self.sock.accept()
thread = threading.Thread(target=self._handle_conn, args=(client, address))
thread.daemon = True
thread.start()
| https://github.com/mozilla/OpenWPM/issues/278 | BaseAggregator - INFO - Received shutdown signal!
Exception in thread Thread-1-LocalListener:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/local/Cellar/python/3.... | ConnectionAbortedError |
def get_firefox_binary_path():
"""
If ../../firefox-bin/firefox-bin or os.environ["FIREFOX_BINARY"] exists,
return it. Else, throw a RuntimeError.
"""
if "FIREFOX_BINARY" in os.environ:
firefox_binary_path = os.environ["FIREFOX_BINARY"]
if not os.path.isfile(firefox_binary_path):
... | def get_firefox_binary_path():
"""
If ../../firefox-bin/firefox-bin or os.environ["FIREFOX_BINARY"] exists,
return it. Else, throw a RuntimeError.
"""
if "FIREFOX_BINARY" in os.environ:
firefox_binary_path = os.environ["FIREFOX_BINARY"]
if not os.path.isfile(firefox_binary_path):
... | https://github.com/mozilla/OpenWPM/issues/278 | BaseAggregator - INFO - Received shutdown signal!
Exception in thread Thread-1-LocalListener:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/local/Cellar/python/3.... | ConnectionAbortedError |
def _accept(self):
"""Listen for connections and pass handling to a new thread"""
while True:
try:
(client, address) = self.sock.accept()
thread = threading.Thread(target=self._handle_conn, args=(client, address))
thread.daemon = True
thread.start()
... | def _accept(self):
"""Listen for connections and pass handling to a new thread"""
while True:
try:
(client, address) = self.sock.accept()
thread = threading.Thread(target=self._handle_conn, args=(client, address))
thread.daemon = True
thread.start()
... | https://github.com/mozilla/OpenWPM/issues/278 | BaseAggregator - INFO - Received shutdown signal!
Exception in thread Thread-1-LocalListener:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/local/Cellar/python/3.... | ConnectionAbortedError |
def _check_failure_status(self) -> None:
"""Check the status of command failures. Raise exceptions as necessary
The failure status property is used by the various asynchronous
command execution threads which interface with the
remote browser manager processes. If a failure status is found, the
appr... | def _check_failure_status(self) -> None:
"""Check the status of command failures. Raise exceptions as necessary
The failure status property is used by the various asynchronous
command execution threads which interface with the
remote browser manager processes. If a failure status is found, the
appr... | https://github.com/mozilla/OpenWPM/issues/547 | Traceback (most recent call last):
File "collect_links.py", line 55, in <module>
manager.execute_command_sequence(command_sequence)
File "<path>OpenWPM/automation/TaskManager.py", line 565, in execute_command_sequence
self._distribute_command(command_sequence, index)
File "<path>OpenWPM/automation/TaskManager.py", line... | TypeError |
def _issue_command(self, browser, command_sequence, condition=None):
"""
sends command tuple to the BrowserManager
"""
browser.is_fresh = False
# if this is a synced call, block on condition
if condition is not None:
with condition:
condition.wait()
reset = command_sequ... | def _issue_command(self, browser, command_sequence, condition=None):
"""
sends command tuple to the BrowserManager
"""
browser.is_fresh = False
# if this is a synced call, block on condition
if condition is not None:
with condition:
condition.wait()
reset = command_sequ... | https://github.com/mozilla/OpenWPM/issues/546 | Exception in thread Thread-1209:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "<path>/OpenWPM/automation/TaskManager.py", line 512, in _issue_com... | UnboundLocalError |
def _send_to_s3(self, force=False):
"""Copy in-memory batches to s3"""
for table_name, batches in self._batches.items():
if not force and len(batches) <= CACHE_SIZE:
continue
if table_name == SITE_VISITS_INDEX:
out_str = "\n".join([json.dumps(x) for x in batches])
... | def _send_to_s3(self, force=False):
"""Copy in-memory batches to s3"""
for table_name, batches in self._batches.items():
if not force and len(batches) <= CACHE_SIZE:
continue
if table_name == SITE_VISITS_INDEX:
out_str = "\n".join([json.dumps(x) for x in batches])
... | https://github.com/mozilla/OpenWPM/issues/498 | multiprocess_utils - ERROR - Exception in child process.
Traceback (most recent call last):
File "/home/travis/build/mozilla/OpenWPM/automation/utilities/multiprocess_utils.py", line 42, in run
mp.Process.run(self)
File "/home/travis/virtualenv/python2.7.15/lib/python2.7/site-packages/multiprocess/process.py",... | TypeError |
def _issue_command(self, browser, command_sequence, condition=None):
"""
sends command tuple to the BrowserManager
"""
browser.is_fresh = False
# if this is a synced call, block on condition
if condition is not None:
with condition:
condition.wait()
reset = command_sequ... | def _issue_command(self, browser, command_sequence, condition=None):
"""
sends command tuple to the BrowserManager
"""
browser.is_fresh = False
# if this is a synced call, block on condition
if condition is not None:
with condition:
condition.wait()
reset = command_sequ... | https://github.com/mozilla/OpenWPM/issues/286 | Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/multiprocess/process.py", line 297, in _bootstrap
self.run()
File "/usr/local/lib/python3.7/site-packages/multiprocess/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/Users/awagner/mozilla/OpenWPM/automation/Da... | pyarrow.lib.ArrowTypeError |
def browse_website(
url,
num_links,
sleep,
visit_id,
webdriver,
browser_params,
manager_params,
extension_socket,
):
"""Calls get_website before visiting <num_links> present on the page.
Note: the site_url in the site_visits table for the links visited will
be the site_url o... | def browse_website(
url,
num_links,
sleep,
visit_id,
webdriver,
browser_params,
manager_params,
extension_socket,
):
"""Calls get_website before visiting <num_links> present on the page.
Note: the site_url in the site_visits table for the links visited will
be the site_url o... | https://github.com/mozilla/OpenWPM/issues/167 | TaskManager - INFO -
OpenWPM Version: v0.8.0-137-gb0a8e00
Firefox Version: 52.4.1
========== Browser Configuration ==========
Keys:
{
"crawl_id": 0,
"adblock-plus": 1,
"bot_mitigation": 2,
"browser": 3,
"cookie_instrument": 4,
"cp_instrument": 5,
"disable_flash": 6,
"disconnect": 7,
"donottrack": 8,
"ext... | StaleElementReferenceException |
def is_active(input_element):
"""Check if we can interact with the given element."""
try:
return is_displayed(input_element) and input_element.is_enabled()
except WebDriverException:
return False
| def is_active(input_element):
"""Check if we can interact with the given element."""
try:
return input_element.is_displayed() and input_element.is_enabled()
except WebDriverException:
return False
| https://github.com/mozilla/OpenWPM/issues/167 | TaskManager - INFO -
OpenWPM Version: v0.8.0-137-gb0a8e00
Firefox Version: 52.4.1
========== Browser Configuration ==========
Keys:
{
"crawl_id": 0,
"adblock-plus": 1,
"bot_mitigation": 2,
"browser": 3,
"cookie_instrument": 4,
"cp_instrument": 5,
"disable_flash": 6,
"disconnect": 7,
"donottrack": 8,
"ext... | StaleElementReferenceException |
def fixSubTableOverFlows(ttf, overflowRecord):
"""
An offset has overflowed within a sub-table. We need to divide this subtable into smaller parts.
"""
ok = 0
table = ttf[overflowRecord.tableType].table
lookup = table.LookupList.Lookup[overflowRecord.LookupListIndex]
subIndex = overflowRecor... | def fixSubTableOverFlows(ttf, overflowRecord):
"""
An offset has overflowed within a sub-table. We need to divide this subtable into smaller parts.
"""
ok = 0
table = ttf[overflowRecord.tableType].table
lookup = table.LookupList.Lookup[overflowRecord.LookupListIndex]
subIndex = overflowRecor... | https://github.com/fonttools/fonttools/issues/574 | Parsing 'GlyphOrder' table...
Parsing 'head' table...
Parsing 'hhea' table...
Parsing 'maxp' table...
Parsing 'OS/2' table...
Parsing 'name' table...
Parsing 'cmap' table...
Parsing 'post' table...
Parsing 'CFF ' table...
Parsing 'BASE' table...
Parsing 'GDEF' table...
Parsing 'GPOS' table...
Parsing 'GSUB' table...
Pa... | AssertionError |
def train(args):
# parameters from arguments
class_dim = args.class_dim
model_name = args.model
checkpoint = args.checkpoint
pretrained_model = args.pretrained_model
with_memory_optimization = args.with_mem_opt
model_save_dir = args.model_save_dir
image_shape = [int(m) for m in args.imag... | def train(args):
# parameters from arguments
class_dim = args.class_dim
model_name = args.model
checkpoint = args.checkpoint
pretrained_model = args.pretrained_model
with_memory_optimization = args.with_mem_opt
model_save_dir = args.model_save_dir
image_shape = [int(m) for m in args.imag... | https://github.com/PaddlePaddle/models/issues/1089 | Traceback (most recent call last):
File "infer.py", line 94, in <module>
main()
File "infer.py", line 90, in main
infer(args)
File "infer.py", line 68, in infer
test_reader = paddle.batch(reader.test(), batch_size=test_batch_size)
TypeError: test() takes exactly 1 argument (0 given) | TypeError |
def _find_url(self, known_keys: list, links: dict) -> str:
links_keys = links.keys()
common_keys = [item for item in links_keys if item in known_keys]
key = next(iter(common_keys), None)
return links.get(key, {}).get("href", None)
| def _find_url(self, known_keys: set, links: dict) -> str:
intersection = known_keys.intersection(links)
iterator = iter(intersection)
key = next(iterator, None)
return links.get(key, {}).get("href", None)
| https://github.com/andreroggeri/pynubank/issues/195 | Traceback (most recent call last):
File ".\extrato-ofx2.py", line 53, in <module>
nubank_transactions = nu.get_card_statements()
File "C:\Users\danfc\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pynubank\nubank.py", line 123, in get_card_statements
feed = self.get_card_feed()
File "C:\Users\danfc\AppData... | pynubank.exception.NuRequestException |
def _save_auth_data(self, auth_data: dict) -> None:
self.client.set_header("Authorization", f"Bearer {auth_data['access_token']}")
links = auth_data["_links"]
self.query_url = links["ghostflame"]["href"]
feed_url_keys = ["events", "magnitude"]
bills_url_keys = ["bills_summary"]
customer_url_key... | def _save_auth_data(self, auth_data: dict) -> None:
self.client.set_header("Authorization", f"Bearer {auth_data['access_token']}")
links = auth_data["_links"]
self.query_url = links["ghostflame"]["href"]
feed_url_keys = {"events", "magnitude"}
bills_url_keys = {"bills_summary"}
customer_url_ke... | https://github.com/andreroggeri/pynubank/issues/195 | Traceback (most recent call last):
File ".\extrato-ofx2.py", line 53, in <module>
nubank_transactions = nu.get_card_statements()
File "C:\Users\danfc\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pynubank\nubank.py", line 123, in get_card_statements
feed = self.get_card_feed()
File "C:\Users\danfc\AppData... | pynubank.exception.NuRequestException |
def _password_auth(self, cpf: str, password: str):
payload = {
"grant_type": "password",
"login": cpf,
"password": password,
"client_id": "other.conta",
"client_secret": "yQPeLzoHuJzlMMSAjC-LgNUJdUecx8XO",
}
response = requests.post(self.auth_url, json=payload, header... | def _password_auth(self, cpf: str, password: str):
payload = {
"grant_type": "password",
"login": cpf,
"password": password,
"client_id": "other.conta",
"client_secret": "yQPeLzoHuJzlMMSAjC-LgNUJdUecx8XO",
}
response = requests.post(self.auth_url, json=payload, header... | https://github.com/andreroggeri/pynubank/issues/69 | from nubank import *
nu = Nubank()
uuid, qr_code = nu.get_qr_code()
qr_code.print_ascii(invert=True)
█████████████████████████████████████
█████████████████████████████████████
████ ▄▄▄▄▄ ██▄▀ █ ▀ ▀▀▄▄▄█ ▄▄▄▄▄ ████
████ █ █ █ ▀▀ ▄▄▀ ▀▀ ▄ █ █ █ ████
████ █▄▄▄█ █ ▀▄ ███▀█▄▄▄▀█ █▄▄▄█ ████
████▄▄▄▄▄▄▄█ █ █ █ █ █▄█ █▄▄▄... | KeyError |
def authenticate_with_qr_code(self, cpf: str, password, uuid: str):
auth_data = self._password_auth(cpf, password)
self.headers["Authorization"] = f"Bearer {auth_data['access_token']}"
payload = {"qr_code_id": uuid, "type": "login-webapp"}
response = requests.post(
self.proxy_list_app_url["lif... | def authenticate_with_qr_code(self, cpf: str, password, uuid: str):
auth_data = self._password_auth(cpf, password)
self.headers["Authorization"] = f"Bearer {auth_data['access_token']}"
payload = {"qr_code_id": uuid, "type": "login-webapp"}
response = requests.post(
self.proxy_list_app_url["lif... | https://github.com/andreroggeri/pynubank/issues/69 | from nubank import *
nu = Nubank()
uuid, qr_code = nu.get_qr_code()
qr_code.print_ascii(invert=True)
█████████████████████████████████████
█████████████████████████████████████
████ ▄▄▄▄▄ ██▄▀ █ ▀ ▀▀▄▄▄█ ▄▄▄▄▄ ████
████ █ █ █ ▀▀ ▄▄▀ ▀▀ ▄ █ █ █ ████
████ █▄▄▄█ █ ▀▄ ███▀█▄▄▄▀█ █▄▄▄█ ████
████▄▄▄▄▄▄▄█ █ █ █ █ █▄█ █▄▄▄... | KeyError |
def get_job_result(self, job_id: str) -> Result:
"""Returns the result of a job.
Args:
job_id (str): the job ID
Returns:
strawberryfields.api.Result: the job result
"""
path = "/jobs/{}/result".format(job_id)
response = requests.get(
self._url(path), headers={"Accept": ... | def get_job_result(self, job_id: str) -> Result:
"""Returns the result of a job.
Args:
job_id (str): the job ID
Returns:
strawberryfields.api.Result: the job result
"""
path = "/jobs/{}/result".format(job_id)
response = requests.get(
self._url(path), headers={"Accept": ... | https://github.com/XanaduAI/strawberryfields/issues/356 | Traceback (most recent call last):
File "remote_engine_example.py", line 27, in <module>
print(result)
File "/strawberryfields/strawberryfields/api/result.py", line 113, in __str__
len(self.samples), self.state, self.samples
File "/strawberryfields/strawberryfields/api/result.py", line 107, in state
raise AttributeErro... | AttributeError |
def measure_homodyne(self, phi, mode, select=None, **kwargs):
"""
Performs a homodyne measurement on a mode.
"""
m_omega_over_hbar = 1 / self._hbar
# Make sure the state is mixed for reduced density matrix
if self._pure:
state = ops.mix(self._state, self._num_modes)
else:
st... | def measure_homodyne(self, phi, mode, select=None, **kwargs):
"""
Performs a homodyne measurement on a mode.
"""
m_omega_over_hbar = 1 / self._hbar
# Make sure the state is mixed for reduced density matrix
if self._pure:
state = ops.mix(self._state, self._num_modes)
else:
st... | https://github.com/XanaduAI/strawberryfields/issues/354 | ---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-27-d8f9402683f5> in <module>
2
3 for x in pbar(flag):
----> 4 dummy = xaxb()
5
6 x_vals[i]=dummy[0]
<ipython-input-22-64fa305c29f6> in xaxb()
12... | ValueError |
def _compile_with_cache_cuda(
source,
options,
arch,
cache_dir,
extra_source=None,
backend="nvrtc",
enable_cooperative_groups=False,
name_expressions=None,
log_stream=None,
cache_in_memory=False,
jitify=False,
):
# NVRTC does not use extra_source. extra_source is used for... | def _compile_with_cache_cuda(
source,
options,
arch,
cache_dir,
extra_source=None,
backend="nvrtc",
enable_cooperative_groups=False,
name_expressions=None,
log_stream=None,
cache_in_memory=False,
jitify=False,
):
# NVRTC does not use extra_source. extra_source is used for... | https://github.com/cupy/cupy/issues/4421 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "cupy\core\raw.pyx", line 282, in cupy.core.raw.RawKernel.compile
File "cupy\core\raw.pyx", line 110, in cupy.core.raw.RawKernel._kernel
File "cupy\cuda\function.pyx", line 234, in cupy.cuda.function.Module.get_function
File "cupy\cuda\function... | cupy_backends.cuda.api.driver.CUDADriverError |
def bytes(length):
"""Returns random bytes.
.. note:: This function is just a wrapper for :obj:`numpy.random.bytes`.
The resulting bytes are generated on the host (NumPy), not GPU.
.. seealso:: :meth:`numpy.random.bytes
<numpy.random.mtrand.RandomState.bytes>`
"""
# TODO(k... | def bytes(length):
"""Returns random bytes.
.. seealso:: :meth:`numpy.random.bytes
<numpy.random.mtrand.RandomState.bytes>`
"""
return _numpy.bytes(length)
| https://github.com/cupy/cupy/issues/4312 | ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-121-104e7c75af44> in <module>
1 import cupy as cp
----> 2 b = cp.random.bytes(10)
~/.conda/envs/rapids-0.16/lib/python3.7/site-packages/cupy/random/__in... | AttributeError |
def affine_transform(
input,
matrix,
offset=0.0,
output_shape=None,
output=None,
order=None,
mode="constant",
cval=0.0,
prefilter=True,
):
"""Apply an affine transformation.
Given an output image pixel index vector ``o``, the pixel value is
determined from the input imag... | def affine_transform(
input,
matrix,
offset=0.0,
output_shape=None,
output=None,
order=None,
mode="constant",
cval=0.0,
prefilter=True,
):
"""Apply an affine transformation.
Given an output image pixel index vector ``o``, the pixel value is
determined from the input imag... | https://github.com/cupy/cupy/issues/3601 | cupyx.scipy.ndimage.affine_transform(im, M, output_shape=smaller_shape, output=smaller, mode='opencv')
/home/ext-mtakagi/cupy/cupyx/scipy/ndimage/interpolation.py:30: UserWarning: In the current feature the default order of affine_transform is 1. It is different from scipy.ndimage and can change in the future.
'the fut... | UnboundLocalError |
def _generate_nd_kernel(
name,
pre,
found,
post,
mode,
w_shape,
int_type,
offsets,
cval,
ctype="X",
preamble="",
options=(),
has_weights=True,
has_structure=False,
has_mask=False,
binary_morphology=False,
all_weights_nonzero=False,
):
# Currently t... | def _generate_nd_kernel(
name,
pre,
found,
post,
mode,
w_shape,
int_type,
offsets,
cval,
ctype="X",
preamble="",
options=(),
has_weights=True,
has_structure=False,
has_mask=False,
binary_morphology=False,
all_weights_nonzero=False,
):
# Currently t... | https://github.com/cupy/cupy/issues/4082 | /home/croat/.local/share/virtualenvs/starmap-T47byR32/lib/python3.8/site-packages/cupyx/scipy/ndimage/interpolation.py:15: UserWarning: In the current feature the default order of shift is 1. It is different from scipy.ndimage and can change in the future.
warnings.warn('In the current feature the default order of {} i... | cupy_backends.cuda.libs.nvrtc.NVRTCError |
def _generate_interp_custom(
coord_func,
ndim,
large_int,
yshape,
mode,
cval,
order,
name="",
integer_output=False,
):
"""
Args:
coord_func (function): generates code to do the coordinate
transformation. See for example, `_get_coord_shift`.
ndim (i... | def _generate_interp_custom(
coord_func,
ndim,
large_int,
yshape,
mode,
cval,
order,
name="",
integer_output=False,
):
"""
Args:
coord_func (function): generates code to do the coordinate
transformation. See for example, `_get_coord_shift`.
ndim (i... | https://github.com/cupy/cupy/issues/4082 | /home/croat/.local/share/virtualenvs/starmap-T47byR32/lib/python3.8/site-packages/cupyx/scipy/ndimage/interpolation.py:15: UserWarning: In the current feature the default order of shift is 1. It is different from scipy.ndimage and can change in the future.
warnings.warn('In the current feature the default order of {} i... | cupy_backends.cuda.libs.nvrtc.NVRTCError |
def _get_map_kernel(
ndim, large_int, yshape, mode, cval=0.0, order=1, integer_output=False
):
in_params = "raw X x, raw W coords"
out_params = "Y y"
operation, name = _generate_interp_custom(
coord_func=_get_coord_map,
ndim=ndim,
large_int=large_int,
yshape=yshape,
... | def _get_map_kernel(
ndim, large_int, yshape, mode, cval=0.0, order=1, integer_output=False
):
in_params = "raw X x, raw W coords"
out_params = "Y y"
operation, name = _generate_interp_custom(
coord_func=_get_coord_map,
ndim=ndim,
large_int=large_int,
yshape=yshape,
... | https://github.com/cupy/cupy/issues/4082 | /home/croat/.local/share/virtualenvs/starmap-T47byR32/lib/python3.8/site-packages/cupyx/scipy/ndimage/interpolation.py:15: UserWarning: In the current feature the default order of shift is 1. It is different from scipy.ndimage and can change in the future.
warnings.warn('In the current feature the default order of {} i... | cupy_backends.cuda.libs.nvrtc.NVRTCError |
def _get_shift_kernel(
ndim, large_int, yshape, mode, cval=0.0, order=1, integer_output=False
):
in_params = "raw X x, raw W shift"
out_params = "Y y"
operation, name = _generate_interp_custom(
coord_func=_get_coord_shift,
ndim=ndim,
large_int=large_int,
yshape=yshape,
... | def _get_shift_kernel(
ndim, large_int, yshape, mode, cval=0.0, order=1, integer_output=False
):
in_params = "raw X x, raw W shift"
out_params = "Y y"
operation, name = _generate_interp_custom(
coord_func=_get_coord_shift,
ndim=ndim,
large_int=large_int,
yshape=yshape,
... | https://github.com/cupy/cupy/issues/4082 | /home/croat/.local/share/virtualenvs/starmap-T47byR32/lib/python3.8/site-packages/cupyx/scipy/ndimage/interpolation.py:15: UserWarning: In the current feature the default order of shift is 1. It is different from scipy.ndimage and can change in the future.
warnings.warn('In the current feature the default order of {} i... | cupy_backends.cuda.libs.nvrtc.NVRTCError |
def _get_zoom_shift_kernel(
ndim, large_int, yshape, mode, cval=0.0, order=1, integer_output=False
):
in_params = "raw X x, raw W shift, raw W zoom"
out_params = "Y y"
operation, name = _generate_interp_custom(
coord_func=_get_coord_zoom_and_shift,
ndim=ndim,
large_int=large_int,... | def _get_zoom_shift_kernel(
ndim, large_int, yshape, mode, cval=0.0, order=1, integer_output=False
):
in_params = "raw X x, raw W shift, raw W zoom"
out_params = "Y y"
operation, name = _generate_interp_custom(
coord_func=_get_coord_zoom_and_shift,
ndim=ndim,
large_int=large_int,... | https://github.com/cupy/cupy/issues/4082 | /home/croat/.local/share/virtualenvs/starmap-T47byR32/lib/python3.8/site-packages/cupyx/scipy/ndimage/interpolation.py:15: UserWarning: In the current feature the default order of shift is 1. It is different from scipy.ndimage and can change in the future.
warnings.warn('In the current feature the default order of {} i... | cupy_backends.cuda.libs.nvrtc.NVRTCError |
def _get_zoom_kernel(
ndim, large_int, yshape, mode, cval=0.0, order=1, integer_output=False
):
in_params = "raw X x, raw W zoom"
out_params = "Y y"
operation, name = _generate_interp_custom(
coord_func=_get_coord_zoom,
ndim=ndim,
large_int=large_int,
yshape=yshape,
... | def _get_zoom_kernel(
ndim, large_int, yshape, mode, cval=0.0, order=1, integer_output=False
):
in_params = "raw X x, raw W zoom"
out_params = "Y y"
operation, name = _generate_interp_custom(
coord_func=_get_coord_zoom,
ndim=ndim,
large_int=large_int,
yshape=yshape,
... | https://github.com/cupy/cupy/issues/4082 | /home/croat/.local/share/virtualenvs/starmap-T47byR32/lib/python3.8/site-packages/cupyx/scipy/ndimage/interpolation.py:15: UserWarning: In the current feature the default order of shift is 1. It is different from scipy.ndimage and can change in the future.
warnings.warn('In the current feature the default order of {} i... | cupy_backends.cuda.libs.nvrtc.NVRTCError |
def _get_affine_kernel(
ndim, large_int, yshape, mode, cval=0.0, order=1, integer_output=False
):
in_params = "raw X x, raw W mat"
out_params = "Y y"
operation, name = _generate_interp_custom(
coord_func=_get_coord_affine,
ndim=ndim,
large_int=large_int,
yshape=yshape,
... | def _get_affine_kernel(
ndim, large_int, yshape, mode, cval=0.0, order=1, integer_output=False
):
in_params = "raw X x, raw W mat"
out_params = "Y y"
operation, name = _generate_interp_custom(
coord_func=_get_coord_affine,
ndim=ndim,
large_int=large_int,
yshape=yshape,
... | https://github.com/cupy/cupy/issues/4082 | /home/croat/.local/share/virtualenvs/starmap-T47byR32/lib/python3.8/site-packages/cupyx/scipy/ndimage/interpolation.py:15: UserWarning: In the current feature the default order of shift is 1. It is different from scipy.ndimage and can change in the future.
warnings.warn('In the current feature the default order of {} i... | cupy_backends.cuda.libs.nvrtc.NVRTCError |
def _correlate_or_convolve(
input, weights, output, mode, cval, origin, convolution=False
):
origins, int_type = _filters_core._check_nd_args(input, weights, mode, origin)
if weights.size == 0:
return cupy.zeros_like(input)
_util._check_cval(mode, cval, _util._is_integer_output(output, input))
... | def _correlate_or_convolve(
input, weights, output, mode, cval, origin, convolution=False
):
origins, int_type = _filters_core._check_nd_args(input, weights, mode, origin)
if weights.size == 0:
return cupy.zeros_like(input)
if convolution:
weights = weights[tuple([slice(None, None, -1)] ... | https://github.com/cupy/cupy/issues/4082 | /home/croat/.local/share/virtualenvs/starmap-T47byR32/lib/python3.8/site-packages/cupyx/scipy/ndimage/interpolation.py:15: UserWarning: In the current feature the default order of shift is 1. It is different from scipy.ndimage and can change in the future.
warnings.warn('In the current feature the default order of {} i... | cupy_backends.cuda.libs.nvrtc.NVRTCError |
def _min_or_max_filter(
input, size, ftprnt, structure, output, mode, cval, origin, func
):
# structure is used by morphology.grey_erosion() and grey_dilation()
# and not by the regular min/max filters
sizes, ftprnt, structure = _filters_core._check_size_footprint_structure(
input.ndim, size, f... | def _min_or_max_filter(
input, size, ftprnt, structure, output, mode, cval, origin, func
):
# structure is used by morphology.grey_erosion() and grey_dilation()
# and not by the regular min/max filters
sizes, ftprnt, structure = _filters_core._check_size_footprint_structure(
input.ndim, size, f... | https://github.com/cupy/cupy/issues/4082 | /home/croat/.local/share/virtualenvs/starmap-T47byR32/lib/python3.8/site-packages/cupyx/scipy/ndimage/interpolation.py:15: UserWarning: In the current feature the default order of shift is 1. It is different from scipy.ndimage and can change in the future.
warnings.warn('In the current feature the default order of {} i... | cupy_backends.cuda.libs.nvrtc.NVRTCError |
def _rank_filter(
input,
get_rank,
size=None,
footprint=None,
output=None,
mode="reflect",
cval=0.0,
origin=0,
):
_, footprint, _ = _filters_core._check_size_footprint_structure(
input.ndim, size, footprint, None, force_footprint=True
)
if cval is cupy.nan:
ra... | def _rank_filter(
input,
get_rank,
size=None,
footprint=None,
output=None,
mode="reflect",
cval=0.0,
origin=0,
):
_, footprint, _ = _filters_core._check_size_footprint_structure(
input.ndim, size, footprint, None, force_footprint=True
)
origins, int_type = _filters_co... | https://github.com/cupy/cupy/issues/4082 | /home/croat/.local/share/virtualenvs/starmap-T47byR32/lib/python3.8/site-packages/cupyx/scipy/ndimage/interpolation.py:15: UserWarning: In the current feature the default order of shift is 1. It is different from scipy.ndimage and can change in the future.
warnings.warn('In the current feature the default order of {} i... | cupy_backends.cuda.libs.nvrtc.NVRTCError |
def map_coordinates(
input,
coordinates,
output=None,
order=None,
mode="constant",
cval=0.0,
prefilter=True,
):
"""Map the input array to new coordinates by interpolation.
The array of coordinates is used to find, for each point in the output, the
corresponding coordinates in th... | def map_coordinates(
input,
coordinates,
output=None,
order=None,
mode="constant",
cval=0.0,
prefilter=True,
):
"""Map the input array to new coordinates by interpolation.
The array of coordinates is used to find, for each point in the output, the
corresponding coordinates in th... | https://github.com/cupy/cupy/issues/4082 | /home/croat/.local/share/virtualenvs/starmap-T47byR32/lib/python3.8/site-packages/cupyx/scipy/ndimage/interpolation.py:15: UserWarning: In the current feature the default order of shift is 1. It is different from scipy.ndimage and can change in the future.
warnings.warn('In the current feature the default order of {} i... | cupy_backends.cuda.libs.nvrtc.NVRTCError |
def affine_transform(
input,
matrix,
offset=0.0,
output_shape=None,
output=None,
order=None,
mode="constant",
cval=0.0,
prefilter=True,
):
"""Apply an affine transformation.
Given an output image pixel index vector ``o``, the pixel value is
determined from the input imag... | def affine_transform(
input,
matrix,
offset=0.0,
output_shape=None,
output=None,
order=None,
mode="constant",
cval=0.0,
prefilter=True,
):
"""Apply an affine transformation.
Given an output image pixel index vector ``o``, the pixel value is
determined from the input imag... | https://github.com/cupy/cupy/issues/4082 | /home/croat/.local/share/virtualenvs/starmap-T47byR32/lib/python3.8/site-packages/cupyx/scipy/ndimage/interpolation.py:15: UserWarning: In the current feature the default order of shift is 1. It is different from scipy.ndimage and can change in the future.
warnings.warn('In the current feature the default order of {} i... | cupy_backends.cuda.libs.nvrtc.NVRTCError |
def shift(
input, shift, output=None, order=None, mode="constant", cval=0.0, prefilter=True
):
"""Shift an array.
The array is shifted using spline interpolation of the requested order.
Points outside the boundaries of the input are filled according to the
given mode.
Args:
input (cupy... | def shift(
input, shift, output=None, order=None, mode="constant", cval=0.0, prefilter=True
):
"""Shift an array.
The array is shifted using spline interpolation of the requested order.
Points outside the boundaries of the input are filled according to the
given mode.
Args:
input (cupy... | https://github.com/cupy/cupy/issues/4082 | /home/croat/.local/share/virtualenvs/starmap-T47byR32/lib/python3.8/site-packages/cupyx/scipy/ndimage/interpolation.py:15: UserWarning: In the current feature the default order of shift is 1. It is different from scipy.ndimage and can change in the future.
warnings.warn('In the current feature the default order of {} i... | cupy_backends.cuda.libs.nvrtc.NVRTCError |
def zoom(
input, zoom, output=None, order=None, mode="constant", cval=0.0, prefilter=True
):
"""Zoom an array.
The array is zoomed using spline interpolation of the requested order.
Args:
input (cupy.ndarray): The input array.
zoom (float or sequence): The zoom factor along the axes. I... | def zoom(
input, zoom, output=None, order=None, mode="constant", cval=0.0, prefilter=True
):
"""Zoom an array.
The array is zoomed using spline interpolation of the requested order.
Args:
input (cupy.ndarray): The input array.
zoom (float or sequence): The zoom factor along the axes. I... | https://github.com/cupy/cupy/issues/4082 | /home/croat/.local/share/virtualenvs/starmap-T47byR32/lib/python3.8/site-packages/cupyx/scipy/ndimage/interpolation.py:15: UserWarning: In the current feature the default order of shift is 1. It is different from scipy.ndimage and can change in the future.
warnings.warn('In the current feature the default order of {} i... | cupy_backends.cuda.libs.nvrtc.NVRTCError |
def _exec_fft(
a,
direction,
value_type,
norm,
axis,
overwrite_x,
out_size=None,
out=None,
plan=None,
):
fft_type = _convert_fft_type(a.dtype, value_type)
if axis % a.ndim != a.ndim - 1:
a = a.swapaxes(axis, -1)
if a.base is not None or not a.flags.c_contiguous:... | def _exec_fft(
a,
direction,
value_type,
norm,
axis,
overwrite_x,
out_size=None,
out=None,
plan=None,
):
fft_type = _convert_fft_type(a.dtype, value_type)
if axis % a.ndim != a.ndim - 1:
a = a.swapaxes(axis, -1)
if a.base is not None or not a.flags.c_contiguous:... | https://github.com/cupy/cupy/issues/3241 | np.fft.fft(np.array([]))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<__array_function__ internals>", line 5, in fft
File "/path/to/python3.8/site-packages/numpy-1.18.2-py3.8-linux-x86_64.egg/numpy/fft/_pocketfft.py", line 188, in fft
output = _raw_fft(a, n, axis, False, True, inv_norm)... | ValueError |
def _fft(a, s, axes, norm, direction, value_type="C2C", overwrite_x=False, plan=None):
if norm not in (None, "ortho"):
raise ValueError('Invalid norm value %s, should be None or "ortho".' % norm)
if (s is not None) and (axes is not None) and len(s) != len(axes):
raise ValueError("Shape and axes... | def _fft(a, s, axes, norm, direction, value_type="C2C", overwrite_x=False, plan=None):
if norm not in (None, "ortho"):
raise ValueError('Invalid norm value %s, should be None or "ortho".' % norm)
if s is not None:
for n in s:
if (n is not None) and (n < 1):
raise Val... | https://github.com/cupy/cupy/issues/3241 | np.fft.fft(np.array([]))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<__array_function__ internals>", line 5, in fft
File "/path/to/python3.8/site-packages/numpy-1.18.2-py3.8-linux-x86_64.egg/numpy/fft/_pocketfft.py", line 188, in fft
output = _raw_fft(a, n, axis, False, True, inv_norm)... | ValueError |
def _get_cufft_plan_nd(shape, fft_type, axes=None, order="C", out_size=None):
"""Generate a CUDA FFT plan for transforming up to three axes.
Args:
shape (tuple of int): The shape of the array to transform
fft_type (int): The FFT type to perform. Supported values are:
`cufft.CUFFT_C2... | def _get_cufft_plan_nd(shape, fft_type, axes=None, order="C", out_size=None):
"""Generate a CUDA FFT plan for transforming up to three axes.
Args:
shape (tuple of int): The shape of the array to transform
fft_type (int): The FFT type to perform. Supported values are:
`cufft.CUFFT_C2... | https://github.com/cupy/cupy/issues/3241 | np.fft.fft(np.array([]))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<__array_function__ internals>", line 5, in fft
File "/path/to/python3.8/site-packages/numpy-1.18.2-py3.8-linux-x86_64.egg/numpy/fft/_pocketfft.py", line 188, in fft
output = _raw_fft(a, n, axis, False, True, inv_norm)... | ValueError |
def _exec_fftn(
a,
direction,
value_type,
norm,
axes,
overwrite_x,
plan=None,
out=None,
out_size=None,
):
fft_type = _convert_fft_type(a.dtype, value_type)
if a.flags.c_contiguous:
order = "C"
elif a.flags.f_contiguous:
order = "F"
else:
raise... | def _exec_fftn(
a,
direction,
value_type,
norm,
axes,
overwrite_x,
plan=None,
out=None,
out_size=None,
):
fft_type = _convert_fft_type(a.dtype, value_type)
if a.flags.c_contiguous:
order = "C"
elif a.flags.f_contiguous:
order = "F"
else:
raise... | https://github.com/cupy/cupy/issues/3241 | np.fft.fft(np.array([]))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<__array_function__ internals>", line 5, in fft
File "/path/to/python3.8/site-packages/numpy-1.18.2-py3.8-linux-x86_64.egg/numpy/fft/_pocketfft.py", line 188, in fft
output = _raw_fft(a, n, axis, False, True, inv_norm)... | ValueError |
def _fftn(
a,
s,
axes,
norm,
direction,
value_type="C2C",
order="A",
plan=None,
overwrite_x=False,
out=None,
):
if norm not in (None, "ortho"):
raise ValueError('Invalid norm value %s, should be None or "ortho".' % norm)
axes, axes_sorted = _prep_fftn_axes(a.ndim... | def _fftn(
a,
s,
axes,
norm,
direction,
value_type="C2C",
order="A",
plan=None,
overwrite_x=False,
out=None,
):
if norm not in (None, "ortho"):
raise ValueError('Invalid norm value %s, should be None or "ortho".' % norm)
axes, axes_sorted = _prep_fftn_axes(a.ndim... | https://github.com/cupy/cupy/issues/3241 | np.fft.fft(np.array([]))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<__array_function__ internals>", line 5, in fft
File "/path/to/python3.8/site-packages/numpy-1.18.2-py3.8-linux-x86_64.egg/numpy/fft/_pocketfft.py", line 188, in fft
output = _raw_fft(a, n, axis, False, True, inv_norm)... | ValueError |
def _min_or_max(self, axis, out, min_or_max, sum_duplicates, non_zero):
if out is not None:
raise ValueError(("Sparse matrices do not support an 'out' parameter."))
util.validateaxis(axis)
if axis is None:
if 0 in self.shape:
raise ValueError("zero-size array to reduction opera... | def _min_or_max(self, axis, out, min_or_max, sum_duplicates, non_zero):
if out is not None:
raise ValueError(("Sparse matrices do not support an 'out' parameter."))
util.validateaxis(axis)
if axis == 0 or axis == 1:
return self._min_or_max_axis(axis, min_or_max, sum_duplicates, non_zero)
... | https://github.com/cupy/cupy/issues/3506 | import cupy
import cupyx
m = cupy.random.rand(100).reshape(10, 10)
m[m < 0.95] = 0
m = cupyx.scipy.sparse.csr_matrix(m)
m.min()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ext-mtakagi/cupy/cupyx/scipy/sparse/data.py", line 284, in min
return self._min_or_max(axis, out, cupy.min, s... | TypeError |
def __init__(self, arg1, shape=None, dtype=None, copy=False):
if _scipy_available and scipy.sparse.issparse(arg1):
x = arg1.todia()
data = x.data
offsets = x.offsets
shape = x.shape
dtype = x.dtype
copy = False
elif isinstance(arg1, tuple):
data, offsets =... | def __init__(self, arg1, shape=None, dtype=None, copy=False):
if isinstance(arg1, tuple):
data, offsets = arg1
if shape is None:
raise ValueError("expected a shape argument")
else:
raise ValueError("unrecognized form for dia_matrix constructor")
data = cupy.array(data, ... | https://github.com/cupy/cupy/issues/3158 | In [1]: import numpy
In [2]: import scipy.sparse
In [3]: import cupy.sparse
In [4]: a_host = numpy.array([[0, 1, 0],
...: [2, 0, 3],
...: [0, 4, 0]], dtype=float)
In [5]: asp_host = scipy.sparse.dia_matrix(a_host)
In [6]: asp_dev = cupy.sparse.dia_matrix(asp_host)
------... | ValueError |
def norm(x, ord=None, axis=None, keepdims=False):
"""Returns one of matrix norms specified by ``ord`` parameter.
See numpy.linalg.norm for more detail.
Args:
x (cupy.ndarray): Array to take norm. If ``axis`` is None,
``x`` must be 1-D or 2-D.
ord (non-zero int, inf, -inf, 'fro'... | def norm(x, ord=None, axis=None, keepdims=False):
"""Returns one of matrix norms specified by ``ord`` parameter.
See numpy.linalg.norm for more detail.
Args:
x (cupy.ndarray): Array to take norm. If ``axis`` is None,
``x`` must be 1-D or 2-D.
ord (non-zero int, inf, -inf, 'fro'... | https://github.com/cupy/cupy/issues/3053 | import numpy as np
a = [[2, 0, 1], [-1, 1, 0], [-3, 3, 0]]
a = np.asarray(a, dtype=np.float64)
np.linalg.norm(a, ord=2)
4.723421263784789
import cupy as cp
b = cp.asarray(a)
cp.linalg.norm(b, ord=2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/leofang/test/cupy2/cupy/linalg/norms... | ValueError |
def _check_cusolver_dev_info_if_synchronization_allowed(routine, dev_info):
# `dev_info` contains a single integer, the status code of a cuSOLVER
# routine call. It is referred to as "devInfo" in the official cuSOLVER
# documentation.
assert isinstance(dev_info, core.ndarray)
assert dev_info.size ==... | def _check_cusolver_dev_info_if_synchronization_allowed(routine, dev_info):
# `dev_info` contains a single integer, the status code of a cuSOLVER
# routine call. It is referred to as "devInfo" in the official cuSOLVER
# documentation.
assert isinstance(dev_info, core.ndarray)
assert dev_info.size ==... | https://github.com/cupy/cupy/issues/2911 | Traceback (most recent call last):
File "cpu-svd.py", line 10, in <module>
u.compute()
File "/datasets/bzaitlen/miniconda3/envs/rapids-12/lib/python3.7/site-packages/dask/base.py", line 165, in compute
(result,) = compute(self, traverse=False, **kwargs)
File "/datasets/bzaitlen/miniconda3/envs/rapids-12/lib/python3.7/s... | AttributeError |
def _check_cublas_info_array_if_synchronization_allowed(routine, info_array):
# `info_array` contains integers, the status codes of a cuBLAS routine
# call. It is referrd to as "infoArray" or "devInfoArray" in the official
# cuBLAS documentation.
assert isinstance(info_array, core.ndarray)
assert in... | def _check_cublas_info_array_if_synchronization_allowed(routine, info_array):
# `info_array` contains integers, the status codes of a cuBLAS routine
# call. It is referrd to as "infoArray" or "devInfoArray" in the official
# cuBLAS documentation.
assert isinstance(info_array, core.ndarray)
assert in... | https://github.com/cupy/cupy/issues/2911 | Traceback (most recent call last):
File "cpu-svd.py", line 10, in <module>
u.compute()
File "/datasets/bzaitlen/miniconda3/envs/rapids-12/lib/python3.7/site-packages/dask/base.py", line 165, in compute
(result,) = compute(self, traverse=False, **kwargs)
File "/datasets/bzaitlen/miniconda3/envs/rapids-12/lib/python3.7/s... | AttributeError |
def seterr(*, divide=None, over=None, under=None, invalid=None, linalg=None):
"""
TODO(hvy): Write docs.
"""
if divide is not None:
raise NotImplementedError()
if over is not None:
raise NotImplementedError()
if under is not None:
raise NotImplementedError()
if invali... | def seterr(*, divide=None, over=None, under=None, invalid=None, linalg=None):
"""
TODO(hvy): Write docs.
"""
if divide is not None:
raise NotImplementedError()
if over is not None:
raise NotImplementedError()
if under is not None:
raise NotImplementedError()
if invali... | https://github.com/cupy/cupy/issues/2911 | Traceback (most recent call last):
File "cpu-svd.py", line 10, in <module>
u.compute()
File "/datasets/bzaitlen/miniconda3/envs/rapids-12/lib/python3.7/site-packages/dask/base.py", line 165, in compute
(result,) = compute(self, traverse=False, **kwargs)
File "/datasets/bzaitlen/miniconda3/envs/rapids-12/lib/python3.7/s... | AttributeError |
def geterr():
"""
TODO(hvy): Write docs.
"""
return dict(
divide=get_config_divide(),
over=get_config_over(),
under=get_config_under(),
invalid=get_config_invalid(),
linalg=get_config_linalg(),
)
| def geterr():
"""
TODO(hvy): Write docs.
"""
return dict(
divide=config.divide,
over=config.over,
under=config.under,
invalid=config.invalid,
linalg=config.linalg,
)
| https://github.com/cupy/cupy/issues/2911 | Traceback (most recent call last):
File "cpu-svd.py", line 10, in <module>
u.compute()
File "/datasets/bzaitlen/miniconda3/envs/rapids-12/lib/python3.7/site-packages/dask/base.py", line 165, in compute
(result,) = compute(self, traverse=False, **kwargs)
File "/datasets/bzaitlen/miniconda3/envs/rapids-12/lib/python3.7/s... | AttributeError |
def argmax(a, axis=None, dtype=None, out=None, keepdims=False):
"""Returns the indices of the maximum along an axis.
Args:
a (cupy.ndarray): Array to take argmax.
axis (int): Along which axis to find the maximum. ``a`` is flattened by
default.
dtype: Data type specifier.
... | def argmax(a, axis=None, dtype=None, out=None, keepdims=False):
"""Returns the indices of the maximum along an axis.
Args:
a (cupy.ndarray): Array to take argmax.
axis (int): Along which axis to find the maximum. ``a`` is flattened by
default.
dtype: Data type specifier.
... | https://github.com/cupy/cupy/issues/2595 | import cupy as cp
a = cp.arange(60).reshape(3,4,5)
a.argmax(axis=(0,1))
array([11, 11, 11, 11, 11], dtype=int64)
import numpy as np
a = np.arange(60).reshape(3,4,5)
a.argmax(axis=(0,1))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'tuple' object cannot be interpreted as an integer | TypeError |
def argmin(a, axis=None, dtype=None, out=None, keepdims=False):
"""Returns the indices of the minimum along an axis.
Args:
a (cupy.ndarray): Array to take argmin.
axis (int): Along which axis to find the minimum. ``a`` is flattened by
default.
dtype: Data type specifier.
... | def argmin(a, axis=None, dtype=None, out=None, keepdims=False):
"""Returns the indices of the minimum along an axis.
Args:
a (cupy.ndarray): Array to take argmin.
axis (int): Along which axis to find the minimum. ``a`` is flattened by
default.
dtype: Data type specifier.
... | https://github.com/cupy/cupy/issues/2595 | import cupy as cp
a = cp.arange(60).reshape(3,4,5)
a.argmax(axis=(0,1))
array([11, 11, 11, 11, 11], dtype=int64)
import numpy as np
a = np.arange(60).reshape(3,4,5)
a.argmax(axis=(0,1))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'tuple' object cannot be interpreted as an integer | TypeError |
def __init__(self, msg, source, name, options):
self._msg = msg
self.source = source
self.name = name
self.options = options
super(CompileException, self).__init__()
| def __init__(self, msg, source, name, options):
self._msg = msg
self.source = source
self.name = name
self.options = options
| https://github.com/cupy/cupy/issues/2301 | Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.6/multiprocessing/pool.py", line 463, in _handle_results
task = get()
File "/usr/l... | TypeError |
def _proc_as_batch(proc, x, axis):
if x.shape[axis] == 0:
return cupy.empty_like(x)
trans, revert = _axis_to_first(x, axis)
t = x.transpose(trans)
s = t.shape
r = t.reshape(x.shape[axis], -1)
pos = 1
size = r.size
batch = r.shape[1]
while pos < size:
proc(pos, batch, ... | def _proc_as_batch(proc, x, axis):
trans, revert = _axis_to_first(x, axis)
t = x.transpose(trans)
s = t.shape
r = t.reshape(x.shape[axis], -1)
pos = 1
size = r.size
batch = r.shape[1]
while pos < size:
proc(pos, batch, r, size=size)
pos <<= 1
return r.reshape(s).trans... | https://github.com/cupy/cupy/issues/1455 | cupy.cumprod(cupy.ones((0, 3)))
array([], dtype=float64)
cupy.cumprod(cupy.ones((0, 3)), axis=1)
array([], shape=(0, 3), dtype=float64)
cupy.cumprod(cupy.ones((0, 3)), axis=0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/kataoka/cupy/cupy/math/sumprod.py", line 190, in cumprod
retu... | ZeroDivisionError |
def module_extension_sources(file, use_cython, no_cuda):
pyx, others = ensure_module_file(file)
base = path.join(*pyx.split("."))
if use_cython:
pyx = base + ".pyx"
if not os.path.exists(pyx):
use_cython = False
print("NOTICE: Skipping cythonize as {} does not exist."... | def module_extension_sources(file, use_cython, no_cuda):
pyx, others = ensure_module_file(file)
ext = ".pyx" if use_cython else ".cpp"
pyx = path.join(*pyx.split(".")) + ext
# If CUDA SDK is not available, remove CUDA C files from extension sources
# and use stubs defined in header files.
if no... | https://github.com/cupy/cupy/issues/906 | [1/3] Cythonizing cupy/cudnn.pyx
Compiling /tmp/pip-build-z0vd49d6/cupy/cupy/cudnn.pyx
Error compiling Cython file:
------------------------------------------------------------
...
compute_type = cudnn.CUDNN_DATA_FLOAT
if ndim != 2:
c_pad = pad
c_stride = stride
c_dilation.assign(ndim, 1)
^
--------------------------... | NameError |
def svd(a, full_matrices=True, compute_uv=True):
"""Singular Value Decomposition.
Factorizes the matrix ``a`` as ``u * np.diag(s) * v``, where ``u`` and
``v`` are unitary and ``s`` is an one-dimensional array of ``a``'s
singular values.
Args:
a (cupy.ndarray): The input matrix with dimensi... | def svd(a, full_matrices=True, compute_uv=True):
"""Singular Value Decomposition.
Factorizes the matrix ``a`` as ``u * np.diag(s) * v``, where ``u`` and
``v`` are unitary and ``s`` is an one-dimensional array of ``a``'s
singular values.
Args:
a (cupy.ndarray): The input matrix with dimensi... | https://github.com/cupy/cupy/issues/842 | numpy 1.13.3, order=C
numpy 1.13.3, order=F
scipy 0.19.1, order=C
scipy 0.19.1, order=F
cupy 4.0.0b1, order=C
Traceback (most recent call last):
File "test.py", line 13, in <module>
assert (xp.array(init_x) == x).all()
AssertionError | AssertionError |
def csrmm(a, b, c=None, alpha=1, beta=0, transa=False):
"""Matrix-matrix product for a CSR-matrix and a dense matrix.
.. math::
C = \\alpha o_a(A) B + \\beta C,
where :math:`o_a` is a transpose function when ``transa`` is ``True`` and
is an identity function otherwise.
Args:
a (cu... | def csrmm(a, b, c=None, alpha=1, beta=0, transa=False):
"""Matrix-matrix product for a CSR-matrix and a dense matrix.
.. math::
C = \\alpha o_a(A) B + \\beta C,
where :math:`o_a` is a transpose function when ``transa`` is ``True`` and
is an identity function otherwise.
Args:
a (cu... | https://github.com/cupy/cupy/issues/552 | Traceback (most recent call last):
File "main.py", line 23, in <module>
main()
File "main.py", line 20, in main
gx = cupy.cusparse.csrmm2(W, y.T, transa=True).T
File "/home/tommi/.pyenv/versions/cupy-dev/lib/python3.4/site-packages/cupy-2.0.0rc1-py3.4-linux-x86_64.egg/cupy/cusparse.py", line 205, in csrmm2
b.data.ptr, ... | cupy.cuda.cusparse.CuSparseError |
def csrmm2(a, b, c=None, alpha=1.0, beta=0.0, transa=False, transb=False):
"""Matrix-matrix product for a CSR-matrix and a dense matrix.
.. math::
C = \\alpha o_a(A) o_b(B) + \\beta C,
where :math:`o_a` and :math:`o_b` are transpose functions when ``transa``
and ``tranb`` are ``True`` respecti... | def csrmm2(a, b, c=None, alpha=1.0, beta=0.0, transa=False, transb=False):
"""Matrix-matrix product for a CSR-matrix and a dense matrix.
.. math::
C = \\alpha o_a(A) o_b(B) + \\beta C,
where :math:`o_a` and :math:`o_b` are transpose functions when ``transa``
and ``tranb`` are ``True`` respecti... | https://github.com/cupy/cupy/issues/552 | Traceback (most recent call last):
File "main.py", line 23, in <module>
main()
File "main.py", line 20, in main
gx = cupy.cusparse.csrmm2(W, y.T, transa=True).T
File "/home/tommi/.pyenv/versions/cupy-dev/lib/python3.4/site-packages/cupy-2.0.0rc1-py3.4-linux-x86_64.egg/cupy/cusparse.py", line 205, in csrmm2
b.data.ptr, ... | cupy.cuda.cusparse.CuSparseError |
def csrmv(a, x, y=None, alpha=1, beta=0, transa=False):
"""Matrix-vector product for a CSR-matrix and a dense vector.
.. math::
y = \\alpha * o_a(A) x + \\beta y,
where :math:`o_a` is a transpose function when ``transa`` is ``True`` and
is an identity function otherwise.
Args:
a (... | def csrmv(a, x, y=None, alpha=1, beta=0, transa=False):
"""Matrix-vector product for a CSR-matrix and a dense vector.
.. math::
y = \\alpha * o_a(A) x + \\beta y,
where :math:`o_a` is a transpose function when ``transa`` is ``True`` and
is an identity function otherwise.
Args:
a (... | https://github.com/cupy/cupy/issues/552 | Traceback (most recent call last):
File "main.py", line 23, in <module>
main()
File "main.py", line 20, in main
gx = cupy.cusparse.csrmm2(W, y.T, transa=True).T
File "/home/tommi/.pyenv/versions/cupy-dev/lib/python3.4/site-packages/cupy-2.0.0rc1-py3.4-linux-x86_64.egg/cupy/cusparse.py", line 205, in csrmm2
b.data.ptr, ... | cupy.cuda.cusparse.CuSparseError |
def all(a, axis=None, out=None, keepdims=False):
assert isinstance(a, cupy.ndarray)
return a.all(axis=axis, out=out, keepdims=keepdims)
| def all(a, axis=None, out=None, keepdims=False):
# TODO(okuta): check type
return a.all(axis=axis, out=out, keepdims=keepdims)
| https://github.com/cupy/cupy/issues/266 | np.empty((0, 1)).argmax(axis=1) # array([], dtype=int64)
cupy.empty((0, 1)).argmax(axis=1)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-9-a5737d72bcba> in <module>()
----> 1 cupy.empty((0, 1)).argm... | ValueError |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.