Coder Social home page Coder Social logo

ip-tools / patzilla Goto Github PK

View Code? Open in Web Editor NEW
97.0 17.0 20.0 6.64 MB

PatZilla is a modular patent information research platform and data integration toolkit with a modern user interface and access to multiple data sources.

Home Page: https://docs.ip-tools.org/patzilla/

License: GNU Affero General Public License v3.0

Makefile 0.38% Lua 0.94% Python 47.77% Smarty 0.89% CSS 1.35% JavaScript 36.50% HTML 11.68% Mako 0.11% Dockerfile 0.05% TypeScript 0.32%
patent patents patent-search patent-data information information-retrieval intellectual-property research researcher researchers

patzilla's Introduction

PatZilla: Patent information research for humans

About

PatZilla is a modular patent information research platform and data integration toolkit. It provides access to multiple data sources, like the OPS service from EPO, and other professional fulltext patent databases.

The system features an efficient user interface for convenient data exploration in its standalone version. Its software components and interfaces can also be used to build different kinds of vendor solutions.

Currently, PatZilla powers Europatent PATOffice Navigator and Serviva PATselect 4.0.

Status

  • Project status:

    Project status (alpha, beta, stable)

    Supported Python versions

    Supported MongoDB versions

    Package version on PyPI

    Project license

    PyPI downloads per month

  • Code status:

    CI outcome

    Test suite code coverage

Features

  • Multiple data source APIs. Connect to different patent search services and APIs for the acquisition of bibliographic-, fulltext-, image-, and pdf-data.
  • Graphical user interface. Based on contemporary web technologies and responsive design, it works on multiple devices. Use it on PCs, tablets, smartphone devices or as a multi-screen solution. The clear and well-arranged design and layout permits efficient screening of large numbers of patent documents.
  • Command line interface. Functionality for acquiring and processing raw patent data is conveniently available on the command line using the patzilla command. It can be used to run ad hoc inquiries to the system and the upstream data sources and to build custom scripted solutions and simple automations.
  • HTTP API interface. Through the extensive REST API, all functionality is easily available to 3rd-party systems. Deep integration has no limits.
  • Dossier management. Manage different collections of patent documents and apply ratings and comments.
  • Sharing. Well-designed collaboration features allow efficient sharing of information with your colleagues and partners, even across the boundaries of in-house systems.
  • Multi-tenancy. The software can operate on behalf of different vendors with individual custom branding.

User interfaces

Graphical user interface

A picture says a thousand words.

PatZilla

Command line interface

The CLI interface offers access to the machinery of PatZilla on your fingertips.

Note that most of the following commands will need appropriate configuration of corresponding access credentials. For more information, please follow up reading the cli documentation.

Examples using EPO/OPS:

# Display usage information of EPO/OPS in JSON format.
patzilla ops usage

# Submit search query to EPO/OPS, within "title" and "abstract" texts.
patzilla ops search "txt=(wind or solar) and energy"

# Inquire information about pages and images of full document.
patzilla ops image-info --document EP0666666B1

# Acquire first page of patent document in PDF format.
patzilla ops image --document EP0666666B1 --page 1 > EP0666666B1-page1.pdf

# Acquire first drawing of patent document in PDF format.
patzilla ops image --document EP0666666B1 --page 1 --kind FullDocumentDrawing > EP0666666B1-drawing1.pdf

Example using IFI CLAIMS:

patzilla ificlaims search "text:(wind or solar) and energy"

Demos

  • The search demo will run a fixed query on EPO/OPS and display the results. :

    txt=(SS7 or (telecommunication or communication or comunicación) or (mobile or Mobilfunknetz) or (network or (security or Sicherung))) and
    pa=(mobil or kommunikation) and
    cl=(H04W12/12 or H04L63/0281 or H04L63/0414)
    not pn=(CN or CA or JP)

    You will be able to step through result pages and display fulltext- and family-information, but running custom queries will be disabled.

  • The numberlist demo will display the patent documents DE102011075997A1, DE102011076020A1, DE102011076022A1 and DE102011076035A1. This is a showcase about how to integrate a link to a list of patent documents into own applications. The nasa-public-domain demo is a similar demo, it displays a number of patents of the Public Domain NASA technologies.
  • The document view demo will display the patent document EP0666666A2 without any control elements. This is a showcase about how to embed the document view into own applications or how to directly link to single documents.

Data sources

PatZilla uses different API services for accessing patent information.

Primary data sources:

Auxiliary data sources:

Getting started

Getting started with the software or deploying it yourself is quite easy if you are familiar with Python or Docker. See the install documentation page about how to install, configure and run PatZilla.

Project information

The source code of »PatZilla IP Navigator« is available under an open source license using the brand name »PatZilla«.

For further details, please visit:

History

The software got some applause from professional researchers for its unique user interface and rich feature set when it was released to the first audience in 2014. We hear from our users they are still having a great pleasure working with it on a daily basis.

After four years of development, the source code finally gets released under an open source license in 2017. We are looking forward to opening up the development process as well, every kind of participation and support is very much welcome.

After a project hiatus from 2020 to 2022, the code base is getting a refresh, many software tests have been added, and the aim is to finish migration to Python 3 within the end of the year.

Contributing

We are always happy to receive code contributions, ideas, suggestions and problem reports from the community. Spend some time taking a look around, locate a bug, design issue or spelling mistake and then send us a pull request or create an issue.

Thanks in advance for your efforts, we really appreciate any help or feedback.

License

This software is copyright © 2013-2022 The PatZilla authors. All rights reserved.

It is and will always be free and open source software.

Use of the source code included here is governed by the GNU Affero General Public License and the European Union Public License. Please also have a look at the notices about licenses of third-party components.

Support

For enterprises, dedicated commercial support is also available through Elmyra UG. Elmyra UG is the software development company that’s spearheading the ongoing development and as such will ensure continuity for the project.

If you are using PatZilla in your company, and you need support or custom development, feel free to get in touch with us by sending corresponding inquiries to [email protected].

In this way, you are contributing to the ongoing maintenance and further development of PatZilla.

patzilla's People

Contributors

aghster avatar amotl avatar deftez avatar vasilypvlasov avatar

Stargazers

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

Watchers

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

patzilla's Issues

DEPATISnet data source adapter broken after upstream layout updates (June 14th, 2022)

Hi there,

on June 14th, 2022, the DPMA will deploy an update to the public-facing DEPATISnet systems.

DEPATISnet will have a new layout from 14 June 2022.
The pages have been streamlined.

-- https://depatisnet.dpma.de/DepatisNet/depatisnet?window=1&space=menu&content=assistent&action=aktuelles&switchToLang=en#a52

This breaks the corresponding client adapter dpma/depatisnet.py. The regression has been detected by our monitoring systems at ~18 o'clock on June 13.

image

With kind regards,
Andreas.

Unexpected HTTP 4XX in case of server issue

Hello,

Page: /navigator/
IMHO It is better to have HTTP 5XX answer to frontend (for example 500) if search back-end answered with HTTP 401.
Now: back-end answers with HTTP 404/400. But client request can be fully valid, it is just issue with server config for example.

Data lost

Hello,
I have done a search last friday, but today I don't find my file.
In Patzilla navigator, I created a project, then performed my searches and selected some documents.
They was listed in collection of documents area.
Today, I restart the computer and the server, but the interface is virgin like the first day. In projects collection, I have only "ad-hoc" project with 0 documents.
The service mongod is running.
I just installed genghisapp to browse the content of mongodb, I found the database patzilla_development but there is no collection in it.
I run patzilla as user with the sequence :

source .venv27/bin/activate
pserve patzilla.ini

Are my data saved? Where? How can they be restored?
I'm running Mageia 7 with mongodb-4.1.4

User interface is broken when displaying document details

Hi there,

when starting PatZilla in development/sandbox mode, I am observing a few glitches.

First, something is wrong with the fonts on the data source chooser.
image

Then, as already discovered and reported by @papoteur-mga at #68 (comment), it looks like the document details are not displayed at all, and, in the same manner, the document details chooser also does not work. The problem can easily be revealed by conducting a simple query.

image
image

Bummer! I will try to look into this on the weekend, or next week.

With kind regards,
Andreas.

How to configure data source DEPATISnet

Trying to figure out how to configure DEPATISnet as a data source. So far IP-Navigator always tries to collect from OPS no matter if it is mentioned in the patzilla.ini or not.

So there seems to be no difference whether patzilla.ini reads:

    datasources = ops, depatisnet, depatech

or datasources = depatisnet, depatech

How do I force IP-Navigator to search DEPATISnet and how would I configure this in the .ini?

Thanks!

PatZilla does not serve requests when started in development mode

Hi there,

following up on the report #51 by @think-nice-things, we tried to reproduce the problem. We installed the software with:

virtualenv --python=python2 .venv2
source .venv2/bin/activate
pip install patzilla
pip install 'urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1'  # Just a fix to adjust some dependency woes.

Then, we created the configuration file patzilla.ini

patzilla make-config development > patzilla.ini

and adjusted a single line, adding the depatech data source like:

[ip_navigator]
datasources = ops, depatisnet, depatech

With that, PatZilla seems to start successfully.

pserve patzilla.ini
2022-04-28 18:26:07,646 INFO     [patzilla.navigator.settings             ][MainThread] Root configuration file is /path/to/patzilla.ini
2022-04-28 18:26:07,646 INFO     [patzilla.util.config                    ][MainThread] Requested configuration files: /path/to/patzilla.ini
2022-04-28 18:26:07,650 INFO     [patzilla.util.config                    ][MainThread] Effective configuration files: /path/to/patzilla.ini
2022-04-28 18:26:09,184 INFO     [patzilla.access.epo.ops.client          ][MainThread] Creating OpsClientPool
2022-04-28 18:26:09,186 INFO     [patzilla.access.depatech.clientpool     ][MainThread] Creating DepaTechClientPool
Starting server in PID 89804.
Serving on http://0.0.0.0:6543

However, when invoking a request to http://localhost:6543/navigator/, the application croaks like

Traceback (most recent call last):
  File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/pyramid_mako/__init__.py", line 148, in __call__
    result = template.render_unicode(**system)
  File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/mako/template.py", line 479, in render_unicode
    self, self.callable_, args, data, as_unicode=True
  File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/mako/runtime.py", line 883, in _render
    **_kwargs_for_callable(callable_, data)
  File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/mako/runtime.py", line 920, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/mako/runtime.py", line 947, in _exec_template
    callable_(context, *args, **kwargs)
  File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/patzilla/navigator/templates/site.mako", line 29, in render_body
    <%include file="urlcleaner.js"/>
  File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/mako/runtime.py", line 782, in _include_file
    template = _lookup_template(context, uri, calling_uri)
  File "/Users/amo/dev/tmp/testdrive/tmp/.venv2/lib/python2.7/site-packages/mako/runtime.py", line 841, in _lookup_template
    raise exceptions.TemplateLookupException(str(compat.exception_as()))
TemplateLookupException: Can not locate template for uri 'patzilla.navigator:templates/urlcleaner.js'

With kind regards,
Andreas.

Report with bibliographic data

Hello,
I tried different exports after some searches.
I would expect to have a report (PDF or ODT format) with the collection of bibliographic data, but didn"t found that.
Have I missed something?

How to install Patzilla on Ubuntu 23.04 ?

Hello,
I have failed to install using docker, docker-compose, or Linux installation following instructions at https://docs.ip-tools.org/patzilla/install/linux-macos.html#install-linux-macos

Does anyone have step-by-step instructions for installing that work for Ubuntu 23.04?

To install using docker, phantomjs being unavailable, I deleted the phantomjs entry in dockerfile and added instructions found at
https://stackoverflow.com/questions/39451134/installing-phantomjs-with-node-in-docker
However, if I run
docker run --rm -it --volume=$PWD/Downloads/patzilla/docker/patzilla.ini:/etc/patzilla.ini:ro --publish=6543:6543 local/patzilla pserve /etc/patzilla.ini

I get:
Traceback (most recent call last):
File "/usr/local/bin/pserve", line 8, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/pyramid/scripts/pserve.py", line 32, in main
return command.run()
File "/usr/local/lib/python2.7/dist-packages/pyramid/scripts/pserve.py", line 168, in run
loader.setup_logging(config_vars)
File "/usr/local/lib/python2.7/dist-packages/plaster_pastedeploy/init.py", line 221, in setup_logging
if "loggers" in self.get_sections():
File "/usr/local/lib/python2.7/dist-packages/plaster_pastedeploy/init.py", line 58, in get_sections
parser = self._get_parser()
File "/usr/local/lib/python2.7/dist-packages/plaster_pastedeploy/init.py", line 241, in _get_parser
loader = loadwsgi.ConfigLoader(self.uri.path)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 399, in init
with open(filename) as f:
IOError: [Errno 21] Is a directory: '/etc/patzilla.ini'

Trying with "docker-compose up" I get:
Creating network "docker_patzilla_net" with the default driver
Pulling mongodb (mongo:4-focal)...
4-focal: Pulling from library/mongo
7a2c55901189: Pull complete
b57cf58c4ffe: Pull complete
5bb145f2aa46: Pull complete
93f83d52d64e: Pull complete
5e012812179b: Pull complete
a6343ab9f99f: Pull complete
db691c26a2f1: Pull complete
5309bfc44820: Pull complete
6fb4bc4192f3: Pull complete
Digest: sha256:37f5e457e8ee72f3292cfe3177ace93c9bad7f84cdacd96fe6f82093b748c637
Status: Downloaded newer image for mongo:4-focal
Building patzilla
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/

Sending build context to Docker daemon 13.97MB
Step 1/24 : FROM debian:bullseye-slim AS patzilla-baseline
---> 06a976e818e6
Step 2/24 : RUN apt-get update && apt-get install --yes wget build-essential python2 python2-dev libjpeg-dev libfreetype-dev liblcms2-dev libtiff-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev zlib1g-dev pdftk poppler-utils imagemagick libtiff-tools libreoffice unoconv fontconfig libfontconfig libfreetype6 && wget https://bootstrap.pypa.io/pip/2.7/get-pip.py && python2 get-pip.py && rm -rf /var/cache/apt
---> Using cache
---> f85aacabe89e
Step 3/24 : FROM patzilla-baseline
---> f85aacabe89e
Step 4/24 : RUN pip install patzilla && rm -r /root/.cache
---> Using cache
---> dcd8ed05c6d5
Step 5/24 : FROM ubuntu:latest
---> e4c58958181a
Step 6/24 : WORKDIR /opt/backend
---> Using cache
---> bb9b7cd2c2b0
Step 7/24 : RUN su -
---> Using cache
---> daba71ff9b35
Step 8/24 : RUN apt-get update
---> Using cache
---> 457f76b0ddfd
Step 9/24 : RUN apt-get install sudo -y
---> Using cache
---> 8f4a1e3daa77
Step 10/24 : RUN sudo apt install curl -y
---> Using cache
---> e50a8baa85c1
Step 11/24 : RUN curl -sL https://deb.nodesource.com/setup_17.x -o nodesource_setup.sh
---> Using cache
---> f38875c9174a
Step 12/24 : RUN sudo bash nodesource_setup.sh
---> Running in d084f29c8ea9

================================================================================

                          DEPRECATION WARNING                            

Node.js 17.x is no longer actively supported!

You will not receive security or critical stability updates for this version.

You should migrate to a supported version of Node.js as soon as possible.
Use the installation script that corresponds to the version of Node.js you
wish to install. e.g.

Please see https://github.com/nodejs/Release for details about which
version may be appropriate for you.

The NodeSource Node.js distributions repository contains
information both about supported versions of Node.js and supported Linux
distributions. To learn more about usage, see the repository:
https://github.com/nodesource/distributions

================================================================================

Continuing in 20 seconds ...

================================================================================
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓

                       SCRIPT DEPRECATION WARNING                    

This script, located at https://deb.nodesource.com/setup_X, used to
install Node.js is deprecated now and will eventually be made inactive.

Please visit the NodeSource distributions Github and follow the
instructions to migrate your repo.
https://github.com/nodesource/distributions

The NodeSource Node.js Linux distributions GitHub repository contains
information about which versions of Node.js and which Linux distributions
are supported and how to install it.
https://github.com/nodesource/distributions

                      SCRIPT DEPRECATION WARNING

================================================================================
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓

TO AVOID THIS WAIT MIGRATE THE SCRIPT
Continuing in 60 seconds (press Ctrl-C to abort) ...

Installing the NodeSource Node.js 17.x repo...

Populating apt-get cache...

Installing packages required for setup: lsb-release gnupg...

  • apt-get install -y lsb-release gnupg > /dev/null 2>&1

Confirming "jammy" is supported...

Your distribution, identified as "jammy", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support

The command '/bin/sh -c sudo bash nodesource_setup.sh' returned a non-zero code: 1
ERROR: Service 'patzilla' failed to build : Build failed

When installing using https://docs.ip-tools.org/patzilla/install/linux-macos.html#install-linux-macos
I get various mixups between python 2.7 and python 3.

Help is welcome!

Problem getting drawings from USPTO

Just discovered those in the log files.

WARNING  [patzilla.access.epo.ops.api             ][MainThread] No image information for document=US2022110447A1
INFO     [patzilla.access.uspto.image             ][MainThread] USPTO: Fetching first drawing of "US20220110447A1"
INFO     [patzilla.access.uspto.image             ][MainThread] USPTO: Searching for TIFF document "US20220110447A1" at "http://aiw1.uspto.gov/.aiw?Docid=20220110447&idkey=NONE"
ERROR    [patzilla.access.uspto.image             ][MainThread] We failed to open url "http://aiw1.uspto.gov/.aiw?Docid=20220110447&idkey=NONE". reason=[Errno -2] Name or service not known, code=None
WARNING  [patzilla.access.uspto.image             ][MainThread] No content in main document page 'US20220110447A1' (url: http://aiw1.uspto.gov/.aiw?Docid=20220110447&idkey=NONE)
INFO     [patzilla.access.uspto.image             ][MainThread] USPTO: Searching for TIFF document "US20220110447A1" at "http://aiw2.uspto.gov/.aiw?Docid=20220110447&idkey=NONE"
ERROR    [patzilla.access.uspto.image             ][MainThread] We failed to open url "http://aiw2.uspto.gov/.aiw?Docid=20220110447&idkey=NONE". reason=[Errno -2] Name or service not known, code=None
WARNING  [patzilla.access.uspto.image             ][MainThread] No content in main document page 'US20220110447A1' (url: http://aiw2.uspto.gov/.aiw?Docid=20220110447&idkey=NONE)

It looks like all of patimg1.uspto.gov, patimg2.uspto.gov, aiw1.uspto.gov and aiw2.uspto.gov have been decomissioned.

nasa-public-domain demo link is broken

demo "The nasa-public-domain demo displays the latest NASA patents put under the public domain" in README is broken (url)

Reason: has expired at 2018-04-30 06:43:46 ("exp": 1525063426 from JWT)

Update list of OPS fulltext countries

Dear @aghster,

thank you again for your contribution #3 submitted the other day. In the OPS manual 1.3.16 1, I observed the following change log items since I've looked at it the last time:

  • 2019-05-07 1.3.10 Updated fulltext collection.
  • 2019-09-05 1.3.15 Updated the fulltext country code list.
  • 2020-09-14 1.3.16 Correction to countries list.

Maybe it is not too difficult to figure out what has changed here, and converge that into a patch, if necessary.

With kind regards,
Andreas.

Footnotes

  1. https://documents.epo.org/projects/babylon/eponet.nsf/0/F3ECDCC915C9BCD8C1258060003AA712/$File/ops_v3.2_documentation_-_version_1.3.16_en.pdf

Grouping by family with OPS database

Querying with DPMA database allows to group documents per family.
However, this is not possible today with the OPS Database.
Why this limitation?
Is it because it is better to query DPMA?
Or the feature is not yet developped?

DPMAregister data source adapter broken after upstream layout updates (June 1st, 2022)

Hi there,

on June 1st, 2022, the DPMA deployed an update to the public-facing DPMAregister systems.

DPMAregister will have a new layout from 1 June 2022.
The pages have been streamlined.

-- https://register.dpma.de/DPMAregister/service/aktuelles?window=1&space=menu&content=assistent&action=aktuelles&lang=en#a57

This breaks the corresponding client adapter dpma/dpmaregister.py. The regression has been detected by our monitoring systems at ~16 o'clock on the same day.

image

With kind regards,
Andreas.

depa.tech doesn't work

Hi,

I installed patzilla as from pip (0.169.3).
The data source ops works nicely but I didn't manage to use depa.tech.
I've aquired a depa.tech account.

The relevant config entries look like this:

[ip_naviator]
datasources = ops, depatisnet, depatech

# [datasource:depatech]                                                                                                                                                                                                                                                                                                                                  
api_uri      = {depatech_api_uri}                                                                                                                                                            
api_username = {depatech_api_username}                                                                                                                                                       
api_password = {depatech_api_password}     

where I used the credentials as supplied by depa.tech.

Still depa.tech doesn't appear and for example in the web interface I don't get the depa.tech button.

Anything I'm missing?

PatZilla croaks with “HTTPBadGateway: Could not connect to OPS servers”

After installing PatZilla in development mode on a fresh Ubuntu 18.10 box, customers are reporting a problem to us. While PatZilla starts fine and is apparently properly configured, it bails out when actually accessing the OPS services with this exception:

  File "/home/develop/patselect-dev/ip-navigator/patzilla/access/epo/ops/client.py", line 192, in request
    raise error
HTTPBadGateway: Could not connect to OPS servers.

Add Open Office to Docker image

Regarding the topic about satisfying the dependency to OO in Docker from #5, @aghster said:

Also, I do not think that OO is actually required, since according to @amotl it just serves to do "some rendering for specific export artefacts".

Yes, the export subsystem offers an Excel report and unoconv is really just used for converting this to a PDF file. PatZilla will perfectly run without this.

Unfortunately, there seems to be no pre-built unoconv package for Alpine Linux. Therefore, one would have to install unoconv and include the required LibreOffice or OpenOffice libraries manually.

unoconv can be acquired through PyPI [1]. Would LibreOffice or OpenOffice be available on Alpine?

[1] https://pypi.org/project/unoconv/

Improve documentation re. workstation setup vs. development setup

Hello,

I just tried the application patzilla 0.162.0.

As soon I try to open the site, I get a server error. In console message, it seems that templates/urlcleaner.js is claimed but not present. Indeed, I found only templates/urlcleaner.min.js.

I'm on a Mageia distro. I set a virtualenv, then used pip to get the installation. This worked. Then I created a patzilla.ini as development config.

Launching the server is OK.

  File "/home/yves/.venv27/lib/python2.7/site-packages/mako/runtime.py", line 804, in _lookup_template
    raise exceptions.TemplateLookupException(str(compat.exception_as()))
TemplateLookupException: Can not locate template for uri 'patzilla.navigator:templates/'

I never tried it before.
Best

TS18002: The 'files' list in config file 'tsconfig.json' is empty.

It is impossible to build java-script stuff.
yarn run build fails with next log output:

[../../../patzilla-ui/vendor/widget/raty/jquery.raty.js] /opt/Patzilla/patzilla-ui/vendor/widget/raty/jquery.raty.js 17.5 KiB {app-standalone} {app-embedded} [depth 6] [built]
    + 372 hidden modules

ERROR in [tsl] ERROR
      TS18002: The 'files' list in config file 'tsconfig.json' is empty.
 @ /opt/Patzilla/patzilla-ui/navigator/app/document/document-controller.js 5:15-64
 @ /opt/Patzilla/patzilla-ui/navigator/app/document/index.js
 @ /opt/Patzilla/patzilla-ui/navigator/boot/loader.js
 @ /opt/Patzilla/patzilla-ui/navigator/boot/standalone.js
 @ multi /opt/Patzilla/patzilla-ui/navigator/boot/standalone

ERROR in /opt/Patzilla/patzilla-ui/navigator/components/nataraja/index.ts
Module build failed (from /opt/Patzilla/node_modules/ts-loader/index.js):
Error: error while parsing tsconfig.json
    at Object.loader (/opt/Patzilla/node_modules/ts-loader/dist/index.js:19:18)
 @ /opt/Patzilla/patzilla-ui/navigator/app/document/document-controller.js 5:15-64
 @ /opt/Patzilla/patzilla-ui/navigator/app/document/index.js
 @ /opt/Patzilla/patzilla-ui/navigator/boot/loader.js
 @ /opt/Patzilla/patzilla-ui/navigator/boot/standalone.js
 @ multi /opt/Patzilla/patzilla-ui/navigator/boot/standalone
error Command failed with exit code 2.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Issue using docker-compose file

Hey there,
thanks for putting together such a nice application!

Trying to get things to run using the docker-compose file I run into the following issue:

mongodb     | 2018-11-29T14:15:13.521+0000 I NETWORK  [listener] connection accepted from 172.20.0.1:40760 #1 (1 connection now open)
patzilla    | Starting server in PID 1.
patzilla    | 2018-11-29 14:15:30,952 INFO     [patzilla.access.epo.ops.client          ][waitress] OpsOAuthClientFactory.create_session: identifier=system, client_id=4DhorgG67fAWrGxRkJr2hFqJAdS7bs7b
patzilla    | 2018-11-29 14:15:30,992 ERROR    [waitress                                ][waitress] Exception when serving /navigator/
patzilla    | Traceback (most recent call last):
patzilla    |   File "/usr/lib/python2.7/site-packages/waitress/channel.py", line 338, in service
patzilla    |     task.service()
patzilla    |   File "/usr/lib/python2.7/site-packages/waitress/task.py", line 169, in service
patzilla    |     self.execute()
patzilla    |   File "/usr/lib/python2.7/site-packages/waitress/task.py", line 399, in execute
patzilla    |     app_iter = self.channel.server.application(env, start_response)
patzilla    |   File "/usr/lib/python2.7/site-packages/paste/deploy/config.py", line 291, in __call__
patzilla    |     return self.app(environ, start_response)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 270, in __call__
patzilla    |     response = self.execution_policy(environ, self)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 278, in default_execution_policy
patzilla    |     return request.invoke_exception_view(reraise=True)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/view.py", line 748, in invoke_exception_view
patzilla    |     reraise_(*exc_info)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 276, in default_execution_policy
patzilla    |     return router.invoke_request(request)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 249, in invoke_request
patzilla    |     response = handle_request(request)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/tweens.py", line 41, in excview_tween
patzilla    |     response = _error_handler(request, exc)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/tweens.py", line 12, in _error_handler
patzilla    |     response = request.invoke_exception_view(exc_info)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/view.py", line 744, in invoke_exception_view
patzilla    |     request_iface=request_iface.combined,
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/view.py", line 642, in _call_view
patzilla    |     response = view_callable(context, request)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/viewderivers.py", line 410, in viewresult_to_response
patzilla    |     result = view(context, request)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/tweens.py", line 39, in excview_tween
patzilla    |     response = handler(request)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 156, in handle_request
patzilla    |     view_name
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/view.py", line 642, in _call_view
patzilla    |     response = view_callable(context, request)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/config/views.py", line 181, in __call__
patzilla    |     return view(context, request)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/viewderivers.py", line 462, in rendered_view
patzilla    |     request, result, view_inst, context)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/renderers.py", line 435, in render_view
patzilla    |     return self.render_to_response(response, system, request=request)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/renderers.py", line 458, in render_to_response
patzilla    |     result = self.render(value, system_values, request=request)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid/renderers.py", line 454, in render
patzilla    |     result = renderer(value, system_values)
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid_mako/__init__.py", line 156, in __call__
patzilla    |     reraise(MakoRenderingException(errtext), None, exc_info[2])
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid_mako/__init__.py", line 148, in __call__
patzilla    |     result = template.render_unicode(**system)
patzilla    |   File "/usr/lib/python2.7/site-packages/mako/template.py", line 471, in render_unicode
patzilla    |     as_unicode=True)
patzilla    |   File "/usr/lib/python2.7/site-packages/mako/runtime.py", line 838, in _render
patzilla    |     **_kwargs_for_callable(callable_, data))
patzilla    |   File "/usr/lib/python2.7/site-packages/mako/runtime.py", line 873, in _render_context
patzilla    |     _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
patzilla    |   File "/usr/lib/python2.7/site-packages/mako/runtime.py", line 899, in _exec_template
patzilla    |     callable_(context, *args, **kwargs)
patzilla    |   File "patzilla_navigator_templates_site_mako", line 52, in render_body
patzilla    |   File "/usr/lib/python2.7/site-packages/mako/runtime.py", line 748, in _include_file
patzilla    |     template = _lookup_template(context, uri, calling_uri)
patzilla    |   File "/usr/lib/python2.7/site-packages/mako/runtime.py", line 804, in _lookup_template
patzilla    |     raise exceptions.TemplateLookupException(str(compat.exception_as()))
patzilla    | MakoRenderingException: 
patzilla    | 
patzilla    | Traceback (most recent call last):
patzilla    |   File "/usr/lib/python2.7/site-packages/pyramid_mako/__init__.py", line 148, in __call__
patzilla    |     result = template.render_unicode(**system)
patzilla    |   File "/usr/lib/python2.7/site-packages/mako/template.py", line 471, in render_unicode
patzilla    |     as_unicode=True)
patzilla    |   File "/usr/lib/python2.7/site-packages/mako/runtime.py", line 838, in _render
patzilla    |     **_kwargs_for_callable(callable_, data))
patzilla    |   File "/usr/lib/python2.7/site-packages/mako/runtime.py", line 873, in _render_context
patzilla    |     _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
patzilla    |   File "/usr/lib/python2.7/site-packages/mako/runtime.py", line 899, in _exec_template
patzilla    |     callable_(context, *args, **kwargs)
patzilla    |   File "/usr/lib/python2.7/site-packages/patzilla/navigator/templates/site.mako", line 29, in render_body
patzilla    |     <%include file="urlcleaner.js"/>
patzilla    |   File "/usr/lib/python2.7/site-packages/mako/runtime.py", line 748, in _include_file
patzilla    |     template = _lookup_template(context, uri, calling_uri)
patzilla    |   File "/usr/lib/python2.7/site-packages/mako/runtime.py", line 804, in _lookup_template
patzilla    |     raise exceptions.TemplateLookupException(str(compat.exception_as()))
patzilla    | TemplateLookupException: Can not locate template for uri 'patzilla.navigator:templates/urlcleaner.js'
patzilla    | 

I understand that the docker-compose means of installation is probably not supported yet, just wanted to point out the issue. (Also had to add a couple of things to the docker files to get things to work, happy to make a pull request when desired)

Problems installing in sandbox mode, and migration to Python 3

I'm trying to launch Patzilla in sandbox mode.
However, when I connect the page http://localhost:6543/navigator/ I get a blank page. In debug console, I found:

Uncaught Error: Module build failed (from /home/yves/patzilla/patzilla/node_modules/sass-loader/lib/loader.js):
Error: Missing binding /home/yves/patzilla/patzilla/node_modules/node-sass/vendor/linux-x64-83/binding.node
Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 14.x

Found bindings for the following environments:
  - Linux 64-bit with Node.js 11.x

This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to download the binding for your current environment.

However, the file /home/yves/patzilla/patzilla/node_modules/node-sass/vendor/linux-x64-83/binding.node exists.
On Internet, I found multiple answer to rebuild node-sass module, but after tenth rebuild, I convinced that something else is the cause.
I have system node at version 14.25.3, thus I don't understand why it says Found bindings for the following environments: - Linux 64-bit with Node.js 11.x

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.