New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #19540 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

python25 - Registry error after upgrade

Reported by: asbjorn@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.8.0
Component: base Version: 1.7.1
Keywords: registry error port failed Cc:
Port: python25

Description

After an "upgrade outdated", python25 has been destroyed and left MacPorts in a non-working state, only yielding the following error message:

Error: /opt/local/bin/port: port installed failed: Registry error: python25 @2.5.4_3+darwin_9+macosx not registered as installed.

I get this error message on most "port" arguments/actions. Please let me know if there's any debugging I can do to make it easier to figure out what's wrong. Thanks!

Change History

comment:1 Changed 4 years ago by blb@…

What is the result from running the following?

ls -l /opt/local/var/macports/software/python25
ls -l /opt/local/var/macports/receipts/python25
ls -l /opt/local/bin/python2.5

comment:2 Changed 4 years ago by asbjorn@…

$  ls -l /opt/local/var/macports/software/python25
total 0
drwxr-xr-x    5 root     admin   170B May  4 12:30 ./
drwxr-xr-x  318 asbjorn  admin    11K May  4 12:22 ../
drwxr-xr-x    4 root     admin   136B Nov  8 12:41 2.5.2_5+darwin_9/
drwxr-xr-x    4 root     admin   136B Jan 12 09:41 2.5.2_7+darwin_9/
drwxr-xr-x    4 root     admin   136B May  4 12:30 2.5.4_3+darwin_9+macosx/

$  ls -l /opt/local/var/macports/receipts/python25
total 0
drwxr-xr-x    5 root  admin   170B May  4 12:31 ./
drwxr-xr-x  322 root  admin    11K May  4 12:30 ../
drwxr-xr-x    4 root  admin   136B Dec  5 00:12 2.5.2_5+darwin_9/
drwxr-xr-x    4 root  admin   136B Apr  7 21:09 2.5.2_7+darwin_9/
drwxr-xr-x    3 root  admin   102B May  4 12:31 2.5.4_3+darwin_9+macosx/

$  ls -l /opt/local/bin/python2.5
ls: /opt/local/bin/python2.5: No such file or directory

comment:3 Changed 4 years ago by blb@…

It looks like no python25 is currently activated, and the 2.5.4_3 has something wrong; one more ls should tell us:

ls -l /opt/local/var/macports/receipts/python25/2.5.4_3+darwin_9+macosx

If it isn't receipt.bz2 then it sounds like something bad happened during writing the receipt.

comment:4 Changed 4 years ago by asbjorn@…

$ ls -l /opt/local/var/macports/receipts/python25/2.5.4_3+darwin_9+macosx
total 0
drwxr-xr-x  3 root  admin   102B May  4 12:31 ./
drwxr-xr-x  5 root  admin   170B May  4 12:31 ../
-rw-r--r--  1 root  admin     0B May  4 12:31 receipt.tmp

comment:5 Changed 4 years ago by jmr@…

Yep, looks like port was interrupted before it wrote the receipt out. Delete the whole 2.5.4_3+darwin_9+macosx directory, there's nothing that can be salvaged there.

comment:6 Changed 4 years ago by blb@…

Make sure to delete both, under var/macports/software/python25 and var/macports/receipts/python25; then you should be able to get python25 installed again.

comment:7 Changed 4 years ago by asbjorn@…

So, the full paths I'm supposed to delete are /opt/local/var/macports/software/python25 and /opt/local/var/macports/receipts/python25?

comment:8 Changed 4 years ago by blb@…

No, just 2.5.4_3+darwin_9+macosx within those two paths, since that version is the only one that appears to have problems.

comment:9 follow-up: ↓ 10 Changed 4 years ago by asbjorn@…

Ok. I've just executed

sudo rm -rf /opt/local/var/macports/software/python25/2.5.4_3+darwin_9+macosx/
sudo rm -rf /opt/local/var/macports/receipts/python25/2.5.4_3+darwin_9+macosx/
sudo port upgrade outdated

so let's see how that goes. I'll report back when the upgrade is done.

comment:10 in reply to: ↑ 9 Changed 4 years ago by macsforever2000@…

Replying to asbjorn@…:

so let's see how that goes. I'll report back when the upgrade is done.

Did it work?

comment:11 Changed 4 years ago by asbjorn@…

Not really:

make[3]: Nothing to be done for `all'.
if /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I. -I..   -I/opt/local/include -g -O3 -ffast-math -Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DENBLEND_CACHE_IMAGES -DNDEBUG -I../include -O2 -MT enblend-enblend.o -MD -MP -MF ".deps/enblend-enblend.Tpo" -c -o enblend-enblend.o `test -f 'enblend.cc' || echo './'`enblend.cc; \
	then mv -f ".deps/enblend-enblend.Tpo" ".deps/enblend-enblend.Po"; else rm -f ".deps/enblend-enblend.Tpo"; exit 1; fi
/opt/local/include/GL/gl.h:1737: error: conflicting declaration 'typedef void (* PFNGLTEXIMAGE3DPROC)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*)'
/opt/local/include/GL/glew.h:1190: error: 'PFNGLTEXIMAGE3DPROC' has a previous declaration as 'typedef void (* PFNGLTEXIMAGE3DPROC)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*)'
/opt/local/include/GL/gl.h:1841: error: conflicting declaration 'typedef void (* PFNGLSECONDARYCOLORPOINTERPROC)(GLint, GLenum, GLsizei, const GLvoid*)'
/opt/local/include/GL/glew.h:1477: error: 'PFNGLSECONDARYCOLORPOINTERPROC' has a previous declaration as 'typedef void (* PFNGLSECONDARYCOLORPOINTERPROC)(GLint, GLenum, GLsizei, GLvoid*)'
/opt/local/include/GL/gl.h:1843: error: conflicting declaration 'typedef void (* PFNGLPOINTPARAMETERFVPROC)(GLenum, const GLfloat*)'
/opt/local/include/GL/glew.h:1458: error: 'PFNGLPOINTPARAMETERFVPROC' has a previous declaration as 'typedef void (* PFNGLPOINTPARAMETERFVPROC)(GLenum, GLfloat*)'
/opt/local/include/GL/gl.h:1845: error: conflicting declaration 'typedef void (* PFNGLPOINTPARAMETERIVPROC)(GLenum, const GLint*)'
/opt/local/include/GL/glew.h:1460: error: 'PFNGLPOINTPARAMETERIVPROC' has a previous declaration as 'typedef void (* PFNGLPOINTPARAMETERIVPROC)(GLenum, GLint*)'
/opt/local/include/GL/gl.h:1847: error: conflicting declaration 'typedef void (* PFNGLMULTIDRAWARRAYSPROC)(GLenum, const GLint*, const GLsizei*, GLsizei)'
/opt/local/include/GL/glew.h:1455: error: 'PFNGLMULTIDRAWARRAYSPROC' has a previous declaration as 'typedef void (* PFNGLMULTIDRAWARRAYSPROC)(GLenum, GLint*, GLsizei*, GLsizei)'
/opt/local/include/GL/gl.h:1848: error: conflicting declaration 'typedef void (* PFNGLMULTIDRAWELEMENTSPROC)(GLenum, const GLsizei*, GLenum, const GLvoid**, GLsizei)'
/opt/local/include/GL/glew.h:1456: error: 'PFNGLMULTIDRAWELEMENTSPROC' has a previous declaration as 'typedef void (* PFNGLMULTIDRAWELEMENTSPROC)(GLenum, GLsizei*, GLenum, const GLvoid**, GLsizei)'
/opt/local/include/GL/gl.h:1927: error: conflicting declaration 'typedef void (* PFNGLGETVERTEXATTRIBPOINTERVPROC)(GLuint, GLenum, GLvoid**)'
/opt/local/include/GL/glew.h:1766: error: 'PFNGLGETVERTEXATTRIBPOINTERVPROC' has a previous declaration as 'typedef void (* PFNGLGETVERTEXATTRIBPOINTERVPROC)(GLuint, GLenum, GLvoid*)'
/opt/local/include/GL/gl.h:1969: error: conflicting declaration 'typedef void (* PFNGLGETSHADERSOURCEPROC)(GLuint, GLsizei, GLsizei*, GLchar*)'
/opt/local/include/GL/glew.h:1761: error: 'PFNGLGETSHADERSOURCEPROC' has a previous declaration as 'typedef void (* PFNGLGETSHADERSOURCEPROC)(GLint, GLsizei, GLsizei*, GLchar*)'
make[3]: *** [enblend-enblend.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Warning: the following items did not execute (for enblend): org.macports.destroot org.macports.build
Error: Unable to upgrade port: 1

comment:12 Changed 4 years ago by macsforever2000@…

We're going to need more information. For instance, what port was building when that error occurred? Can you post the complete more of the build log?

comment:13 Changed 4 years ago by jmr@…

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to MacPorts 1.8.0

This should be fixed by r51138. The error in comment:11 has nothing to do with the originally reported problem.

comment:14 Changed 4 years ago by asbjorn@…

Ok, looking forward to v1.8.0 then! :)

Note: See TracTickets for help on using tickets.