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

Super basic support for Windows Python #1

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
4 participants
@bendoerr

bendoerr commented Aug 21, 2011

Prefix. I have never written a line of Ruby before so please fix/improve where needed.

Super basic support, this doesn't clean up the errors from the Windows Python not liking the order of quote when being called. It wants " then '

This does allow windows users to get by.

I'm not very familiar with Bitbucket or Hg so I hope you don't mind my use of GitHub and Git.

@bendoerr

This comment has been minimized.

Show comment
Hide comment

bendoerr commented Aug 21, 2011

@halostatue

This comment has been minimized.

Show comment
Hide comment
@halostatue

halostatue Aug 21, 2011

Owner

I will look at applying this as soon as I can figure out what happened to hg-git when I upgraded to Lion…

Owner

halostatue commented Aug 21, 2011

I will look at applying this as soon as I can figure out what happened to hg-git when I upgraded to Lion…

@bendoerr

This comment has been minimized.

Show comment
Hide comment
@bendoerr

bendoerr Aug 21, 2011

I am currently Out of the Office. I will return on Monday August 22nd. For technical questions concerning AKR please contact Mike Lee mike_lee@sra.com

bendoerr commented Aug 21, 2011

I am currently Out of the Office. I will return on Monday August 22nd. For technical questions concerning AKR please contact Mike Lee mike_lee@sra.com

@mattn

This comment has been minimized.

Show comment
Hide comment
@mattn

mattn Oct 21, 2011

I tested it on windows xp 32bit.
One problem, I installed python27 from MSI installer. It seems that the installer copy python27.dll to c:\windows\system32\python27.dll. I copied it to c:\python27\libs\python27.dll and get success to work it.

otherwise, It's working well.

thanks.

mattn commented Oct 21, 2011

I tested it on windows xp 32bit.
One problem, I installed python27 from MSI installer. It seems that the installer copy python27.dll to c:\windows\system32\python27.dll. I copied it to c:\python27\libs\python27.dll and get success to work it.

otherwise, It's working well.

thanks.

@bendoerr

This comment has been minimized.

Show comment
Hide comment
@bendoerr

bendoerr Oct 21, 2011

Awesome I'm glad I was able to contribute.

On Fri, Oct 21, 2011 at 7:53 AM, mattn <
reply@reply.github.com>wrote:

I tested it on windows xp 32bit.
One problem, I installed python27 from MSI installer. It seems that the
installer copy python27.dll to c:\windows\system32\python27.dll. I copied
it to c:\python27\libs\python27.dll and get success to work it.

otherwise, It's working well.

thanks.

Reply to this email directly or view it on GitHub:
#1 (comment)

bendoerr commented Oct 21, 2011

Awesome I'm glad I was able to contribute.

On Fri, Oct 21, 2011 at 7:53 AM, mattn <
reply@reply.github.com>wrote:

I tested it on windows xp 32bit.
One problem, I installed python27 from MSI installer. It seems that the
installer copy python27.dll to c:\windows\system32\python27.dll. I copied
it to c:\python27\libs\python27.dll and get success to work it.

otherwise, It's working well.

thanks.

Reply to this email directly or view it on GitHub:
#1 (comment)

@halostatue

This comment has been minimized.

Show comment
Hide comment
@halostatue

halostatue Oct 21, 2011

Owner

Hi, guys. I'm getting ready to push a (slightly) modified version of something that Zach pushed to his bitbucket version that should do what you're after with this in a more consistent/safe manner.

Owner

halostatue commented Oct 21, 2011

Hi, guys. I'm getting ready to push a (slightly) modified version of something that Zach pushed to his bitbucket version that should do what you're after with this in a more consistent/safe manner.

@halostatue

This comment has been minimized.

Show comment
Hide comment
@halostatue

halostatue Oct 21, 2011

Owner

Closing this request as I've pushed the relevant fixes to GitHub.

Owner

halostatue commented Oct 21, 2011

Closing this request as I've pushed the relevant fixes to GitHub.

@halostatue halostatue closed this Oct 21, 2011

@mattn

This comment has been minimized.

Show comment
Hide comment
@mattn

mattn Oct 22, 2011

Thanks, I'll try it in next week.

mattn commented Oct 22, 2011

Thanks, I'll try it in next week.

@heygrady

This comment has been minimized.

Show comment
Hide comment
@heygrady

heygrady Dec 21, 2011

http://code.activestate.com/lists/python-win32/10743/

Python is installing itself to the wrong place for some reason. This probably needs to be told to the python maintainers.

I copied the DLL to the SysWOW64 directory and now I get a load error from FFI:

c:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/lib/ffi/library.rb:121:in block in ffi_lib': Could not open library 'C:/Windows/system32/python27.dll': ∞ (LoadError) from c:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/lib/ffi/library.rb:88:inmap'
from c:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/lib/ffi/library.rb:88:in ffi_lib' from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rubypython-0.5.3/lib/rubypython/python.rb:29:inmodule:Python'
from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rubypython-0.5.3/lib/rubypython/python.rb:21:in <top (required)>' from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rubypython-0.5.3/lib/rubypython.rb:261:inload'
from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rubypython-0.5.3/lib/rubypython.rb:261:in reload_library' from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rubypython-0.5.3/lib/rubypython.rb:104:instart'
from c:/Ruby193/lib/ruby/gems/1.9.1/gems/pygments.rb-0.2.4/lib/pygments/ffi.rb:8:in start' from c:/Ruby193/lib/ruby/gems/1.9.1/gems/pygments.rb-0.2.4/lib/pygments/ffi.rb:82:inhighlight'
from test.rb:3:in `

'

heygrady commented Dec 21, 2011

http://code.activestate.com/lists/python-win32/10743/

Python is installing itself to the wrong place for some reason. This probably needs to be told to the python maintainers.

I copied the DLL to the SysWOW64 directory and now I get a load error from FFI:

c:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/lib/ffi/library.rb:121:in block in ffi_lib': Could not open library 'C:/Windows/system32/python27.dll': ∞ (LoadError) from c:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/lib/ffi/library.rb:88:inmap'
from c:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/lib/ffi/library.rb:88:in ffi_lib' from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rubypython-0.5.3/lib/rubypython/python.rb:29:inmodule:Python'
from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rubypython-0.5.3/lib/rubypython/python.rb:21:in <top (required)>' from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rubypython-0.5.3/lib/rubypython.rb:261:inload'
from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rubypython-0.5.3/lib/rubypython.rb:261:in reload_library' from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rubypython-0.5.3/lib/rubypython.rb:104:instart'
from c:/Ruby193/lib/ruby/gems/1.9.1/gems/pygments.rb-0.2.4/lib/pygments/ffi.rb:8:in start' from c:/Ruby193/lib/ruby/gems/1.9.1/gems/pygments.rb-0.2.4/lib/pygments/ffi.rb:82:inhighlight'
from test.rb:3:in `

'

@halostatue

This comment has been minimized.

Show comment
Hide comment
@halostatue

halostatue Jan 6, 2012

Owner

@heygrady: Can you please open this as an issue on RubyPython's bitbucket (link in the description of the project)? I won't be able to fix it for another couple of weeks (I have a vacation starting on Sunday and am super busy until then), but the primary bug tracking is on bitbucket and I don't want to have bug tracking in two places.

Thanks

Owner

halostatue commented Jan 6, 2012

@heygrady: Can you please open this as an issue on RubyPython's bitbucket (link in the description of the project)? I won't be able to fix it for another couple of weeks (I have a vacation starting on Sunday and am super busy until then), but the primary bug tracking is on bitbucket and I don't want to have bug tracking in two places.

Thanks

@halostatue

This comment has been minimized.

Show comment
Hide comment
@halostatue

halostatue Jun 21, 2017

Owner

Assuming resolved with RubyPython 0.5+.

Owner

halostatue commented Jun 21, 2017

Assuming resolved with RubyPython 0.5+.

@halostatue

This comment has been minimized.

Show comment
Hide comment
@halostatue

halostatue Jun 21, 2017

Owner

Can you try this with the latest version in hg? This should be resolved with the upcoming release of RubyPython, but it'd be nice to get some verification.

Owner

halostatue commented Jun 21, 2017

Can you try this with the latest version in hg? This should be resolved with the upcoming release of RubyPython, but it'd be nice to get some verification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment