Instantly share code, notes, and snippets.

View upgrade-issues.md

Overview

After upgrading to pip 10 on Linux, many users are encountering variations of the error ImportError: cannot import name 'main'. These are caused by an incorrect attempt to upgrade pip, which has typically resulted in (parts of) multiple versions of pip being installed in the same Python installation, and those parts being incompatible.

It should be noted that these issues are invariably not problems with pip itself, but are due to incorrect use of pip, or unexpected interactions with system scripts that are not controlled by pip. So while we'll try to help you solve your issue, this is not the "fault" of pip, and you will have to be prepared to do at least some of the debugging and fixes on your own.

General Advice

First, some general advice. It is assumed that anyone encountering issues will have failed to follow some part of this advice. Listing these items here is not intended to imply that "it's your fault and we won't help", but rather to help users to identify what went wrong, so

View ms3.log
MultiMC version: 0.6.1-develop-1204
Minecraft folder is:
C:/Games/Minecraft/MultiMC/instances/Modern Skyblock 3.1.5.2/minecraft
Java path is:
C:/ProgramData/Oracle/Java/javapath/javaw.exe
View crashdump.log
MultiMC version: 0.6.0-develop-1156
Minecraft folder is:
C:/Games/Minecraft/MultiMC/instances/Age of Engineering 1.1.1c/minecraft
Java path is:
C:/ProgramData/Oracle/Java/javapath/javaw.exe
View encoding_nightly.log
[17:06:40] hb_init: starting libhb thread
[17:06:40] thread 5fe9040 started ("libhb")
HandBrake 20171130161715-7b461c4-master (2017120201) - MinGW x86_64 - https://handbrake.fr
4 CPUs detected
Opening .\ts\Doctor Who_20151128_2118.ts...
[17:06:40] CPU: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
[17:06:40] - Intel microarchitecture Ivy Bridge
[17:06:40] - logical processor count: 4
[17:06:40] Intel Quick Sync Video support: no
[17:06:40] hb_scan: path=.\ts\Doctor Who_20151128_2118.ts, title_index=1
View encoding_orig.log
[12:33:23] hb_init: starting libhb thread
[12:33:23] thread 1 started ("libhb")
HandBrake 1.0.7 (2017040900) - MinGW x86_64 - https://handbrake.fr
4 CPUs detected
Opening .\ts\Doctor Who_20151128_2118.ts...
[12:33:23] CPU: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
[12:33:23] - Intel microarchitecture Ivy Bridge
[12:33:23] - logical processor count: 4
[12:33:23] Intel Quick Sync Video support: no
[12:33:23] hb_scan: path=.\ts\Doctor Who_20151128_2118.ts, title_index=1
View encoding.log
[10:36:38] hb_init: starting libhb thread
[10:36:38] thread 1 started ("libhb")
HandBrake 1.0.7 (2017040900) - MinGW x86_64 - https://handbrake.fr
4 CPUs detected
Opening .\ts\Doctor Who_20151128_2118.m2ts...
[10:36:38] CPU: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
[10:36:38] - Intel microarchitecture Ivy Bridge
[10:36:38] - logical processor count: 4
[10:36:38] Intel Quick Sync Video support: no
[10:36:38] hb_scan: path=.\ts\Doctor Who_20151128_2118.m2ts, title_index=1
View rftools_control.json
[
{
"pos": {
"x": 0,
"y": 0
},
"opcode": {
"id": "ev_rs_on",
"primary": "D",
"parameters": [
View mklibyaml.py
rom distutils import ccompiler
import setuptools # Needed to monkeypatch msvccompiler for Python 2.7
import os
here = os.path.dirname(os.path.abspath(__file__))
cc = ccompiler.new_compiler()
sources = [
'api.c',
View TortoiseHGSilentInstall.md

TortoiseHG Silent Install Features

  • MainProgram
  • Locales
  • ShellExtensionX64
  • ShellExtensionX86
  • ThgDocumentation
  • KDiff3
  • SSHUtils
View pywin32_wheel.py
import zipfile
import hashlib
import csv
import sys
import os
import io
oldproj = 'pywin32'
newproj = 'pypiwin32'
filename = sys.argv[1]