Sage 6.8 problem building on Linux Mint 17

83 views
Skip to first unread message

Adil Hasan

unread,
Aug 3, 2015, 6:47:48 AM8/3/15
to sage-support
Hello,
I downloaded the Sage source and tried to build it running the make command. The build failed when trying to install Cython with the error below.
Has anyone seen this before?
hope all is well,
adil

Compiling module Cython.Tempita._tempita ...
running install
Traceback (most recent call last):
  File "setup.py", line 359, in <module>
    **setup_args
  File "/home/hasan/sage-6.8/local/lib/python/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/home/hasan/sage-6.8/local/lib/python/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/home/hasan/sage-6.8/local/lib/python/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 73, in run
    self.do_egg_install()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 82, in do_egg_install
    cmd.ensure_finalized()  # finalize before bdist_egg munges install cmd
  File "/home/hasan/sage-6.8/local/lib/python/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 274, in finalize_options
    ('install_dir','install_dir')
  File "/home/hasan/sage-6.8/local/lib/python/distutils/cmd.py", line 298, in set_undefined_options
    src_cmd_obj.ensure_finalized()
  File "/home/hasan/sage-6.8/local/lib/python/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.py", line 13, in finalize_options
    self.set_undefined_options('install',('install_layout','install_layout'))
  File "/home/hasan/sage-6.8/local/lib/python/distutils/cmd.py", line 302, in set_undefined_options
    getattr(src_cmd_obj, src_option))
  File "/home/hasan/sage-6.8/local/lib/python/distutils/cmd.py", line 105, in __getattr__
    raise AttributeError, attr
AttributeError: install_layout
Error installing Cython

Volker Braun

unread,
Aug 3, 2015, 8:03:45 AM8/3/15
to sage-support
Which OS is that on?

Dima Pasechnik

unread,
Aug 3, 2015, 9:28:43 AM8/3/15
to sage-support


On Monday, 3 August 2015 13:03:45 UTC+1, Volker Braun wrote:
Which OS is that on?

the subject line says "Linux Mint 17"

Adil Hasan

unread,
Aug 4, 2015, 5:43:04 AM8/4/15
to sage-support
Hello Volker, 
sorry for some reason I didn't see the responses in my email client. Yes, it's Linux mint 17 (ubuntu based system) and I have python 2.7.6 installed system-wide. If you'd like me to test 6.9 I can try that.
Apologies for the delayed response.
adil

Adil Hasan

unread,
Aug 6, 2015, 1:10:18 AM8/6/15
to sage-support
Hello,
I found out the cause of my problem. I needed to upgrade my version of setuptools (I upgrade to version 18.1 which is the latest thanks to the clue here
https://github.com/gotcha/ipdb/issues/60). I think hit another problem with Cython missing some pxd files. I think this was due to my installing the ubuntu version of
Cython. I removed this and then the build went through to completion.
Just thought I should post this in case someone else hits a similar problem (and of course to avoid people spending time on debugging it).
hth
adil

Volker Braun

unread,
Aug 6, 2015, 4:11:23 AM8/6/15
to sage-support
Reply all
Reply to author
Forward
0 new messages