LIRC Python client bindings - python

I am needing to use the LIRC Python client bindings for a project. The LIRC website has good documentation over them, but I have no idea how to actually get them besides copying and pasting the python code. It never says anywhere on the site that I have seen where to actually get them.
Where/how do I get these bindings?
http://www.lirc.org/html/lirc_client.html
http://www.lirc.org/api-docs/html/group__python__bindings.html

I think you need to install python-lirc or python3-lirc available on PyPi.
This is a Python binding to LIRC.

You could install the latest version available on the upstream site: http://sf.net/p/lirc. This is the version actually described in the docs. The pypi described in previous reply is another beast.

Related

Can I pull python2 packages after support for python2 ends

I have a project written in python2. Suppose if I want to deploy my project after the end of life of python2 support, am I able to pull specific versions of specific packages?
For example, I am using boto3==1.4.7 version. So, am I able to pull the same version of the package after python2 support ends?
That should be possible, but it is better to port your Project to Python 3 and use the newest versions of the packages.
You may also consider storing these packages on some local server in case the support goes down. For example, boto3==1.4.7 is available as a tar.gz.

Is it possible to embed Jedi in an application on a system where Python is not installed?

I'm working on an (Windows and Mac) application that uses Python as an embedded scripting language.
The application includes an internal text editor, implemented using Scintilla, and I'm using Jedi for autocompletion, which generally works great.
However, when attempting autocompletion on a computer that does not have a separate installation of Python, Jedi raises an error:
jedi.api.environment.InvalidPythonEnvironment:
Could not get version information for 'python':
FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
Digging into the code, I can see that the underlying code that is throwing the FileNotFoundError is when Jedi attempts to run python using subprocess.Popen. Python is not installed on the computer, so this fails.
I can also reproduce the same issue on a computer that does have Python installed by editing my Path environment variable not to include the location of python.exe.
Ideally, we don't want users of our application to have to install Python just to get autocompletion working.
My questions:
Is it possible to get Jedi not to spawn subprocesses, and instead run its code inside the same instance of Python within which it itself is running? I couldn't find anything about this in the documentation or the source code that deals with Environments, and extrapolating from the discussion here I suspect the answer might be no.
Is it possible somehow to get Jedi to use the same python37.dll that our application is using for its functionality, instead of looking for a .exe file that does not exist?
Is there any way we could make some kind of minimal Python installation within our existing app installation that uses the same DLLs/Python Lib etc? How could I go about doing this?
Is there any other way to get Jedi autocompletion working in our app without requiring the user to install Python, or including a full Python installer as part of our build process?
Is it possible to get Jedi not to spawn subprocesses, and instead run its code inside the same instance of Python within which it itself is running? I couldn't find anything about this in the documentation or the source code that deals with Environments, and extrapolating from the discussion here I suspect the answer might be no.
This is definitely possible. All the tools are there. There are discussions ongoing here: https://github.com/davidhalter/jedi-vim/issues/870.
IMO a patch to Jedi is needed that uses an jedi.api.environment.InterpreterEnvironment in some cases like yours. It's definitely possible, it's just buggy at the moment.

Kivy installation python 2.7 windows 10

I want to develop python 2.7 app using Kivy library on Windows 10, but I do not know how to install it. I have tried to install Cython,Pygame and then Kivy.But it did not work. I have reinstalled all these things like Cython,Kivy,Python... And now I want to install it from the beginning. How can I install Kivy?
Your answers will be very appreciated.
Kivy changed a little bit since 1.8.0, use the new instructions if you have pdf docs, or some kind of book. So... the default provider is sdl2 now(pygame isn't necessary). Also, there's no need for compiling since there are wheels, so even cython and mingw aren't necessary(if you don't code with them). The only thing you need is python installed correctly.
At first of all you should visit main page and especially documentation where is described quite well what is needed and what you should install, yet still someone comes with missing dlls or something, therefore read it carefully. Or grab a tool.
But really, use the docs, most of the stuff is documented either in docs or here(examples, problems,...). No one's going to read it for you. :)

Django, Trying to install older package, "cannot import name email_re"

I'm trying to install PennyBlack:
https://github.com/allink/pennyblack
I've done some reading, and it appears that "email_re" was removed from the latest version of Django.
I am VERY new. I was wondering if anyone could tell me a workaround so that I can get this older package installed?
The most correct way to behave in this situation would be not to use the module that is not maintained and doesn't support several latest django versions. Instead, find an alternative, see Django Packages.
Another possible solution would be to fork the project on github and make it work with the version of django you are currently using.
Also see the relevant compatibility issue.

create debug version of python package python-msgpack for Ubuntu

I need a version of messagepack that i can use with python2.7-dbg. How would I go about creating one?
for reference I've asked via an issue on github https://github.com/msgpack/msgpack-python and here's a little context python-dbg can't find Py_InitModule4 when debugging
https://wiki.ubuntu.com/PackagingGuide/Complete
https://wiki.ubuntu.com/PyDbgBuilds
http://svn.python.org/projects/python/trunk/Misc/SpecialBuilds.txt
these references were really helpful. Also there's always the option of talking to the devs online via launchpad and mailing lists
thanks for the help

Categories

Resources