Opened 11 years ago

Last modified 11 months ago

#43676 new defect

py27-scipy: Symbol not found: _PyUnicodeUCS2_AsASCIIString

Reported by: dmopalmer (David Palmer) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: seanfarley (Sean Farley), michaelld (Michael Dickens), jyrkiwahlstedt, cooljeanius (Eric Gallager)
Port: py27-scipy python27

Description (last modified by ryandesign (Ryan Carsten Schmidt))

py27-scipy fails with

:info:build ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): Symbol not found: _PyUnicodeUCS2_AsASCIIString
:info:build   Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so

The variants are default for python27, and +gcc48 for py27-scipy.

I am running into this problem on two different computers that have similar but not identical setups.

Attachments (1)

main.log (6.9 KB) - added by dmopalmer (David Palmer) 11 years ago.
Compile log

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by dmopalmer (David Palmer)

Attachment: main.log added

Compile log

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: sean@… michaelld@… jwa@… added
Description: modified (diff)
Summary: py27-scipy update failurepy27-scipy: Symbol not found: _PyUnicodeUCS2_AsASCIIString

Please confirm what variants of python27 are installed, by showing the output of:

port installed python27

I suspect you have actually selected the +ucs4 variant of python27, which will cause problems like this. See #36107 for a similar report against a different module. To avoid this problem, I suggest you don't use the +ucs4 variant of python27. Perhaps we should remove this variant from the python ports.

comment:2 Changed 11 years ago by dmopalmer (David Palmer)

You are correct.

% port installed python27
The following ports are currently installed:
  python27 @2.7.6_0
  python27 @2.7.6_0+ucs4
  python27 @2.7.6_0+ucs4+universal (active)

(I was using the 'port variants' command expecting it to mark the installed version. The installed py27-scipy is @0.13.3_0+gcc45)

With the variant-less python27 @2.7.6_0, I get a successful upgrade of py27-scipy.

comment:3 Changed 10 years ago by yamaneko1212@…

I've got the same issue when selecting +ucs4 variant of python27.
I checked the package that is download from macports.org and found that binary files(.so) in it are compiled with python27 with ucs2.
I tried to install numpy using option s and it seems to work fine.

port install -s py27-numpy
port install -s py27-scipy

comment:4 Changed 9 years ago by petrrr

Port: python27 added

This is ticket is probably *invalid*, or is this around to consider removal of the +ucs4 variant which probably does more harm then being useful?

comment:5 Changed 11 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.