spyder-2.1.0beta2

24 views
Skip to first unread message

Peter

unread,
Sep 28, 2011, 12:59:05 PM9/28/11
to spyder
Hi there,

I'm sorry to hit you with this so soon after release of spyder-2.1.0beta2; but I am trying to keep abreast of the new releases,
even betas. I have just installed it on my box, and on trying to run it from the command line, 'spyder -v' I get the following
error.

/home/peter> spyder -d
Start of MainWindow constructor
Initializing...
End of MainWindow constructor
*** Start of MainWindow setup ***
Loading object inspector...
Loading outline explorer...
Loading editor...
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/spyderlib/spyder.py", line 1869, in main
mainwindow = run_spyder(app, options)
File "/usr/local/lib/python2.7/site-packages/spyderlib/spyder.py", line 1780, in run_spyder
main.setup()
File "/usr/local/lib/python2.7/site-packages/spyderlib/spyder.py", line 633, in setup
self.editor = Editor(self)
File "/usr/local/lib/python2.7/site-packages/spyderlib/plugins/editor.py", line 401, in __init__
self.load(filenames)
File "/usr/local/lib/python2.7/site-packages/spyderlib/plugins/editor.py", line 1472, in load
current_editor = current.load(filename, set_current=True)
File "/usr/local/lib/python2.7/site-packages/spyderlib/widgets/editor.py", line 1740, in load
finfo = self.create_new_editor(filename, enc, text, set_current)
File "/usr/local/lib/python2.7/site-packages/spyderlib/widgets/editor.py", line 1628, in create_new_editor
finfo = FileInfo(fname, enc, editor, new, self.threadmanager)
File "/usr/local/lib/python2.7/site-packages/spyderlib/widgets/editor.py", line 259, in __init__
self.rope_project = codeeditor.get_rope_project()
File "/usr/local/lib/python2.7/site-packages/spyderlib/widgets/sourcecode/codeeditor.py", line 213, in get_rope_project
ROPE_PROJECT = RopeProject()
File "/usr/local/lib/python2.7/site-packages/spyderlib/widgets/sourcecode/codeeditor.py", line 91, in __init__
self.create_rope_project(root_path=get_conf_path())
File "/usr/local/lib/python2.7/site-packages/spyderlib/widgets/sourcecode/codeeditor.py", line 98, in create_rope_project
**ROPE_PREFS)
File "/usr/lib/python2.7/site-packages/rope/base/project.py", line 140, in __init__
super(Project, self).__init__(fscommands)
File "/usr/lib/python2.7/site-packages/rope/base/project.py", line 130, in __init__
projectroot = _realpath(projectroot).rstrip('/\\')
File "/usr/lib/python2.7/site-packages/rope/base/project.py", line 428, in _realpath
return os.path.realpath(os.path.abspath(os.path.expanduser(path)))
File "/usr/lib64/python2.7/posixpath.py", line 248, in expanduser
if not path.startswith('~'):
AttributeError: 'FileSystemCommands' object has no attribute 'startswith'


Is there anything I can do to try to resolve this, upgrade sw ?

My system is a 64-bit openSuSE 11.4, with python V2.7

Cheers

Peter

Carlos Córdoba

unread,
Sep 28, 2011, 11:53:15 PM9/28/11
to spyd...@googlegroups.com
Thank you Peter. It's really a nasty bug and it seems to happen only on
Linux. We are tracking the issue at:

http://code.google.com/p/spyderlib/issues/detail?id=772

Cheers,
Carlos

El 28/09/11 11:59, Peter escribió:

Pierre Raybaut

unread,
Sep 30, 2011, 3:19:22 AM9/30/11
to spyd...@googlegroups.com
This

> --
> You received this message because you are subscribed to the Google Groups "spyder" group.
> To post to this group, send email to spyd...@googlegroups.com.
> To unsubscribe from this group, send email to spyderlib+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.
>

Pierre Raybaut

unread,
Sep 30, 2011, 3:20:49 AM9/30/11
to spyd...@googlegroups.com
This is fixed on my local repository. I'll push changes ASAP.

(sorry for my previous very short message sent by error from my phone...)

-Pierre

anatoly techtonik

unread,
Sep 30, 2011, 11:45:01 AM9/30/11
to spyd...@googlegroups.com
Should the source code for beta2 be re-released?

Pierre Raybaut

unread,
Sep 30, 2011, 12:52:49 PM9/30/11
to spyd...@googlegroups.com
Absolutely, I think this bug is quite critical since it breaks the rope-based features. 

I'll release a beta3 this week-end. 

-Pierre

Le 30 sept. 2011 à 17:45, anatoly techtonik <tech...@gmail.com> a écrit :

Should the source code for beta2 be re-released?

--
You received this message because you are subscribed to the Google Groups "spyder" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spyderlib/-/8rAxbO4VIlAJ.

Carlos Córdoba

unread,
Sep 30, 2011, 12:58:06 PM9/30/11
to spyd...@googlegroups.com
Thanks, but also take into account that now (I mean after your recent changes to make Spyder work with py2exe) the Object Inspector can't find its css files. This have to be fixed too before beta3.

Cheers,
Carlos

El 30/09/11 11:52, Pierre Raybaut escribió:

anatoly techtonik

unread,
Sep 30, 2011, 5:31:09 PM9/30/11
to spyd...@googlegroups.com
And speaking about external libraries, PyFlakes 0.5.0 is officially
released a few weeks ago http://pypi.python.org/pypi/pyflakes
--
anatoly t.

2011/9/30 Carlos Córdoba <ccord...@gmail.com>:

Pierre Raybaut

unread,
Oct 1, 2011, 3:42:48 AM10/1/11
to spyd...@googlegroups.com
Thanks for the info, I was not aware of this release. I'll take a look
at it, hoping that it's now based on ast.

-Pierre

anatoly techtonik

unread,
Oct 1, 2011, 6:18:13 AM10/1/11
to spyd...@googlegroups.com
Yes, it is.

"Highlights of this release include the use of the built-in AST instead
of the compiler module, and support for various new syntax constructs
in Python 2.7."

http://twistedmatrix.com/pipermail/twisted-python/2011-September/024469.html
--
anatoly t.

Pierre Raybaut

unread,
Oct 1, 2011, 7:10:04 AM10/1/11
to spyd...@googlegroups.com
Thanks for pointing that out. Just fixed!

-Pierre

2011/9/30 Carlos Córdoba <ccord...@gmail.com>:

Pierre Raybaut

unread,
Oct 1, 2011, 7:19:19 AM10/1/11
to spyd...@googlegroups.com
Ok, I've just tested it and that's perfect: pyflakes 0.5.0 official
release is strictly the same as the development version that I had
integrated in Spyder's code (in package spyderlib.utils.external).

It means that:
1. I'm removing spyderlib.utils.external.pyflakes
2. I'm re-adding the dependency over pyflakes but now v0.5.0 will be
mandatory (this won't affect much Windows platforms as I've always
distributed pyflakes together with Spyder in the Windows installer). I
just saw that -for example- pyflakes Debian package was already moving
to v0.5.0, so that should not be a problem on other platforms I guess.

That's a good thing because I don't like including external libraries
within Spyder's code (package maintainers do not like it either and
that is perfecly understandable...).

-Pierre

2011/9/30 anatoly techtonik <tech...@gmail.com>:

anatoly techtonik

unread,
Oct 1, 2011, 7:28:11 AM10/1/11
to spyd...@googlegroups.com
Looks like I need to update the bootstrap script. =)
I don't want to require installation of any system packages for this
stuff. Where bootstrap script should download Pyflakes, to make it
available on Spyder's PYTHONPATH?
--
anatoly t.

Pierre Raybaut

unread,
Oct 1, 2011, 8:16:11 AM10/1/11
to spyd...@googlegroups.com
That is done:
http://code.google.com/p/spyderlib/source/detail?r=104724af845aecfdfee0db4b355ba01840e9459b

Regarding the bootstrap script, I don't think that's necessary as
pyflakes v0.5.0 availability is handled/checked by Spyder.
And pyflakes 0.5.0 is included at the root of Spyder's source package
(like before it was integrated, and like the 'rope' package). So if
this directory is in PYTHONPATH, pyflakes 0.5.0 will be.

Cheers,
Pierre

2011/10/1 anatoly techtonik <tech...@gmail.com>:

Pierre Raybaut

unread,
Oct 1, 2011, 8:55:12 AM10/1/11
to spyd...@googlegroups.com
I've just released beta3.
Only the source package for now.

Windows installers:
I'll deal with the Windows installers on Monday. In the meantime, I've
hidden beta2 and made visible beta1 release.

-Pierre

2011/10/1 Pierre Raybaut <pierre....@gmail.com>:

Peter

unread,
Oct 3, 2011, 9:39:55 AM10/3/11
to spyder
Guys,

I have just downloaded and installed beta3. I do not see any errors, many thanks. I will let you know if anything pops up.

Peter

Reply all
Reply to author
Forward
0 new messages