Forum Archive

graphillion module

Katsu

I installed graphillion module with pip install command with Stash, then, site-packages-3 includes “graphillion”. When I run the script ‘ from graphillion import GraphSet’, NotModulezFoundError is reported. “setset.py Line 25” is “import _graphillion”, that is the source which pythonista3 is telling that No module named ‘_graphillion’. This underscore is written in the graphillion source code originally.What is the root cause?

Note: pip list command replied that there is graphillion module, but pip show command reports Not found.


"""Module for a set of sets.
"""

from builtins import range
from future.utils import viewitems
import _graphillion


class setset(_graphillion.setset):
    """Represents and manipulates a set of sets.

cvp

@Katsu graphillion is not pure Python code, as needed by Pythonista

Katsu

Thank you very much. I understand that graphillion is not pure python, however, Jupyter or some other development environment can use it. What is the limitation of pythonisata3 to use non-pure python code?

ccc

Apple security policies REQUIRE that all compiled code in an iOS App is digitally signed as a single unit.

Katsu

Thank you very much. Sounds like pythonista3 is required to meet Apple security policy, correct? If correct, would you please tell me why the other modules can be used by pythonista3 but at least graphillion module cannot be used? Graphillion module is in the PyPI. I appreciate any knowledge!!

cvp

@Katsu said

why the other modules can be used by pythonista3

Other modules work because they are already integrated (linked) in Pythonista.

ccc

A theoretical alternative would be to compile the source of https://github.com/ColdGrub1384/Pyto and the source of Graphillion and then digitally sign that entire bundle. Unfortunately, Pythonista is not open source so that is not a viable option with Pythonista.

Katsu

Thank you very much. I tried Pyto, however, ModuleNotFoundError, even after graphillion is installed. I will need to know how to have them digitally singed, and how to “link” graphillion to pythonista3? Would you please help?

cvp

@Katsu said

how to “link” graphillion to pythonista3

No way. Only the developer could do it. Forget to use graphillion in Pythonista.

About Pyto, I'll let other guys answer.