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

64bit python evironment in visual studio does not recognize junit-xml #44

Open
mudasira opened this issue Jun 7, 2017 · 2 comments
Open

Comments

@mudasira
Copy link

mudasira commented Jun 7, 2017

Hi
I develop python within visual studio and I make use of the 64bit python interpreter because it crashes less in visual studio. How can I make junit-xml available in 64bit python environment.

Thanks

Mudasir

@sysradium
Copy link
Collaborator

sysradium commented Jun 7, 2017

Hi,

How is this related? Why is it crashing only because you use 64 bit cpu?

@mudasira
Copy link
Author

mudasira commented Jun 8, 2017

Hi, let me elaborate.
I managed to resolve the issue but I will give some background and the solution.
My development IDE is Visual Studio. I have python 2.7.13 32bit installed on my C Drive. I have visual studio plugin for Python Language Integration. I am not sure of this but I think this plugin also installs the 64bit version of Python. Or I might have installed the 64bit version of python27 myself.
When I create a python project within visual studio, it detects both versions of python and organises them in these things called Environment. So if I have IronPython installed then that would also be picked up as an environment. In visual studio I can switch the different Environments and run the same python source files.

I installed JunitXml using
pip install junit-xml in commandline

But when I switched to Python64 environment then on import JunitXml the interpreter returned an error as an unknown package.

Here is the fix:
To have python 64bit in visual studio recognise junit-xml, you need to install it within visual studio. In devStudio, right click on the 64bit python environment and select Install python package.-> easy install and type in junit.xml and run as administrator

Please note in other packages I have pipped in commandline have installed the package for both 32bit and 64bit python.

Any how my issue has been resolved.

The only reason for me using 64bit python is that it crashes less in Visual Studio on simple functions like print, etc.

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

2 participants