Closed sseguku closed 9 years ago
Please check that you've activated the correct environment and that you're on the correct branch. These tasks are definitely there.
i activated the right enviroment . Which branch should I be in
It looks like you're on the upstream censusreporter/censusreporter repo or on the wrong branch.
git remote -v
should show this repo:
origin git@github.com:Code4SA/censusreporter.git (push)
origin git@github.com:Code4SA/censusreporter.git (fetch)
git branch -v
should show:
* master 0bbeb52 Postgresql 9.3
and you should be at this revision:
git rev-parse HEAD
0bbeb525c8e3d357da56e188d8ba2a74205aa723
Are you also in the repo's base directory?
Hello Greg, this is Mourine, I am having the same problem as Jjingo and here is what those commands deisplay for me. We appreciate the help.
mourine@mourine-R480-R431-R481:~/censusreporter$ git remote -v
origin https://github.com/censusreporter/censusreporter.git (fetch) origin https://github.com/censusreporter/censusreporter.git (push)
mourine@mourine-R480-R431-R481:~/censusreporter$ git branch -v
mourine@mourine-R480-R431-R481:~/censusreporter$ git rev-parse HEAD 69e65d6eccbd3b9ad0ce6c8812dd15ff1b3be2d8
mine shows
(simplecensus)jingo@e6410:~/simplecensus/censusreporter$ git remote -v origin https://github.com/censusreporter/censusreporter.git (fetch) origin https://github.com/censusreporter/censusreporter.git (push)
(simplecensus)jingo@e6410:~/simplecensus/censusreporter$ git branch -v
(simplecensus)jingo@e6410:~/simplecensus/censusreporter$ git rev-parse HEAD 69e65d6eccbd3b9ad0ce6c8812dd15ff1b3be2d8 (simplecensus)jingo@e6410:~/simplecensus/censusreporter$
![Uploading fab error.png . . .]()
Hi. Both of you are using the wrong repo, you're using the censusreporter/censusreporter repo. You need to use Code4SA/censusreporter instead. git clone git@github.com:Code4SA/censusreporter.git
I've updated the README.md to reference the correct repo. I suggest you delete your existing clone and start again.
I managed to delete and clone the right repo which is
(simplecensus)jingo@jk:~/simplecensus/censusreporter$ git remote -v origin git@github.com:Code4SA/censusreporter.git (fetch) origin git@github.com:Code4SA/censusreporter.git (push)
Now I even stop on for pip install -r requirements.txt
And I get this error below (attached to the mail)
warning: manifest_maker: standard file '-c' not found
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-t1tj5e/GDAL/setup.py", line 301, in <module>
**extra )
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "<string>", line 15, in replacement_run
File "/home/jingo/.virtualenvs/simplecensus/local/lib/python2.7/site-packages/setuptools/command/egg_info.py",
line 206, in find_sources
mm.run()
File "/home/jingo/.virtualenvs/simplecensus/local/lib/python2.7/site-packages/setuptools/command/egg_info.py",
line 290, in run
self.add_defaults()
File "/home/jingo/.virtualenvs/simplecensus/local/lib/python2.7/site-packages/setuptools/command/egg_info.py",
line 319, in add_defaults
sdist.add_defaults(self)
File "/home/jingo/.virtualenvs/simplecensus/local/lib/python2.7/site-packages/setuptools/command/sdist.py",
line 130, in add_defaults
build_ext = self.get_finalized_command('build_ext')
File "/usr/lib/python2.7/distutils/cmd.py", line 312, in
get_finalized_command
cmd_obj.ensure_finalized()
File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "/tmp/pip-build-t1tj5e/GDAL/setup.py", line 196, in finalize_options
self.gdaldir = self.get_gdal_config('prefix')
File "/tmp/pip-build-t1tj5e/GDAL/setup.py", line 176, in get_gdal_config
return fetch_config(option)
File "/tmp/pip-build-t1tj5e/GDAL/setup.py", line 129, in fetch_config
raise gdal_config_error, e""")
File "<string>", line 4, in <module>
__main__.gdal_config_error: [Errno 2] No such file or directory
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-t1tj5e/GDAL
I tried to change the gdal in the requirements from 1.10.0 to 1.11.0 but there's no difference
(simplecensus)jingo@jk:~/simplecensus/censusreporter$ git branch -v
This were I have been stuck for couple of days. I would be grateful for any help.
Thanks in advance
On 9 March 2015 at 17:34, Greg Kempe notifications@github.com wrote:
Closed #66 https://github.com/Code4SA/censusreporter/issues/66.
— Reply to this email directly or view it on GitHub https://github.com/Code4SA/censusreporter/issues/66#event-248559623.
Jingo Kisakye, Software Developer, P.0.Box 817, Kampala. +256704520128
Hi,
You need GDAL installed, I have added this to the README.md. If you're on Ubuntu, try this before running pip install
:
sudo apt-add-repository -y ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libgdal1-dev
Thanx, I have done it but am now getting another error. Am trying to google but no good ans. here it is (have attached a image)
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I/usr/include/python2.7 -I. -I/usr/include -c extensions/gdal_wrap.cpp -o build/temp.linux-i686-2.7/extensions/gdal_wrap.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid
for C/ObjC but not for C++
extensions/gdal_wrap.cpp:2855:22: fatal error: cpl_port.h: No such file
or directory
#include "cpl_port.h"
^
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/home/jingo/.virtualenvs/simplecensus/bin/python -c "import
setuptools, tokenize;file='/tmp/pip-build-Cq_Yhi/GDAL/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-bnjB0v-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/jingo/.virtualenvs/simplecensus/include/site/python2.7" failed with error code 1 in /tmp/pip-build-Cq_Yhi/GDAL
On 17 March 2015 at 09:33, Greg Kempe notifications@github.com wrote:
Hi,
You need GDAL installed, I have added this to the README.md. If you're on Ubuntu, try this before running pip install:
sudo apt-add-repository -y ppa:ubuntugis/ubuntugis-unstable sudo apt-get update sudo apt-get install libgdal1-dev
— Reply to this email directly or view it on GitHub https://github.com/Code4SA/censusreporter/issues/66#issuecomment-82149124 .
Jingo Kisakye, Software Developer, P.0.Box 817, Kampala. +256704520128
See if this helps: http://stackoverflow.com/a/17311033/2713557
Alternatively, you can comment out gdal in requiremenst.txt
, gdal is only required for downloading table data.
:) after removing gdal in the requirements.txt ... The pip install -r requirements.txt command worked sucessfully :) Also fab dev load_api_data worked successfully.
./manage.py runserver also successfuly opened but when i open it in the server it crashes and gives me
0 errors found
March 17, 2015 - 23:17:35
Django version 1.5.4, using settings 'config.dev.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
2015-03-17 23:17:42,067 ERROR base 6355 -1244660928 Internal Server Error: /
Traceback (most recent call last):
File
"/home/jingo/.virtualenvs/simplecensus/local/lib/python2.7/site-packages/django/core/handlers/base.py",
line 103, in get_response
resolver_match = resolver.resolve(request.path_info)
File
"/home/jingo/.virtualenvs/simplecensus/local/lib/python2.7/site-packages/django/core/urlresolvers.py",
line 319, in resolve
for pattern in self.url_patterns:
File
"/home/jingo/.virtualenvs/simplecensus/local/lib/python2.7/site-packages/django/core/urlresolvers.py",
line 347, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns",
self.urlconf_module)
File
"/home/jingo/.virtualenvs/simplecensus/local/lib/python2.7/site-packages/django/core/urlresolvers.py",
line 342, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File
"/home/jingo/.virtualenvs/simplecensus/local/lib/python2.7/site-packages/django/utils/importlib.py",
line 35, in import_module
import(name)
File
"/home/jingo/simplecensus/censusreporter/censusreporter/config/dev/urls.py",
line 2, in
plus attached image for browser
thx for any help in advance
On 17 March 2015 at 21:29, Greg Kempe notifications@github.com wrote:
See if this helps: http://stackoverflow.com/a/17311033/2713557
Alternatively, you can comment out gdal in requiremenst.txt, gdal is only required for downloading table data.
— Reply to this email directly or view it on GitHub https://github.com/Code4SA/censusreporter/issues/66#issuecomment-82511867 .
Jingo Kisakye, Software Developer, P.0.Box 817, Kampala. +256704520128
This is because the download functionality requires GDAL which is now not installed. :) Have you tried the Stack Overflow link to get GDAL correctly installed?
Wazimap is a fairly complicated piece of software, you're going to have to understand Python well to make it work. If you're not familiar with Python, there are many introductory courses on it which you probably want to look at.
Warning: Command(s) not found: dev load_api_data
Available commands: