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

IntelliSense for .pyd requires matching Python architecture #50

Closed
mloskot opened this issue Apr 26, 2015 · 4 comments
Closed

IntelliSense for .pyd requires matching Python architecture #50

mloskot opened this issue Apr 26, 2015 · 4 comments

Comments

@mloskot
Copy link

mloskot commented Apr 26, 2015

I don't think the following issue is documented anywhere, but for some it may not be obvious.

In order to make Visual Studio PyTools IntelliSense work for a .pyd extension, it is required to select, in Project > Properties > General > Interpreter, Python interpreter matching target architecture of the .pyd binary.

Especially, if is relevant if both 32-bit and 64-bit Python installations are hosted side-by-side.

For instance, given side-by-side installation of the two Python interpreters:
C:\Python32 which is 64-bit version
C:\Python32x86-32 which is 32-bit version
if a .pyd is installed in C:\Python32 only, then one may need to choose "Python 64-bit 3.2" as the project interpreter.

Otherwise,

  1. IntelliSense won't be available.
  2. An attempt to manually add 64-bit .pyd to References of a project that is configured to target Python 32-bit will fail as well.
@zooba zooba added the Docs label Apr 27, 2015
@zooba
Copy link
Member

zooba commented Apr 27, 2015

It's not so much an issue as by-design behaviour (you can't import .pyd files with incompatible interpreters, so we don't show you the import when you've chosen an incompatible interpreter), but there's no harm in clarifying it on our wiki.

@mloskot
Copy link
Author

mloskot commented Apr 27, 2015

On 27 Apr 2015 20:30, "Steve Dower" notifications@github.com wrote:

you can't import .pyd files with incompatible interpreters,
so we don't show you the import when you've chosen
an incompatible interpreter

Hmm what do you're mean by "we don't show you the import"?

The by design is clear, it's just it may not be as obvious as it seems.

@huguesv
Copy link
Contributor

huguesv commented Oct 23, 2018

We're closing old issues with no recent activity. If this is still important, please open a new issue.

@mloskot
Copy link
Author

mloskot commented Oct 23, 2018

That's fine

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

No branches or pull requests

3 participants