Error Running Make UF

Bug #1113476 reported by Charles Profitt
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu Friendly
Fix Released
Undecided
Nicola Heald

Bug Description

InstallationError: Command python setup.py egg_info failed with error code 1 in /home/cprofitt/dev/ubuntu-friendly/build/psycopg2

Attached pip.log

Revision history for this message
Charles Profitt (cprofitt) wrote :
Revision history for this message
Charles Profitt (cprofitt) wrote :

Still hoping to get a test system up so I can look at how the code works.

Revision history for this message
Nicola Heald (notnownikki) wrote :

I can't replicate it here, everything installs fine. What release of ubuntu are you running on? Do you have libpq-dev installed?

Looks like I need to see more than pip.log to find out what's going on. Could you save all the output from your terminal so I can see the build process?

Changed in ubuntu-friendly:
assignee: nobody → Mike Heald (mike-powerthroughwords)
status: New → Incomplete
Revision history for this message
Charles Profitt (cprofitt) wrote :

installing libpq-dev seems to have gotten me farther than before...

Two messages now:

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.13 (dt dec ext pq3)" -DPG_VERSION_HEX=0x090107 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.1/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o

psycopg/psycopgmodule.c:23:20: fatal error: Python.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

----------------------------------------
Command /home/cprofitt/dev/ubuntu-friendly/bin/python -c "import setuptools;__file__='/home/cprofitt/dev/ubuntu-friendly/build/psycopg2/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-EjhUyn-record/install-record.txt --single-version-externally-managed --install-headers /home/cprofitt/dev/ubuntu-friendly/include/site/python2.7 failed with error code 1 in /home/cprofitt/dev/ubuntu-friendly/build/psycopg2
Storing complete log in /home/cprofitt/.pip/pip.log
make: *** [requirements] Error 1

Perhaps I should try a clean install.

I am running 12.10 x64

Revision history for this message
Charles Profitt (cprofitt) wrote :
Revision history for this message
Nicola Heald (notnownikki) wrote :

Ok, getting closer, and finding holes in the docs too!

You'll need to install python-dev, which will give you the missing headers.

I'm updating the docs as we go so when we have this working, we'll have a complete list of packages needed to get a dev environment running.

Revision history for this message
Charles Profitt (cprofitt) wrote :

That did get us closer. Here is the last message I get now.

>>> Creating database...
createdb ufriendly -O ufriendly
make: createdb: Command not found
make: *** [blankdb] Error 127

I am guessing this has to do with the database not being installed.

Revision history for this message
Nicola Heald (notnownikki) wrote :

Yes, you need to get your database up and running. That's a bit out of scope for the UF docs though.

Although the default setup is for postgresql, you migth find it easier to use sqlite (apt-get install sqlite3) and the django docs on setting that up are pretty straightforward.

I'll update the hacking docs and close this bug when they accurately reflect what needs to be installed for `make uf` to complete.

Changed in ubuntu-friendly:
status: Incomplete → In Progress
Changed in ubuntu-friendly:
status: In Progress → Fix Released
Revision history for this message
Charles Profitt (cprofitt) wrote :

I am now getting an error when trying to create the database. I am using postgres

>>> Full environment set up...
>>> Creating local settings...
dropdb ufriendly || true
>>> Creating database...
createdb ufriendly -O ufriendly
>>> Setting up database...
. bin/activate && cd ./apps && ./manage.py syncdb --all --noinput
Syncing...
Traceback (most recent call last):
  File "./manage.py", line 11, in <module>
    execute_manager(settings)
  File "/home/cprofitt/dev/ubuntu-friendly/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/home/cprofitt/dev/ubuntu-friendly/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/cprofitt/dev/ubuntu-friendly/local/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/cprofitt/dev/ubuntu-friendly/local/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/cprofitt/dev/ubuntu-friendly/local/lib/python2.7/site-packages/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/cprofitt/dev/ubuntu-friendly/apps/south/management/commands/syncdb.py", line 90, in handle_noargs
    syncdb.Command().execute(**options)
  File "/home/cprofitt/dev/ubuntu-friendly/local/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/cprofitt/dev/ubuntu-friendly/local/lib/python2.7/site-packages/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/home/cprofitt/dev/ubuntu-friendly/local/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 56, in handle_noargs
    cursor = connection.cursor()
  File "/home/cprofitt/dev/ubuntu-friendly/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 250, in cursor
    cursor = self.make_debug_cursor(self._cursor())
  File "/home/cprofitt/dev/ubuntu-friendly/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 140, in _cursor
    self.connection = Database.connect(**conn_params)
psycopg2.OperationalError: FATAL: Peer authentication failed for user "ufriendly"

make: *** [emptydb] Error 1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.