Ask Your Question

When installing Askbot, how to solve issue AttributeError: 'NoneType' object has no attribute 'rfind'?

asked 2016-12-31 12:05:44 -0600

oawad79 gravatar image

updated 2017-02-24 11:35:13 -0600

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

When running python2.7 develop

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

Traceback (most recent call last): File "", 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/", line 151, in setup dist.run_commands() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/", line 953, in run_commands self.run_command(cmd) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/", line 972, in run_command File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/command/", line 36, in run self.install_for_development() File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/command/", 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/", line 747, in process_distribution [requirement], self.local_index, self.easy_install File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/pkg_resources/", 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/", line 1118, in best_match return self.obtain(req, installer) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/pkg_resources/", line 1130, in obtain return installer(requirement) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/command/", 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/", line 700, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/command/", 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/", 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/", line 1106, in run_setup run_setup(setup_script, args) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/", line 258, in run_setup raise File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/", line 198, in setup_context yield File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/", line 169, in save_modules saved_exc.resume() File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/", line 144, in resume six.reraise(type, exc, self._tb) File "/Users/oawad/.virtualenvs/askbot/lib/python2 ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2017-01-04 09:37:15 -0600

Evgeny gravatar image

There must be some issue in the dependencies that are not explicitly set in the askbot's Unfortunately things may break if some dependency of dependency, etc. breaks upon version upgrade. Askbot is limiting versions of dependency packages, but nested dependencies are not fixed or limited.

Please have a look at this discussion

Also could you please run pip --freeze > before-req.txt and then hopefully fix using the advice in the ticket and then run pip --freeze > after-req.txt, then run diff before-req.txt after-req.txt and post the result?

If the discussion in the ticket helped - can you tell which steps solved the problem?

edit flag offensive delete link more


Thanks it worked. I did this "pip install Lamson"

oawad79 gravatar imageoawad79 ( 2017-01-06 15:00:18 -0600 )edit

answered 2017-02-21 14:04:29 -0600

dhill gravatar image

I was getting the AttributeError: 'NoneType' object has no attribute 'rfind' exception above and pip install Lamson fixed it for me. I saved the dependencies before and after and here is the diff:

$ diff --color requirements_before.txt requirements_after.txt 
> chardet==2.3.0
> docutils==0.13.1
> lockfile==0.12.2
> MarkupSafe==0.23
> nose==1.3.7
> python-daemon==2.1.2
edit flag offensive delete link more


Lamson dependency will be removed in the upcoming release.

Evgeny gravatar imageEvgeny ( 2017-02-22 16:40:41 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-12-31 12:05:44 -0600

Seen: 206 times

Last updated: 2 days ago