Code Monkey home page Code Monkey logo

Comments (9)

Moonbase59 avatar Moonbase59 commented on May 30, 2024

Typical reason:

You’re trying to run mqtt-idjc.py on a machine that has no IDJC installed.
It must be run on the machine that runs IDJC (IDJC installs 'idjcmonitor').

from studiodisplay.

rallep71 avatar rallep71 commented on May 30, 2024

IDJC is installed on the computer, otherwise I would not have written it, the idjcmon.py also works, http://idjc.sourceforge.net/code_idjcmon.html

I have Arch, IDJC version 0.8.17, and yes, I installed the IDJC first, it's been running for quite a while.

I use python3, so I also had to change the mqtt-idjc.py.

Hostname is also clear, I created a cfg for it.

nevertheless I get the "new" message that the IDJC must run on the same machine and the IDJC must be installed first

from studiodisplay.

Moonbase59 avatar Moonbase59 commented on May 30, 2024

Apparently IDJC installs idjcmonitor only for Python2, that’s why mqtt-idjc.py also uses Python2.

EDIT: Just checked on my (Linux Mint and Ubuntu Studio) systems, and idjcmonitor.py got installed on both of them under /usr/lib/python2.7/dist-packages/. Tried copying it to the respective Python3 folder, but the code of idjcmonitor.py produces errors under Python3.

If you really require Python3, maybe open a ticket with Stephen at https://sourceforge.net/p/idjc/support-requests/?source=navbar.

from studiodisplay.

rallep71 avatar rallep71 commented on May 30, 2024

ok

from studiodisplay.

rallep71 avatar rallep71 commented on May 30, 2024

in the script
#!/usr/bin/env python
superseded by
#! /usr/bin/python2.7

I should have noticed right away; )
I've only been irritated by the following line:
import configparser # Py2: ConfigParser; Py3: configparser

ok, sometimes it's a little different when you use arch, thanks anyway, I'll get it up and running )

im script
#!/usr/bin/env python
ersetzt mit
#! /usr/bin/python2.7

hätte mir auch gleich auffallen müssen, ;)
mich hat nur folgende zeile irritiert:
import configparser # Py2: ConfigParser; Py3: configparser

ok, ist halt manchmal ein wenig anders wenn man arch benutz, trotzdem danke, werd es schon zum laufen bringen ;)

from studiodisplay.

Moonbase59 avatar Moonbase59 commented on May 30, 2024

So true, and yes, I’m sure you’ll get it running ;-)

Are you saying that your default Python is already Python3? (If you call up python, you get Python3?)

If that is actually the case, I’d be happy to change the shebangs for Python2 code to

#!/usr/bin/env python2

which I would recommend you doing, too, instead of relying on Python being in /usr/bin and a specific version.

from studiodisplay.

Moonbase59 avatar Moonbase59 commented on May 30, 2024

Thanks for the feedback, reworked all shebangs in 987104a

When calling one of the Python modules directly (as I suggest in the docs), it should now invoke the correct Python interpreter (version 2.x or 3.x).

from studiodisplay.

rallep71 avatar rallep71 commented on May 30, 2024

Arch's standard is
python -V Python 3.6.5

whereby I also have python 2 parallel at the start,

I would say the code
#!/usr/bin/env python2 in the scripts would make sense, would be a clear announcement.

from studiodisplay.

Moonbase59 avatar Moonbase59 commented on May 30, 2024

FYI: Added some info for non-Debian-like installations in docs/install-non-debian.md.

from studiodisplay.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.