Git Product home page Git Product logo

Comments (10)

atoponce avatar atoponce commented on August 20, 2024

How are you installing the application? With Apache or Nginx? Are you using WSGI, or something else to interpret the Python? Also, have you run the setup.py installation script? The hashcash.db will be automatically created on the first note. Also, there is no need to "chmod 777" anything. I would recommend making 'root' the owner of all the files and directories, and 'www-data' the group, and fully removing all permissions for the 'other' permission mode.

from d-note.

karibuTW avatar karibuTW commented on August 20, 2024

Hi Atoponce,
I'm using Apache with WSGI
Basically I've followed the installation steps on the readme.

I did run the setup.py too.

So not sure where is the issue is coming from...

from d-note.

atoponce avatar atoponce commented on August 20, 2024

At install, and after running python setup.py, your directory tree setup should look like this: http://ae7.st/p/6wp (without the hashcash.db, actually). Your dnote.wsgi should be in the same root path as the dnote/ directory. Permissions should be as follows: http://ae7.st/p/6iy. The dnote.wsgi should be something like: http://ae7.st/p/5i0 (note that it's importing the dnote/__init.py__ module). Finally, for my Apache2 installation, here is the relevant section of my /etc/apache2/sites-enabled/default config file: http://ae7.st/p/7so. Make sure to reload Apache, so it loads in the config. You need libapache2-mod-wsgi installed, and the module loaded with a2enmod wsgi.

Hope that helps.

from d-note.

karibuTW avatar karibuTW commented on August 20, 2024

Sorry for such late reply.
Unfortunately, I'm still not able to install it on my server.
And may be I got some confusion there:
In your virtualhost, you mention the variable <Directory /var/www/d>
But you don't have a folder called "d"
Same thing for your dnote.wsgi

Also, on the official tutorial, we need to create the data folder manually (But I though the setup script would do it?)
and for the permission, still on the same tutorial, there is:
chmod g+w,o= root.www-data /var/www/data/dnote/data
But no folder called /var/www/data (May be a typo)

So most probably I'm missing something...

After checking my logs I got:
File "/var/www/dnote.wsgi", line 6, in
from dnote import DNOTE as application
ImportError: No module named dnote

Any idea?

from d-note.

karibuTW avatar karibuTW commented on August 20, 2024

Hi Atoponce and all, any suggestion?
Thank you!

from d-note.

atoponce avatar atoponce commented on August 20, 2024

Sorry. I've been swamped at work and personal life, and haven't had the time to help out here.

I'm not sure what problems your having, but I've successfully built this from scratch on an Apache virtual machine, with no problem, using the documentation outlined.

from d-note.

karibuTW avatar karibuTW commented on August 20, 2024

Hi Atoponce,
Okay I'll try. By the way, in the documentation, there is:
chmod g+w,o= root.www-data /var/www/data/dnote/data
But I don't get the /var/www/data folder, where does it come from?
Not written on the documentation I think. (An error?)

Thanks!

from d-note.

atoponce avatar atoponce commented on August 20, 2024

I'll look into fixing the documentation, to make it a bit more agnostic. I'm guessing that is data that came from a copy/paste of an existing installation.

from d-note.

JacobTheEvans avatar JacobTheEvans commented on August 20, 2024

Karibu was this ever resolved? I have run into the same issue I cannot find a fix. The tutorial and what atoponce have are not the same.

from d-note.

coloradotechie avatar coloradotechie commented on August 20, 2024

I'm having the same issue... /var/log/apache2/error.log shows:

mod_wsgi (pid=4355): Target WSGI script '/var/www/dnote.wsgi' cannot be loaded as Python module.
 mod_wsgi (pid=4355): Exception occurred processing WSGI script '/var/www/dnote.wsgi'.
 Traceback (most recent call last):
   File "/var/www/dnote.wsgi", line 7, in <module>
     from dnote import DNOTE as application
ImportError: No module named dnote

from d-note.

Related Issues (20)

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.