[19:54:38] <agronholm> FlyingWookie: do you have multiple python installations?
[19:55:38] <agronholm> FlyingWookie: if you install pyserial in a virtualenv and then you launch a python script from outside the virtualenv, why do you expect pyserial to work then?
[20:10:55] <FlyingWookie> agronholm, no I do not have multiple python installations
[20:11:40] <FlyingWookie> I can visually see that pyserial is installed int he virtual envirnment and not the base c:\python27 install directory
[20:12:25] <FlyingWookie> one thing that I found, while searching, is to check the association on the command line with 'assoc .py'
[20:15:00] <agronholm> on the other hand, what's the point of association the virtualenv's python.exe to run all python scripts?
[20:18:46] <FlyingWookie> agronholm, true... :) I agree, but I guess that is what the installer for python does I think..
[20:19:36] <FlyingWookie> when I tried virtualenvwrapper-win to see it it associates the files correctly it did not work as well.
[20:20:05] <agronholm> how do you expect the association to work? Windows only allows a simple extension -> executable association
[20:20:38] <FlyingWookie> thank you for trying anyways agronholm .... I'm learning something new... I just did not expect to be such a pain under windows....
[20:22:03] <FlyingWookie> I do realize what that the association is in windows, it is just that there are no clear indications that when you lauch a .py file from virtualenv
[20:22:25] <FlyingWookie> it associates to the base installation c:\python27 and not your environment
[20:22:43] <nanonyme> FlyingWookie, the mapping is from system registry, not environment
[20:22:56] <FlyingWookie> since when I did launch the environment with activate and 'import serial
[20:23:12] <FlyingWookie> nanonyme, :) I have learned that now...
[20:23:15] <nanonyme> Activating a virtualenv has no significance whatsoever to your registry
[20:23:35] <agronholm> FlyingWookie: what do you mean by launching a .py file from virtualenv?
[20:23:43] <agronholm> if this is not about the command line
[20:23:46] <nanonyme> FWIW calling them as python foo.py works as expected on Windows
[20:24:44] <nanonyme> Also if it's one of those funky packages that can be executed, things like "python -mpip install foo" are a thing
[20:25:02] <FlyingWookie> agronholm, after activating the environment, typing in foo.py
[20:25:02] <nanonyme> I actually prefer that style these days on Windows
[20:26:14] <FlyingWookie> ahh, nanonyme so if I execute/launch foo.py with python foo.py it should grap the correct python path from the activated virtualenv environment
[20:26:20] <FlyingWookie> I was missing the 'python'
[20:28:15] <FlyingWookie> worked in the activated environment..
[20:28:37] <nanonyme> Yes, that would as well use PATH
[20:29:52] <FlyingWookie> :) thank you again for the help
[20:31:43] <nanonyme> Incidentally, you can do stuff like put foo with a shebang in scripts and foo.cmd as well. Then *nix will run the foo with shebang and Windows foo.cmd when you call foo. You can then make those wrappers that will call python -mfoo do something
[20:32:50] <nanonyme> This assuming that the executable foo.py is platform-independent
[20:51:16] <dstufft> py.exe on Windows is supposed to allow something like that to work too
[20:51:25] <dstufft> I don't really know how it works off the top of my head tho
[21:00:45] <linovia> Is it possible to map a "virtual" package namespace over an existing one ? For example, say I have django installed and want another package to be reached through django.contrib.mypackage ?
[21:04:16] <linovia> starting working on splitting raven contrib stuff into smaller packages so I'll have enough control to declare the namespace so it doesn't makes to much changes
[21:43:45] <linovia> I now realize that years ago I probably misunderstood the sentence: "it means that the package has no meaningful contents in its __init__.py, and that it is merely a container for modules and subpackages"
[21:44:32] <linovia> it means that __init__.py has to be dedicated to the "virtual" packaging but you can still have python files around right ?
[21:49:56] <dstufft> linovia: yes, foo/__init__.py cannot have meaningful content, but foo/wahtever.py can