Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

problem building askbot from the source

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.7/site-packages/setuptools/sandbox.py", line 157, in save_modules yield saved File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 198, in setup_context yield File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 255, in run_setup DirectorySandbox(setup_dir).run(runner) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 285, in run return func() File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 253, in runner _execfile(setup_script, ns) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 47, in _execfile exec(code, globals, locals) File "/var/folders/9y/fbnxl7pd2897vd5r5lbj2rp80000gn/T/easy_install-v54HKY/python-daemon-2.1.2/setup.py", line 86, in <module>

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/var/folders/9y/fbnxl7pd2897vd5r5lbj2rp80000gn/T/easy_install-v54HKY/python-daemon-2.1.2/version.py", line 640, in __init__ File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/dist.py", line 317, in __init__ self.fetch_build_eggs(attrs['setup_requires']) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/dist.py", line 372, in fetch_build_eggs replace_conflicting=True, 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/dist.py", line 438, in fetch_build_egg cmd.ensure_finalized() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized self.finalize_options() File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 251, in finalize_options 'dist_version': self.distribution.get_version(), File "/var/folders/9y/fbnxl7pd2897vd5r5lbj2rp80000gn/T/easy_install-v54HKY/python-daemon-2.1.2/version.py", line 656, in get_version File "/var/folders/9y/fbnxl7pd2897vd5r5lbj2rp80000gn/T/easy_install-v54HKY/python-daemon-2.1.2/version.py", line 651, in get_version_info File "/var/folders/9y/fbnxl7pd2897vd5r5lbj2rp80000gn/T/easy_install-v54HKY/python-daemon-2.1.2/version.py", line 552, in get_changelog_path File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/posixpath.py", line 122, in dirname i = p.rfind('/') + 1 AttributeError: 'NoneType' object has no attribute 'rfind'

problem building askbot from the source

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.7/site-packages/setuptools/sandbox.py", line 157, in save_modules yield saved File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 198, in setup_context yield File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 255, in run_setup DirectorySandbox(setup_dir).run(runner) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 285, in run return func() File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 253, in runner _execfile(setup_script, ns) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 47, in _execfile exec(code, globals, locals) File "/var/folders/9y/fbnxl7pd2897vd5r5lbj2rp80000gn/T/easy_install-v54HKY/python-daemon-2.1.2/setup.py", line 86, in <module>

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/var/folders/9y/fbnxl7pd2897vd5r5lbj2rp80000gn/T/easy_install-v54HKY/python-daemon-2.1.2/version.py", line 640, in __init__ File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/dist.py", line 317, in __init__ self.fetch_build_eggs(attrs['setup_requires']) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/dist.py", line 372, in fetch_build_eggs replace_conflicting=True, 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/dist.py", line 438, in fetch_build_egg cmd.ensure_finalized() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized self.finalize_options() File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 251, in finalize_options 'dist_version': self.distribution.get_version(), File "/var/folders/9y/fbnxl7pd2897vd5r5lbj2rp80000gn/T/easy_install-v54HKY/python-daemon-2.1.2/version.py", line 656, in get_version File "/var/folders/9y/fbnxl7pd2897vd5r5lbj2rp80000gn/T/easy_install-v54HKY/python-daemon-2.1.2/version.py", line 651, in get_version_info File "/var/folders/9y/fbnxl7pd2897vd5r5lbj2rp80000gn/T/easy_install-v54HKY/python-daemon-2.1.2/version.py", line 552, in get_changelog_path File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/posixpath.py", line 122, in dirname i = p.rfind('/') + 1 AttributeError: 'NoneType' object has no attribute 'rfind'

click to hide/show revision 3
retagged

problem building askbot from the source

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.7/site-packages/setuptools/sandbox.py", line 157, in save_modules yield saved File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 198, in setup_context yield File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 255, in run_setup DirectorySandbox(setup_dir).run(runner) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 285, in run return func() File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 253, in runner _execfile(setup_script, ns) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/sandbox.py", line 47, in _execfile exec(code, globals, locals) File "/var/folders/9y/fbnxl7pd2897vd5r5lbj2rp80000gn/T/easy_install-v54HKY/python-daemon-2.1.2/setup.py", line 86, in <module>

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/var/folders/9y/fbnxl7pd2897vd5r5lbj2rp80000gn/T/easy_install-v54HKY/python-daemon-2.1.2/version.py", line 640, in __init__ File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/dist.py", line 317, in __init__ self.fetch_build_eggs(attrs['setup_requires']) File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/dist.py", line 372, in fetch_build_eggs replace_conflicting=True, 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/dist.py", line 438, in fetch_build_egg cmd.ensure_finalized() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized self.finalize_options() File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 251, in finalize_options 'dist_version': self.distribution.get_version(), File "/var/folders/9y/fbnxl7pd2897vd5r5lbj2rp80000gn/T/easy_install-v54HKY/python-daemon-2.1.2/version.py", line 656, in get_version File "/var/folders/9y/fbnxl7pd2897vd5r5lbj2rp80000gn/T/easy_install-v54HKY/python-daemon-2.1.2/version.py", line 651, in get_version_info File "/var/folders/9y/fbnxl7pd2897vd5r5lbj2rp80000gn/T/easy_install-v54HKY/python-daemon-2.1.2/version.py", line 552, in get_changelog_path File "/Users/oawad/.virtualenvs/askbot/lib/python2.7/posixpath.py", line 122, in dirname i = p.rfind('/') + 1 AttributeError: 'NoneType' object has no attribute 'rfind'