Comments (10)
Hi there,
thanks for writing in.
Intro
thanks for putting together such a nice application!
Thanks for the kind words, we are always happy to welcome new people interested in this and we are just getting started. The project will be happy to receive stars on GitHub ;].
I understand that the docker-compose means of installation is probably not supported yet, just wanted to point out the issue.
@aghster put that together the other day. To be honest i haven't actually used it yet as i usually run PatZilla in development mode natively on my workstation. Nevertheless, i was very happy about his contribution and will be glad if we can resolve this issue together.
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.
Looking forward! Did you even manage to get Open Office inside? Through unoconv, it is used to do some rendering for specific export artefacts.
The issue itself
It looks like Pyramid is pretty clear on what happened: TemplateLookupException: Can not locate template for uri
probably means what it says: The application can not access the template in question. So, it is probably some packaging / search path issue.
Maybe @aghster knows something about this error? If not, i will be happy to investigate further.
With kind regards,
Andreas.
from patzilla.
Hi, I just reviewed the docker files and made some modifications, cf. pull request #6.
I have identified two possible causes for an error. First, a dependency was missing. Second, for patzilla to run properly when executing "docker-compose up -d", a configuration file named patzilla.ini had to be present in the folder, where docker-compose.yml is run from.
The dependency is now fixed and a default patzilla.ini is now provided. So I would expect that executing "docker-compose up -d" within the docker/ folder should start up a patzilla container out-of-the-box. However, one should still customize patzilla.ini (in particular, at least to include custom api keys) before running the container.
I do not know whether the errors @blubbi321 encountered are caused by any of these two issues that I have adressed by my amendments, since the error message provided by @blubbi321 prima facie does not seem related to docker. Therefore, I also do not know whether these errors are now fixed by the amendments. But when I now clone the repository, change into the docker/ folder and execute "docker-compose up -d" I can access a running patzilla instance through "127.0.0.1:9999/navigator" in my browser.
from patzilla.
@aghster thanks for your quick reply. I had done a bunch of your modifications already, but apparently not enough.
Just tried to clone your repo's "docker-mods" branch and if I run the containers as suggested I get a
404 Not Found
The resource could not be found.
/navigator
from http://127.0.0.1:9999/navigator
from patzilla.
This could be due to a missing trailing slash. Please try:
http://127.0.0.1:9999/navigator/
from patzilla.
omg, then I probably had the thing running a couple of times already :D
Thanks again for your quick reply (and of course your pull request)!
Regarding the OO installation that @amotl mentioned above: I didnt try that as I was unaware it was required. I also dont see it in your dockerfiles, so Im wondering whether its required at all?
from patzilla.
Sorry for the missing slash.
I do not think that OO is included, when patzilla is installed from pypi using pip, as is the case in the docker image. 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". To my understanding @amotl simply suggested (or hoped for) that unoconv be included into the image to extend patzilla's functionality. Unfortunately, there seems to be no pre-built unoconv package for alpine (cf. https://pkgs.alpinelinux.org/packages?name=unoconv&branch=edge). Therefore, one would have to install unoconv and include the required LibreOffice or OpenOffice libraries manually.
from patzilla.
When trying to run the installation on my machine, the process of docker-compose up
will croak when trying to install the pillow package as a dependency of the patzilla package:
The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source.
from patzilla.
That was with the old Dockerfile. With the new one this error should be fixed, since jpeg-dev is now included in the packages that are installed in the image. Is it not? Can you check that your Dockerfile includes jpeg-dev?
from patzilla.
Ah, just have been reading the comments as well as #6:
I fixed a missing dependency (jpeg-dev, apparently required by pillow) and added some optional libraries (freetype-dev, lcms2-dev, tiff-dev) that I considered possibly useful.
Thank you so much, guys!
from patzilla.
@aghster said:
This could be due to a missing trailing slash. Please try:
http://127.0.0.1:9999/navigator/
@blubbi321 said:
omg, then I probably had the thing running a couple of times already :D
I am so sorry about this little detail which I believe is frustrating when getting started. Note to self: Will have to address it more appropriately, at least in the documentation.
Glad you have been able to sort this out. At least now it's documented here, which is not a bad place either.
from patzilla.
Related Issues (20)
- Support Docker-based development sandboxes HOT 5
- Improve documentation re. workstation setup vs. development setup HOT 6
- Fix normalization of USPTO document numbers for granted patents HOT 3
- Grouping by family with OPS database HOT 1
- Report with bibliographic data HOT 4
- nasa-public-domain demo link is broken HOT 1
- Unexpected HTTP 4XX in case of server issue HOT 6
- TS18002: The 'files' list in config file 'tsconfig.json' is empty. HOT 7
- Support Python 3 HOT 2
- Data lost HOT 4
- Problem getting drawings from USPTO HOT 5
- Update list of OPS fulltext countries HOT 2
- depa.tech doesn't work HOT 9
- PatZilla does not serve requests when started in development mode HOT 4
- DPMAregister data source adapter broken after upstream layout updates (June 1st, 2022) HOT 2
- DEPATISnet data source adapter broken after upstream layout updates (June 14th, 2022) HOT 2
- USPTO PatFT and AppFT servers decommissioned on September 30, 2022 HOT 2
- Problems installing in sandbox mode, and migration to Python 3 HOT 18
- User interface is broken when displaying document details HOT 11
- How to install Patzilla on Ubuntu 23.04 ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from patzilla.