Code Monkey home page Code Monkey logo

Comments (21)

nitramr avatar nitramr commented on September 21, 2024

I have to find a way to add python libs to the appimage.

from scribus-indigo.

luzpaz avatar luzpaz commented on September 21, 2024

@probonop please advise

from scribus-indigo.

luzpaz avatar luzpaz commented on September 21, 2024

err i meant @probonopd

from scribus-indigo.

gregp-scribus avatar gregp-scribus commented on September 21, 2024

is there anything I can add to the command?
why can't it use my python libs?

from scribus-indigo.

probonopd avatar probonopd commented on September 21, 2024

Which version of Python is installed on your system?

from scribus-indigo.

gregp-scribus avatar gregp-scribus commented on September 21, 2024

python-2.7.12

from scribus-indigo.

probonopd avatar probonopd commented on September 21, 2024

That is strange. I assume that Python is working outside of the AppImage?

from scribus-indigo.

gregp-scribus avatar gregp-scribus commented on September 21, 2024

Of course. Maybe it has something to do with setting system variables?

from scribus-indigo.

probonopd avatar probonopd commented on September 21, 2024

Possibly. Although we are only prepending to $PYTHONPATH which normally should not hurt if I am not wrong.

from scribus-indigo.

gregp-scribus avatar gregp-scribus commented on September 21, 2024

Maybe I'm getting somewhere.
In the konsole, I typed "export PYTHONHOME=/usr/lib/python2.7" then ran the appimage again.

Now the only warning before crash is "No module named site"
??

from scribus-indigo.

gregp-scribus avatar gregp-scribus commented on September 21, 2024

Can't seem to get around this No module named site.
Ideas from googling are not helping.
I can find a "site.py" in /usr/lib64/python2.7/, but not in /usr/lib/python2.7/.
Perhaps that's the reason, but seems insurmountable.

from scribus-indigo.

gregp-scribus avatar gregp-scribus commented on September 21, 2024

TA-DAAAAA!
Here is what I needed to do in command line:
export PYTHONPATH=/usr/lib64/python2.7

from scribus-indigo.

probonopd avatar probonopd commented on September 21, 2024

Ah, interesting! Is PYTHONPATH set to something by default in your distribution?

from scribus-indigo.

gregp-scribus avatar gregp-scribus commented on September 21, 2024

Must be set to something wrong, but it didn't seem to be set to anything.
When I entered $PYTHONPATH in the commandline, got nothing.
As I check this out, it seems that PYTHONPATH is where the system looks for extra modules. It looks like, at least in fedora 24, /usr/lib/python2.7 has a different structure from /usr/lib64/python2.7. In the former, /usr/lib/python2.7 has no modules, only the directory site-packages, in the latter, there a lot of modules in /usr/lib64/python2.7 (is the appimage 32-bit? Maybe that's the issue.)
BTW, I tried creating a symbolic link to site.py, but then it complained it couldn't find the module os)...

So now I've edited my .bashrc file to make it stick.

from scribus-indigo.

probonopd avatar probonopd commented on September 21, 2024

Would still be nice to find a solution that solves this inside the AppImage. One solution would be to bundle Python and its standard library inside the AppImage, thus becoming entirely independent from the system Python. This type of issue comes from the fact that every distribution insists on naming stuff slightly differently and putting stuff into slightly different places. One reason more why I like upstream packaging, where I can consume software exactly in the way the original authors intended.

from scribus-indigo.

gregp-scribus avatar gregp-scribus commented on September 21, 2024

A side effect seems to be that if I run this appimage, then my "regular" Scribus builds can't find python.
I think I'll just stay with the building my own method.

from scribus-indigo.

gregp-scribus avatar gregp-scribus commented on September 21, 2024

using the latest appimage from Nov 16, everything seems to work Ok now. There was a problem with icons not being found, and this is fixed now too.
The Scribus Light theme doesn't work for me, since the icons are almost impossible to see against the background. Dark and Darker work Ok.

from scribus-indigo.

nitramr avatar nitramr commented on September 21, 2024

Did you switch the icon set to dark as you use the light theme? You can set themes and icons independent. Default is dark theme and light icons.

from scribus-indigo.

luzpaz avatar luzpaz commented on September 21, 2024

can we close this issue guys ?

from scribus-indigo.

nitramr avatar nitramr commented on September 21, 2024

Yes, we can.

from scribus-indigo.

corebots avatar corebots commented on September 21, 2024

hello, i just got the same error on Fedora 26, the above mentioned command helped and solved it, thanks :)

from scribus-indigo.

Related Issues (20)

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.