Giter VIP home page Giter VIP logo

cui's Introduction

Website

This website is a documentation aggregator for all Schulcloud-Verbund software.

It is deployed at https://documentation.dbildungscloud.dev/

This website is built using Docusaurus 2, a modern static website generator.

Installation

$ npm ci

Local Development

$ npm run start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Note that the search will only work with the build command.

Build

$ npm run build

This command generates static content into the build directory and can be served using any static contents hosting service.

Update the docs

Create a new branch. Change the /docs files.

Deployment

Create a pull request and once your changes are merged into main the website will automatically deploy the new version.

Important

Do not remove the branch gh-pages. This branch is auto generated and contains the hosted website.

cui's People

Contributors

ceev avatar dependabot[bot] avatar felixmusmann avatar janrenz avatar mxmrz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

typicasoft ujja

cui's Issues

BadZipFile after Rasa_Core 0.9.5 -> 0.10.0

After updating Rasa_core from 0.9.5 to 0.10.0:
When bringing the project up with "docker-compose up" I get a BadZipFile Error.

| 2018-12-01 16:29:52+0000 [-] "172.18.0.4" - - [01/Dec/2018:16:29:51 +0000] "GET / HTTP/1.1" 200 27 "-" "python-requests/2.18.4"
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] Exception in thread Thread-1:
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] Traceback (most recent call last):
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] self.run()
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] File "/usr/local/lib/python3.6/threading.py", line 864, in run
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] self._target(*self._args, **self._kwargs)
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] File "/usr/local/lib/python3.6/site-packages/rasa_nlu/project.py", line 145, in _run_model_pulling_worker
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] _update_model_from_server(model_server, project)
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] File "/usr/local/lib/python3.6/site-packages/rasa_nlu/project.py", line 76, in _update_model_from_server
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] model_server, model_directory, project.fingerprint)
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] File "/usr/local/lib/python3.6/site-packages/rasa_nlu/project.py", line 133, in _pull_model_and_fingerprint
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] zip_ref = zipfile.ZipFile(IOReader(response.content))
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] File "/usr/local/lib/python3.6/zipfile.py", line 1108, in init
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] self._RealGetContents()
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] File "/usr/local/lib/python3.6/zipfile.py", line 1175, in _RealGetContents
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] raise BadZipFile("File is not a zip file")
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-] zipfile.BadZipFile: File is not a zip file
rasa-nlu_1 | 2018-12-01 16:29:52+0000 [-]

docker compose fails

frisch vom Master:

Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ca-certificates-java : Depends: openjdk-7-jre-headless but it is not installable or
                                 java7-runtime-headless
 openjdk-8-jdk : Depends: openjdk-8-jre (= 8u171-b11-1~bpo8+1) but it is not going to be installed
                 Depends: openjdk-8-jdk-headless (= 8u171-b11-1~bpo8+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ERROR: Service 'rasa-nlu' failed to build: The command '/bin/bash -c set -ex; 	if [ ! -d /usr/share/man/man1 ]; then 		mkdir -p /usr/share/man/man1; 	fi; 	apt-get update; 	apt-get install -y -t jessie-backports		openjdk-8-jdk 		ca-certificates-java 	; 	rm -rf /var/lib/apt/lists/*; 	[ "$(readlink -f "$JAVA_HOME")" = "$(docker-java-home)" ]; 	update-alternatives --get-selections | awk -v home="$(readlink -f "$JAVA_HOME")" 'index($3, home) == 1 { $2 = "manual"; print | "update-alternatives --set-selections" }'; 	update-alternatives --query java | grep -q 'Status: manual'' returned a non-zero code: 100

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

HTTPConnectionError after Rasa-NLU 0.12.0 -> 0.13.3

During migrating the project from Rasa-NLU 0.12.0 to 0.13.3, the "endpoints.yml" had to be added for "rasa_nlu.server" to tell the server where to get the training-data.
The rasa_nlu server runs on port 5000 according to docker-compose.yml.
The current value of endpoints.yml, which is "http://rasa-nlu:5000/data", leads to the error message:

rasa-nlu_1 | 2018-12-01 16:29:42 WARNING rasa_nlu.project - Tried to fetch model from server, but couldn't reach server. We'll retry later... Error: HTTPConnectionPool(host='rasa-nlu', port=5000): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb7e450bb38>: Failed to establish a new connection: [Errno 111] Connection refused',)).

NLU Java is missing.

Hello

Very good repo.

But it does not work for me. I got exception from NLU at start:

rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-] 2018-08-24 09:39:34 ERROR    __main__  - [Errno 2] No such file or directory: '/usr/lib/jvm'
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-] Traceback (most recent call last):
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/rasa_nlu/server.py", line 241, in parse
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     self.data_router.parse, data))
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/twisted/python/threadpool.py", line 250, in inContext
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     result = inContext.theWork()
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/twisted/python/threadpool.py", line 266, in <lambda>
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/twisted/python/context.py", line 122, in callWithContext
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     return self.currentContext().callWithContext(ctx, func, *args, **kw)
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/twisted/python/context.py", line 85, in callWithContext
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     return func(*args,**kw)
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/rasa_nlu/data_router.py", line 241, in parse
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     model)
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/rasa_nlu/project.py", line 118, in parse
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     interpreter = self._interpreter_for_model(model_name)
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/rasa_nlu/project.py", line 198, in _interpreter_for_model
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     return Interpreter.create(metadata, self._component_builder)
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/rasa_nlu/model.py", line 303, in create
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     model_metadata, **context)
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/rasa_nlu/components.py", line 398, in load_component
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     cached_component, **context)
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/rasa_nlu/registry.py", line 131, in load_component_by_name
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     return component_clz.load(model_dir, metadata, cached_component, **kwargs)
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/rasa_nlu/extractors/duckling_extractor.py", line 194, in load
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     duckling = cls.create_duckling_wrapper(language)
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/rasa_nlu/extractors/duckling_extractor.py", line 108, in create_duckling_wrapper
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     return DucklingWrapper(language=language)
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/duckling/wrapper.py", line 35, in __init__
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     maximum_heap_size=maximum_heap_size)
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/duckling/duckling.py", line 44, in __init__
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     self._start_jvm(minimum_heap_size, maximum_heap_size)
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/duckling/duckling.py", line 69, in _start_jvm
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     jpype.getDefaultJVMPath(),
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/jpype/_core.py", line 121, in get_default_jvm_path
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     return finder.get_jvm_path()
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/jpype/_jvmfinder.py", line 131, in get_jvm_path
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     jvm = method()
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/jpype/_jvmfinder.py", line 184, in _get_from_known_locations
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     for home in self.find_possible_homes(self._locations):
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]   File "/usr/local/lib/python3.6/site-packages/jpype/_jvmfinder.py", line 97, in find_possible_homes
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-]     for childname in sorted(os.listdir(parent)):
rasa-nlu_1           | 2018-08-24 09:39:34+0000 [-] FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/jvm'

And fix in cui\rasa_nlu\Dockerfile is:

SHELL ["/bin/bash", "-c"]

# required for Java
# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199
RUN mkdir -p /usr/share/man/man1   <--------------------------- Change 1, see comment above
RUN apt-get update -qq && apt-get install -y --no-install-recommends \
    build-essential \
    git-core \
    openssl \
    libssl-dev \
    libffi6 \
    libffi-dev \
    curl \
	cron \
#required for duckling.
    default-jre \   <--------------------------- Change 2, see comment above
....

UnsafeLoaderWarning after Rasa_Core 0.9.5 -> 0.10.0

After updating Rasa_core from 0.9.5 to 0.10.0:
When bringing the project up with "docker-compose up" I get an UnsafeLoaderWarning.
All "yaml.load(stream)" occurences should be replaced with "yaml.safe_load(stream)" now. However I could not find any uses of "yaml.load(stream)".

Using TensorFlow backend.
rasa-core_1 | 2018-12-01 16:29:45 WARNING py.warnings - /usr/local/lib/python3.6/site-packages/pykwalify/core.py:99: UnsafeLoaderWarning:
rasa-core_1 | The default 'Loader' for 'load(stream)' without further arguments can be unsafe.
rasa-core_1 | Use 'load(stream, Loader=ruamel.yaml.Loader)' explicitly if that is OK.
rasa-core_1 | Alternatively include the following in your code:
rasa-core_1 |
rasa-core_1 | import warnings
rasa-core_1 | warnings.simplefilter('ignore', ruamel.yaml.error.UnsafeLoaderWarning)
rasa-core_1 |
rasa-core_1 | In most other cases you should consider using 'safe_load(stream)'
rasa-core_1 | data = yaml.load(stream)

Unexpected Keyword Argument 'action_factory' after Rasa_Core 0.10.0 -> 0.11.0

After updating the core to 0.11.0 and changing import-statements in both rasa-core/account.py and rasa-core/server.py (according to the migration guide: https://rasa.com/docs/core/migrations/) the chatbot cant load any agent model:

rasa-core_1 | 2019-01-05 15:43:44 WARNING server - Failed to load any agent model. Running Rasa Core server with out loaded model now. load() got an unexpected keyword argument 'action_factory'

The load-function using action_factory can be found in rasa-core/server.py in line 152:

return Agent.load(model_directory, interpreter,
tracker_store=tracker_store,
action_factory=action_factory)

The migration guide does not mention the action_factory at all and the chatbot does not work with this problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.