profile
viewpoint

ccrama/Slide 1354

Slide is an open sourced, ad free Reddit browser for Android

GermainZ/CrappaLinks 38

Xposed module that removes link masking and shortening

GermainZ/aur-talk 8

A script to fetch and display AUR package comments

GermainZ/dev-host-cl 8

http://d-h.st (Dev-Host) command line tool

GermainZ/GoogleOfflineVoice 4

Xposed module that can force offline voice recognition.

GermainZ/dotfiles 3

Configuration files along with some scripts

issue closedHelsinki-NLP/Opus-MT

Installation via Docker fails (CMake error: file INSTALL cannot find "/usr/src/app/marian/sentencepiece.pc")

Installation via Docker fails. Output after following the README instructions:

$ docker-compose up
...
[ 97%] Building CXX object src/CMakeFiles/marian_scorer.dir/command/marian_scorer.cpp.o
[ 98%] Linking CXX executable ../marian-server
[ 98%] Built target marian_server
[100%] Linking CXX executable ../marian-scorer
[100%] Built target marian_scorer
Install the project...
-- Install configuration: "Release"
CMake Error at src/3rd_party/sentencepiece/cmake_install.cmake:41 (file):
  file INSTALL cannot find "/usr/src/app/marian/sentencepiece.pc".
Call Stack (most recent call first):
  src/3rd_party/cmake_install.cmake:46 (include)
  src/cmake_install.cmake:42 (include)
  cmake_install.cmake:42 (include)


make: *** [Makefile:108: install] Error 1
ERROR: Service 'opus-mt' failed to build : The command '/bin/sh -c set -eux; 	git clone https://github.com/marian-nmt/marian marian; 	cd marian;git checkout 1.9.0; 	cmake . -DCOMPILE_SERVER=on -DUSE_SENTENCEPIECE=on -DCOMPILE_CPU=on -DCOMPILE_CUDA=off -DUSE_STATIC_LIBS=on; 	make -j 2 install;' returned a non-zero code: 2

As a workaround, I did the following:

diff --git a/Dockerfile b/Dockerfile
index f5331c5..34fc2db 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -23,14 +23,16 @@ RUN set -eux; \
        rm -f GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB;
 
 # Install Marian MT
-RUN set -eux; \
-       git clone https://github.com/marian-nmt/marian marian; \
-       cd marian; \
-       git checkout 1.9.0; \
+RUN set -eux && \
+       git clone https://github.com/marian-nmt/marian marian && \
+       cd marian && \
+       git checkout 1.9.0 && \
+       mkdir build && \
+       cd build && \
        # Choose CPU or GPU(CUDA) from below lines.
        # cmake . -DCOMPILE_SERVER=on -DUSE_SENTENCEPIECE=on -DCOMPILE_CUDA=on -DUSE_STATIC_LIBS=on; \
-       cmake . -DCOMPILE_SERVER=on -DUSE_SENTENCEPIECE=on -DCOMPILE_CPU=on -DCOMPILE_CUDA=off -DUSE_STATIC_LIBS=on; \
-       make -j 2 install;
+       cmake . -DCOMPILE_SERVER=on -DUSE_SENTENCEPIECE=on -DCOMPILE_CPU=on -DCOMPILE_CUDA=off -DUSE_STATIC_LIBS=on .. && \
+       make -j4;
 
 COPY . .
 
@@ -40,14 +42,14 @@ RUN set -eux; \
        pip3 install -r requirements.txt
 
 # install services
-RUN install -m 755 marian/marian /usr/local/bin/; \
-       install -m 755 marian/marian-server /usr/local/bin/; \
-       install -m 755 marian/marian-server /usr/local/bin/; \
-       install -m 755 marian/marian-vocab /usr/local/bin/; \
-       install -m 755 marian/marian-decoder /usr/local/bin/; \
-       install -m 755 marian/marian-scorer /usr/local/bin/; \
-       install -m 755 marian/marian-conv /usr/local/bin/; \
-       install -m 644 marian/libmarian.a  /usr/local/lib/;
+RUN install -m 755 marian/build/marian /usr/local/bin/; \
+       install -m 755 marian/build/marian-server /usr/local/bin/; \
+       install -m 755 marian/build/marian-server /usr/local/bin/; \
+       install -m 755 marian/build/marian-vocab /usr/local/bin/; \
+       install -m 755 marian/build/marian-decoder /usr/local/bin/; \
+       install -m 755 marian/build/marian-scorer /usr/local/bin/; \
+       install -m 755 marian/build/marian-conv /usr/local/bin/; \
+       install -m 644 marian/build/libmarian.a  /usr/local/lib/;
 
 EXPOSE 80
 CMD python3 server.py -c services.json -p 80

closed time in a month

GermainZ

issue openedHelsinki-NLP/Opus-MT

Installation via Docker fails (CMake error: file INSTALL cannot find "/usr/src/app/marian/sentencepiece.pc")

Installation via Docker fails. Output after following the README instructions:

$ docker-compose up
...
[ 97%] Building CXX object src/CMakeFiles/marian_scorer.dir/command/marian_scorer.cpp.o
[ 98%] Linking CXX executable ../marian-server
[ 98%] Built target marian_server
[100%] Linking CXX executable ../marian-scorer
[100%] Built target marian_scorer
Install the project...
-- Install configuration: "Release"
CMake Error at src/3rd_party/sentencepiece/cmake_install.cmake:41 (file):
  file INSTALL cannot find "/usr/src/app/marian/sentencepiece.pc".
Call Stack (most recent call first):
  src/3rd_party/cmake_install.cmake:46 (include)
  src/cmake_install.cmake:42 (include)
  cmake_install.cmake:42 (include)


make: *** [Makefile:108: install] Error 1
ERROR: Service 'opus-mt' failed to build : The command '/bin/sh -c set -eux; 	git clone https://github.com/marian-nmt/marian marian; 	cd marian;git checkout 1.9.0; 	cmake . -DCOMPILE_SERVER=on -DUSE_SENTENCEPIECE=on -DCOMPILE_CPU=on -DCOMPILE_CUDA=off -DUSE_STATIC_LIBS=on; 	make -j 2 install;' returned a non-zero code: 2

created time in a month

push eventGermainZ/kitty-weechat-hints

GermainZ

commit sha f912112d4f4263f6d3dfbb2ce87975e3a03a0986

Fix http:// links not being marked

view details

push time in 3 months

push eventGermainZ/kitty-weechat-hints

GermainZ

commit sha d86617ffcdbc1f2483f19c4678073fbab7a947bf

ctrl+shift → kitty_mod

view details

push time in 3 months

push eventGermainZ/kitty-weechat-hints

GermainZ

commit sha d8cc2c593be2731a0e07d248bf2e06f6ac94fe31

Turn hardcoded values into constants for easy modification

view details

GermainZ

commit sha 0bef8863b2b89084ec10e8b932d3e7caddcf2731

Stop searching when the next message is reached

view details

push time in 3 months

PR opened kovidgoyal/kitty

Add link to weechat-hints kitten

Add link to kitty-weechat-hints.

+8 -0

0 comment

2 changed files

pr created time in 3 months

create barnchGermainZ/kitty

branch : weechat-hints-kitten

created branch time in 3 months

fork GermainZ/kitty

A cross-platform, fast, feature full, GPU based terminal emulator

fork in 3 months

push eventGermainZ/kitty-weechat-hints

GermainZ

commit sha 84648c4c438ad0aee7c9d62d5b56bd1cb368abc5

Update README

view details

push time in 3 months

create barnchGermainZ/kitty-weechat-hints

branch : master

created branch time in 3 months

created repositoryGermainZ/kitty-weechat-hints

Kitty URL kitten for URLs in WeeChat that tries to take into account line wraps (without having to enter raw mode).

created time in 3 months

fork GermainZ/twint

An advanced Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a user's followers, following, Tweets and more while evading most API limitations.

fork in 3 months

more