Hi! Thank you for your answers

Exactly, in Arch the python command means python3. This is way I get:

$ python setup.py install
running install
running build
running build_py
running build_scripts
running build_doc
Running Sphinx v1.1.3
loading pickled environment... done
building [html]: targets for 18 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
preparing documents... done
Traceback (most recent call last):                                         
     
  File "setup.py", line 224, in <module>
    cmdclass=CMDCLASS)
  File "/usr/lib/python3.3/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.3/distutils/dist.py", line 917, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.3/distutils/dist.py", line 936, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.3/distutils/command/install.py", line 569, in run
    self.run_command('build')
  File "/usr/lib/python3.3/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.3/distutils/dist.py", line 936, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.3/distutils/command/build.py", line 126, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.3/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.3/distutils/dist.py", line 936, in run_command
    cmd_obj.run()
  File "setup.py", line 105, in run
    setup_command.BuildDoc.run(self)
  File "/usr/lib/python3.3/site-packages/sphinx/setup_command.py", line 
143, in run
    app.build(force_all=self.all_files)
  File "/usr/lib/python3.3/site-packages/sphinx/application.py", line 204, 
in build
    self.builder.build_update()
  File "/usr/lib/python3.3/site-packages/sphinx/builders/__init__.py", line 
196, in build_update
    'out of date' % len(to_build))
  File "/usr/lib/python3.3/site-packages/sphinx/builders/__init__.py", line 
252, in build
    self.write(docnames, list(updated_docnames), method)
  File "/usr/lib/python3.3/site-packages/sphinx/builders/__init__.py", line 
291, in write
    doctree = self.env.get_and_resolve_doctree(docname, self)
  File "/usr/lib/python3.3/site-packages/sphinx/environment.py", line 1230, 
in get_and_resolve_doctree
    doctree = self.get_doctree(docname)
  File "/usr/lib/python3.3/site-packages/sphinx/environment.py", line 1215, 
in get_doctree
    doctree = pickle.load(f)
AttributeError: 'str' object has no attribute '__dict__'

After this, I googled a bit and I found someone saying that it should be 
installed with python2, so I did $python2 setup.py install and it went 
through ok but spyder was always running in python2.7 mode and that was 
when I wrote to you.

Following Carlos' guide, I changed python2 to python in /usr/bin/spyder 
first line. Now spyder doesn't open, I get this error:

$ spyder
Traceback (most recent call last):
  File "/usr/bin/spyder", line 2, in <module>
    from spyderlib import start_app
  File "/usr/lib/python3.3/site-packages/spyderlib/start_app.py", line 12, 
in <module>
    from spyderlib.baseconfig import get_conf_path
  File "/usr/lib/python3.3/site-packages/spyderlib/baseconfig.py", line 183
    except IOError, _e:  # analysis:ignore
                  ^
SyntaxError: invalid syntax

Installing from AUR the package spyder-hg gets me to the same situation as 
doing the above :-(

On Thursday, October 10, 2013 3:21:45 PM UTC+2, Carlos Córdoba wrote:
>
>  Hi Federico,
>
> If you installed Spyder from source, I guess you ran
>  
> python setup.py install
>  to do it. But to install it with Python 3 you need to run
>  
> python3 setup.py install
>  If this doesn't work, another thing you can do is to change the default 
> interpreter to point to Python 3. For that you have to open
>  
> /usr/local/bin/spyder
>  and change its first line to point to it.
>
> Hope this helps,
> Carlos
>
> El 09/10/13 17:21, Federico Barabas escribió:
>  
> Hi everyone! 
>
>  I use Arch Linux. I installed spyder 2.3.0dev6 from source because 
> building from AUR failed for me. It runs fine but it gets into Python 2.7 
> mode. How can I use it with Python 3? I know this version supports it.
>
>  thank you,
> Federico
>  -- 
> You received this message because you are subscribed to the Google Groups 
> "spyder" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected]<javascript:>
> .
> Visit this group at http://groups.google.com/group/spyderlib.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
> 

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to