LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-30-2005, 01:41 AM   #1
jtan325
LQ Newbie
 
Registered: Jan 2005
Location: Seattle
Distribution: Mandrake 10.1
Posts: 15

Rep: Reputation: 0
python install settings?


i am running Ubuntu Hoary and am trying to build the Python numarray package, v. 1.3.2 by hand since ubuntu's repos won't be updated until breezy.

i have python 2.4, and gcc 3.3.5

after unpacking the tar, i run "python setup.py install", as it says in the installation instructions. i get the following:

Code:
[colfax 53] numarray-1.3.2 > python setup.py install
Using EXTRA_COMPILE_ARGS = []
running install
running build
running build_py
copying Lib/numinclude.py -> build/lib.linux-i686-2.4/numarray
running build_ext
Traceback (most recent call last):
  File "setup.py", line 222, in ?
    main()
  File "setup.py", line 213, in main
    setup(**p)
  File "/usr/lib/python2.4/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.4/distutils/command/install.py", line 506, in run
    self.run_command('build')
  File "/usr/lib/python2.4/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.4/distutils/command/build.py", line 112, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.4/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.4/distutils/command/build_ext.py", line 254, in run
    customize_compiler(self.compiler)
  File "/usr/lib/python2.4/distutils/sysconfig.py", line 174, in customize_compiler
    cc_cmd = cc + ' ' + opt
TypeError: cannot concatenate 'str' and 'NoneType' objects

I had a similiar (but different) error earlier, but then I learned I had to set my "CC" environment variable. So I set that to "gcc".

Any ideas on this new error? Are there packages/settings I need to take care of before i can use Python's distutils?

Thanks,
Jason
 
Old 07-01-2005, 10:04 AM   #2
APB_4
Member
 
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298

Rep: Reputation: 31
To me it looks like it's still not getting the compiler
File "/usr/lib/python2.4/distutils/sysconfig.py", line 174, in customize_compiler
cc_cmd = cc + ' ' + opt
TypeError: cannot concatenate 'str' and 'NoneType' objects

I'm guessing cc is the compiler and it's None so there is no compiler.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
install python master Linux - Software 0 11-20-2005 10:31 AM
python install settings? jtan325 Linux - Newbie 1 06-30-2005 01:47 PM
install python 2.3 ,necssary to remove python 2.2 ngan_yine Linux - Newbie 7 12-28-2003 04:07 PM
python 2.3 rpm install nekid Linux - Software 3 10-23-2003 07:27 PM
Python install ixion Linux From Scratch 1 04-16-2003 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration