Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix installing extension from local file on Windows #1633

Merged
merged 3 commits into from Apr 23, 2012

Conversation

takluyver
Copy link
Member

Someone on Windows will need to test that this works. Pinging @jstenar.

Closes gh-1479

@fperez
Copy link
Member

fperez commented Apr 23, 2012

Code looks clean to me, but indeed we need confirmation from @jstenar or someone else with a Windows testing setup. @jdmarch, do you guys test on Windows regularly?

Thanks for the work, @takluyver! Go ahead with the merge once someone confirms it's OK on windows.

@jdmarch
Copy link

jdmarch commented Apr 23, 2012

At quick look, this PR does not seem to make any difference on WinXP.

IPtest -v IPython.core.tests.test_magic

Produces 3 errors (test_macro, ...multi-line macro..., and test_extension) and 1 failure (..string escapes) before or after this PR. Whether the test_extension error is a side-effect of the preceding errors I do not know.

Possibly several days before I can return to this.

@fperez
Copy link
Member

fperez commented Apr 23, 2012

Thanks for the report, @jdmarch!

@takluyver
Copy link
Member Author

@jdmarch (or anyone who can test on Windows): can you stick the results of that test (i.e. tracebacks) on a pastebin somewhere? Thanks.

@jdmarch
Copy link

jdmarch commented Apr 23, 2012

@takluyver
Copy link
Member Author

Gah, stupid mistake. Thanks for testing, hopefully it's fixed now.

@jdmarch
Copy link

jdmarch commented Apr 23, 2012

Closer but not quite there:

======================================================================
ERROR: IPython.core.tests.test_magic.test_extension
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
    self.test(*self.arg)
  File "c:\Documents and Settings\JDM\ipython\IPython\core\tests\test_magic.py", line 430, in test_extension
    _ip.magic("install_ext %s" % url)
  File "c:\documents and settings\jdm\ipython\IPython\core\interactiveshell.py", line 2036, in magic
    result = fn(magic_args)
  File "c:\documents and settings\jdm\ipython\IPython\core\magic.py", line 3459, in magic_install_ext
    filename, headers = self.extension_manager.install_extension(args, opts.get('n'))
TypeError: 'NoneType' object is not iterable

@takluyver
Copy link
Member Author

Thanks, that one I should have caught on my own machine. If you could test again, that would be great.

@jdmarch
Copy link

jdmarch commented Apr 23, 2012

Yes, test_extension passes now on WinXP.

@takluyver
Copy link
Member Author

Thanks, Jonathan. I'll merge this now.

takluyver added a commit that referenced this pull request Apr 23, 2012
Fix installing extension from local file on Windows.

Closes gh-1479
@takluyver takluyver merged commit add0161 into ipython:master Apr 23, 2012
@fperez
Copy link
Member

fperez commented Apr 23, 2012

Thanks guys for the rapid back and forth! Glad to see this in.

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Fix installing extension from local file on Windows.

Closes ipythongh-1479
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test_extension failing in Windows
3 participants