Skip to content

Instantly share code, notes, and snippets.

building 'lxml.etree' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/lxml
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-HVkOs2/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/libxml2 -I/tmp/pip-1g11WY-build/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree__getFilenameForFile’:
src/lxml/lxml.etree.c:26719:7: warning: variable ‘__pyx_clineno’ set but not used [-Wunused-but-set-variable]
int __pyx_clineno = 0;
^~~~~~~~~~~~~
src/lxml/lxml.etree.c:26718:15: warning: variable ‘__pyx_filename’ set but not used [-Wunused-but-set-variable]
@radimk
radimk / thrift_build.sh
Last active February 2, 2018 17:15
thrift build
sudo apt-get update
sudo apt-get upgrade
# possibly reboot to new kernel
sudo apt-get install g++ libevent-2.0.5 zlib1g zlib1g-dev python patch make
sudo apt-get install autoconf automake libtool pkg-config libssl-dev flex bison
sudo apt-get install ant # installs also openjdk
wget https://archive.apache.org/dist/thrift/0.9.1/thrift-0.9.1.tar.gz
tar xzf thrift-0.9.1.tar.gz
cd thrift-0.9.1/
# wget http://gitpaste.rfiserve.net/paste/595/raw/ -O withoutcxx11.patch
@radimk
radimk / gist:d57277e681b971173806
Created January 6, 2015 16:01
run ansible with vagrant
ansible-playbook -i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory --private-key=~/.vagrant.d/insecure_private_key -u vagrant playbook.yml
@radimk
radimk / gist:0b52e003b9f1293e6e75
Created November 14, 2014 23:15
NPE from BuildAction processing
Tooling API is using target Gradle version: 2.3-20141114165927+0000.
Connected to daemon DaemonInfo{pid=23599, address=[e3043b5d-9163-42d8-ad36-93bdbe7940e8 port:34463, addresses:[/0:0:0:0:0:0:0:1%1, /127.0.0.1]], idle=true, context=DefaultDaemonContext[uid=48dd208e-da1e-46ef-8bb6-b0bab2d38da1,javaHome=/usr/lib/jvm/jdk-6-oracle-x64,daemonRegistryDir=/home/radim/.gradle/daemon,pid=23599,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]}. Dispatching request Build{id=0f5ab84e-6e7e-478e-9b5e-4accb1963c58.1, currentDir=/home/radim/src/github.com/gradle/tooling/subprojects/eclipse/com.gradleware.tooling.eclipse.core.test}.
Received result DaemonCommandResult[type=DaemonFailure, value=java.lang.NullPointerException] from daemon DaemonInfo{pid=23599, address=[e3043b5d-9163-42d8-ad36-93bdbe7940e8 port:34463, addresses:[/0:0:0:0:0:0:0:1%1, /127.0.0.1]], idle=true, context=DefaultDaemonContext[uid=48d
@radimk
radimk / gist:00f3fbe47722c24d8846
Created September 30, 2014 14:24
simple BuildAction used with Gradle ToolingAPI
package cz.kubacki.gradle.toolingaction;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import org.gradle.tooling.BuildAction;
import org.gradle.tooling.BuildActionExecuter;
import org.gradle.tooling.BuildController;
import org.gradle.tooling.GradleConnector;
import org.gradle.tooling.ProjectConnection;
rkubacki@dev1:~$ sudo /opt/jdk/jdk1.5.0_22/bin/jstack 32753
Attaching to process ID 32753, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 1.5.0_22-b03
Deadlock Detection:
No deadlocks found.
Thread 316: (state = IN_NATIVE)
@radimk
radimk / gist:9773230
Created March 25, 2014 22:51
CNFE when sending launchable back to provider.
org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle installation '/home/radim/src/github.com/gradle/gradle/build/integ test'.
at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:55)
at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57)
at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
at org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46)
at org.gradle.tooling.internal.consumer.DefaultBuildLauncher.run(DefaultBuildLauncher.java:114)
at org.gradle.integtests.tooling.fixture.ToolingApiSpecification.withBuild_closure3(ToolingApiSpecifi
@radimk
radimk / gist:9004355
Created February 14, 2014 16:35
Maven/Guava conflict when testing NetBeans
tried to access method com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap; from class com.google.inject.internal.Annotations$AnnotationChecker
java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap; from class com.google.inject.internal.Annotations$AnnotationChecker
at com.google.inject.internal.Annotations$AnnotationChecker.<init>(Annotations.java:104)
at com.google.inject.internal.Annotations.<clinit>(Annotations.java:122)
at com.google.inject.Key.ensureRetainedAtRuntime(Key.java:362)
at com.google.inject.Key.strategyFor(Key.java:354)
at com.google.inject.Key.get(Key.java:222)
at org.sonatype.guice.bean.binders.ParameterKeys.<clinit>(ParameterKeys.java:23)
at org.codehaus.plexus.DefaultPlexusContainer$ContainerModule.configure(DefaultPlexusContainer.java:801)
at com.google.inject.spi.Elements$RecordingBinder.ins
@radimk
radimk / gist:8733635
Created January 31, 2014 14:59
GradleIvyResolve
C:\Users\radim\src\GradleIvyResolve>c:\tools\gradle-1.11-rc-1\bin\gradle -s build
Build file 'C:\Users\radim\src\GradleIvyResolve\build.gradle': line 15
The ArtifactRepositoryContainer.add(DependencyResolver, Closure) method has been deprecated and is scheduled to be removed in Gradle 2.0.
:compileJava
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not resolve org.slf4j:slf4j-log4j12:1.7.5.
@radimk
radimk / gist:8683983
Created January 29, 2014 08:39
'ZipException: too many length or distance symbols' from gradle tests
org.gradle.tooling.BuildException: Could not fetch model of type 'GradleProject' using mock.
at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:53)
at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57)
at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
at org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46)
at org.gradle.tooling.internal.consumer.DefaultModelBuilder.get(DefaultModelBuilder.java:48)
at org.gradle.integtests.tooling.ConcurrentToolingApiIntegrationSpec.spock_feature_0_6_closure15_closure30(ConcurrentToolingApiIntegrationSpec.groovy:253)