Ask Your Question

Evgeny's profile - activity

2019-02-14 02:30:27 -0500 received badge  Notable Question (source)
2018-08-24 09:25:58 -0500 commented question Why do inactive users still receive email?

@dccarson, this will be fixed, thank you!

2018-05-07 14:56:35 -0500 commented question Why can't retag function be used? It is also not available for self-building. Is it not on-line?

Sorry, what do you mean by self-building (do you mean self-hosting)? What version of Askbot are you using and how did yo

2018-05-07 14:56:08 -0500 commented question Why can't retag function be used? It is also not available for self-building. Is it not on-line?

Sorry, what do you mean by self-building? What version of Askbot are you using and how did you download it?

2017-10-09 19:57:06 -0500 received badge  Nice Answer (source)
2017-07-11 15:25:02 -0500 commented question Can't log in to local Askbot; it simply refreshes /signin

Of course the accounts from askbot.org are not used on your site, there must be something else.

2017-05-22 08:57:41 -0500 answered a question Askbot for Laravel project

In a way it's possible: deploy Askbot on your server perhaps "mounted" at some sub-url example.com/qa. If necessary it

2017-03-17 14:28:55 -0500 edited question Suggestions to improve the versioning scheme of the Askbot releases

I am working with AskBot since 6-months and I have tested the AskBot with Different Linux distro including Ubuntu 16.04, Debian 8, CentOS 7, RHEL 7.

The Askbot have different branches including different Django versions the Askbot branches looks like

0.7.x, 0.8.x, 0.9.x, 0.10.x

Instead of different branches Why not it must be at one that is major versions like ASKBOT 1.0 must be dependent on Latest Django version.

Please merge all AskBot subversion 0.7.x, 0.8.x, 0.9.x, 0.10.x to AskBot major version 1.0.x

If it has major versions updates are going to be maintained easily.That is recommended step for future development and releases under Latest stable Django environment.

2017-03-17 14:26:18 -0500 answered a question Suggestions to improve the versioning scheme of the Askbot releases

From what I gather in the suggestion - would be nice to support the latest version of Django - of course it makes sense. Regarding branching of versions - it has become required since at some point versions of Django became mutually incompatible. Perhaps this will stop being the case at some point.

Regarding how to name the versions - I think it's not that important as long as the scheme is understandable.

At this point it is not hard to maintain sub-versions 0.7 - 0.10, so older version still continue to receive updates and their templates and internationalization strings are almost fully compatible.

2017-03-09 11:42:49 -0500 answered a question Does Askbot support Python 3?

No, Askbot (as of v0.10.2/ March 2017) does not support Pyton 3, please install latest Python 2.7 and try again.

2017-03-09 11:41:42 -0500 edited question Does Askbot support Python 3?

I am installing for the first time on a Windows machine. I first installed Python 3.6 and verified PIP is working fine. However, in following the instructions to install using PIP, I get the following error:

C:\Askbot>pip install askbot Collecting askbot Downloading askbot-0.10.2.tar.gz (8.1MB) 100% |████████████████████████████████| 8.1MB 156kB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\MyUser\AppData\Local\Temp\pip-build-eukbfsgi\askbot\setup.py", line 135 ********************""" ^ SyntaxError: Missing parentheses in call to 'print'

---------------------------------------- Command "python setup.py egg_info"

failed with error code 1 in C:\Users\MyUser\AppData\Local\Temp\pip-build-eukbfsgi\askbot\

2017-03-02 15:08:42 -0500 edited question Upgrade from 0.7.5 (and other earlier versions) to 0.10.x

I have been trying to follow the instructions from the upgrade page on askbot website.

Everything worked fine until the last step. When I upgraded from 0.8.1 to the next version. pip install askbot<1.0 installed version 0.10.1 and Django 1.8.17. But my database wasn't ready for Django 1.8. It was giving me the following error:

System check identified 2 issues (0 silenced).
There is no South database module 'south.db.postgresql_psycopg2' for your database. Please either choose a supported database, check for SOUTH_DATABASE_ADAPTER[S] settings, or remove South from INSTALLED_APPS.

I tried to downgrade askbot to 0.9 and Django to 1.7. Then the problem was pytz2013b0 was installed and the self check test says pytz2013b was required. But I couldn't install pytz2013b.

Any suggestions how to move forward?

Thanks.

2017-03-02 14:53:09 -0500 commented question Why language code changed by itself?

@AaronHuang what was the solution?

2017-03-02 14:51:46 -0500 commented question How to upgrade version of Askbot from 0.7.x to higher version (for example from Askbot.com hosted 0.7.49) ?
2017-03-02 14:43:42 -0500 edited answer When installing Askbot, how to solve issue AttributeError: 'NoneType' object has no attribute 'rfind'?

This issue is resolved in the latest releases and in the github repository.

It was caused by a dependency used by another dependency library (Lamson - used for processing of incoming email), where a version of the dependency library was not specified with sufficient detail. From now on these libraries will need to be installed manually by those people who want to support posting responses by email. This feature is not enabled by default.

Before the solution was to run pip install Lamson or pip install django-lamson (the latter is better as it satisfies all dependencies for the "reply by email" feature.

2017-02-22 20:56:42 -0500 commented answer How to upgrade version of Askbot from 0.7.x to higher version (for example from Askbot.com hosted 0.7.49) ?

You're welcome!

2017-02-22 20:10:38 -0500 commented answer How to upgrade version of Askbot from 0.7.x to higher version (for example from Askbot.com hosted 0.7.49) ?

migrate "robots" with --fake, then run `python manage.py migrate` without options. Then don't forget to copy the uploaded media files to the same directory that is specified by the `MEDIA_ROOT` in settings.py

2017-02-22 19:50:04 -0500 commented answer How to upgrade version of Askbot from 0.7.x to higher version (for example from Askbot.com hosted 0.7.49) ?

Maybe you've applied migrate --fake to some other apps? If it says "nothing to migrate", it is thinking that migrations were applied, but it can't be the case if some database tables are missing... What was your site domain name? I can try migrating your data dump myself.

2017-02-22 19:16:55 -0500 commented answer How to upgrade version of Askbot from 0.7.x to higher version (for example from Askbot.com hosted 0.7.49) ?

Just run "migrate", without specifying the app name, that will migrate all apps.

2017-02-22 18:28:59 -0500 commented answer How to upgrade version of Askbot from 0.7.x to higher version (for example from Askbot.com hosted 0.7.49) ?

Looks like you have installed on top of later development version from github. File 0013_auto_2017 is not even on the master branch. Better start over with a brand new directory.

2017-02-22 16:40:41 -0500 commented answer When installing Askbot, how to solve issue AttributeError: 'NoneType' object has no attribute 'rfind'?

Lamson dependency will be removed in the upcoming release.

2017-02-22 16:39:57 -0500 edited question When installing Askbot, how to solve issue AttributeError: 'NoneType' object has no attribute 'rfind'?

I am trying ti build askbot from the latest clone from github

When running python2.7 setup.py develop

it runs and the I get the following error, what is the issue?

Traceback (most recent call last): File "setup.py", line 122, in <module> (**) - With MySQL you have to use MyISAM data backend, because it's the only one that supports Full Text Search.""" File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/command/develop.py", line 36, in run self.install_for_development() File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/command/develop.py", line 137, in install_for_development self.process_distribution(None, self.dist, not self.no_deps) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 747, in process_distribution [requirement], self.local_index, self.easy_install File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/pkg_resources/__init__.py", line 846, in resolve dist = best[req.key] = env.best_match(req, ws, installer) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1118, in best_match return self.obtain(req, installer) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1130, in obtain return installer(requirement) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 674, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 700, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 881, in install_eggs return self.build_and_install(setup_script, setup_base) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1120, in build_and_install self.run_setup(setup_script, setup_base, args) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1106, in run_setup run_setup(setup_script, args) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 258, in run_setup raise File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 198, in setup_context yield File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 169, in save_modules saved_exc.resume() File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 144, in resume six.reraise(type, exc, self._tb) File "/Users/oawad/.virtualenvs/askbot/lib/python2 ... (more)

2017-02-22 16:35:36 -0500 commented question How to upgrade version of Askbot from 0.7.x to higher version (for example from Askbot.com hosted 0.7.49) ?

I have changed the title of your question to make specific.

2017-02-22 16:34:35 -0500 edited question How to upgrade version of Askbot from 0.7.x to higher version (for example from Askbot.com hosted 0.7.49) ?

I am using the askbot hosting. I decided to migrate from askbot to self hosting. From the askbot hosting, I can download backup files as the tar.gz format.

For the self hosting, I am using Ubuntu 16.04 and Python 2.7 (installed version) and postgresql 9.5. At the first time, I installed askbot by using the pip command. Then, I copied everything askbot document as below.

  1. install pip and install askbot

    $ sudo apt install python-pip

    $ pip install askbot

  2. install postgresql

    $ sudo apt-get install postgresql postgresql-contrib

    $ sudo apt-get install python-psycopg2

    $ sudo apt-get install libqp-dev

  3. add the postgres user and database

    $ sudo -u postgres psql

    $ CREATE DATABASE askbotdb;

    $ CREATE ROLE askbotuser WITH LOGIN PASSWORD 'password';

    $ GRANT ALL PRIVILEGES ON DATABASE askbotdb TO askbotuser;

  4. Add users and authorized 'superuser' to restore the backup file downloaded from askbot.org.

    $ create role askbot with login password 'password';

    $ alter role askbot superuser;

    $ alter role askbotuser superuser;

  5. restore backup file.

    $ tar zxvf backups.tar.gz

    $ psql -U askbotuser askbotdb < dump.sql

  6. Edit the pg_hba.conf

  7. restart postgres

  8. make the directory for django project.

    $ sudo usermod -a -G www-data root

    $ sudo mkdir -p /var/www/project_name

    $ sudo chown root:www-data /var/www/project_name

    $ sudo chmod g+w /var/www/project_name

    $ cd /var/www/project_name

    $ askbot-setup

  9. Fill the basic information

    1) . 2) 1 (postgresql) 3) askbotdb 4) askbotuser 5) password for askbotuser

  10. run below command

    $ python manage.py collectstatic

  11. change mode

    $ sudo chmod g+x askbot/upfiles

    $ sudo chmod g+x log/

    $ sudo chown -R root:www-data /var/www/project-name

  12. run below command.

    $ python mange.py migrate askbot --fake-initial

    WARNING!!! You are using a 'locmem' (local memory) caching backend, which is OK for a low volume site running on a single-process server. For a multi-process configuration it is neccessary to have a production cache system, such as redis or memcached.

    With local memory caching and multi-process setup you might intermittently see outdated content on your site.

    Please run command

    python manage.py collectstatic
    

    System check identified some issues:

    WARNINGS: django_authopenid.UserPasswordQueue.user: (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField. HINT: ForeignKey(unique=True) is usually better served by a OneToOneField. group_messaging.SenderList.recipient: (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField. HINT: ForeignKey(unique=True) is usually better served by a OneToOneField. Operations to perform: Apply all migrations: askbot Running migrations: Rendering model states... DONE Applying askbot.0001_initial...Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 346, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 394, in run_from_argv self.execute(args, *cmd_options) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute ...

(more)
2017-02-22 16:31:28 -0500 answered a question How to upgrade version of Askbot from 0.7.x to higher version (for example from Askbot.com hosted 0.7.49) ?

(Assuming that you are migrating from some version whose number starts with 0.7) Start with the latest version 0.7.x, i.e. pip install 'askbot<0.8'. Put your dump into an empty database then migrate the database that you've downloaded and imported with the newer version of Askbot. The issue is that you've started with the some sub-version of 0.10, which is incompatible with your database out of the box.

This answer does not answer the question fully and will be updated, I need to run a test migration to higher versions to confirm the steps. Later versions (>0.7.x) support other versions of Django with incompatible database migrations methods, so to migrate to the Latest version, some intermediate steps will be required.

2017-02-14 08:56:55 -0500 answered a question Upgrade from 0.7.5 (and other earlier versions) to 0.10.x

The process is documented here: https://github.com/ASKBOT/askbot-deve...

The documentation is tested with versions 0.7.58, 0.8.2, 0.9.3, 0.10.2 (released on March 1, 2017).

2017-02-12 17:08:01 -0500 commented answer askbot running without pictures and js

Because in production it's a lot more efficient to serve static files by a web-server such as nginx, rather than by a Python program. The `runserver` is meant only for the development and testing, so it should be serving from the media directories. The /m/ `STATIC_URL prefix can be replaced with anything else. Short url saves on bandwidth, even though a tiny bit.

2017-02-11 09:36:30 -0500 answered a question Why django makemessages exports only two phrases, while many more are expected?

You are confusing django-rosetta with makemessages. The makemessages is a django's built-in command and it must be run from within an app for which you are trying to build the internationalization file.

Change the current directory to the app, then run the command.

cd <path-to-some-app>
python <path-to-manage.py file> makemessages

Notice that Django's makemessages will extract files from django templates, but won't work with Jinja2 templates. For example Askbot (which uses Jinja2 templates) relies on it's own jinja2_makemessages command.

In my development setup I mostly have the askbot app installed in the root of the Django project, so my manage.py file is one level up from askbot directory, therefore I jump into askbot and run

python ../manage.py jinja2-makemessages -l en -e html,py,txt #for .py files and templates.
python ../manage.py makemessages -d djangojs -l en -e js #this time extract strings from .js files
2017-02-11 09:27:31 -0500 edited question Why django makemessages exports only two phrases, while many more are expected?

I have installed django-rosetta successfully.

But when I was running django-admin makemessages -l de.

I got only two records from django.po:

 #: settings.py:225
msgid "account/"
msgstr ""

#: settings.py:225
msgid "signin/"
msgstr ""

is that anything wrong I did?

2017-02-11 09:24:50 -0500 answered a question ImportError: No module named ...

This means that askbot as well as probably other modules are not on Python path. If you are using virtualenv - virtual environment, then you must activate it first:

source /path/to/env/bin/activate

In the case above the /path/to/ is the directory where the virtual environment was built, by command:

cd /path/to
virtualenv env --no-site-packages

Then, it is assumed that you've installed your modules into that environment. For example installed askbot there:

cd /path/to
source env/bin/activate
pip install askbot #as an example here used basic pip install method

If you've followed the above through with the deployment of the Django project (it is described in the documentation), python manage.py collectstatic would work without errors.

2017-02-11 09:17:24 -0500 edited question ImportError: No module named ...

For example, when I run "python manage.py collectstatic" command for my Django project, the error is raised.

Import Error: No module named askbot
2017-02-11 09:08:07 -0500 answered a question askbot running without pictures and js

Configure your web server to serve static files. For example, in nginx:

location /m/ { # url should be the same as STATIC_URL in settings.py in this case it's /m/
    alias /path/to/static/files/; #path should be the same as STATIC_ROOT in settings.py
    autoindex off;
    expires 30d;
}
2017-01-27 09:10:14 -0500 edited question How to serve mutliple instances of Askbot in different directories using Apache?

Hello,

is it possible to have mutliple instance of askbot in differents directories on the same virtual host ?

ex: https://www.example.org/askbot1 and https://www.example.org/askbot2

They will not share the database, nor the users.

And if it's possible, what is the best way to do it : follow the install procedure from de begining to the end two times in the separates directories, or we can share some parts of the code or something ?

Thank you in advance for your help.

Vincent

2017-01-25 10:32:10 -0500 commented question How to configure Askbot with Nginx and uWSGI?

Ok, thanks, I'll work on making this more clear and add 'save tags' button.