Git Product home page Git Product logo

Comments (26)

cfernandesINEGI avatar cfernandesINEGI commented on August 25, 2024 1

Yes, the file is on my system ...

from cae.

imirzov avatar imirzov commented on August 25, 2024

Hi,
Are you using remote desktop connection? Python Xlib doesn't support it. In this case forget about this program.

from cae.

cfernandesINEGI avatar cfernandesINEGI commented on August 25, 2024

Hi,

no I am using native Ubuntu 18.04 LTS.

Thank you

from cae.

imirzov avatar imirzov commented on August 25, 2024

Please, check if Python Xlib is installed on your system with command:

pip install xlib

from cae.

cfernandesINEGI avatar cfernandesINEGI commented on August 25, 2024

Yes,

I had installed already: Successfully installed six-1.15.0 xlib-0.21

from cae.

imirzov avatar imirzov commented on August 25, 2024

Ok, then run command:
echo $DISPLAY
It should return something like ":0.0"

from cae.

cfernandesINEGI avatar cfernandesINEGI commented on August 25, 2024

Yes,

it returns :0.0

from cae.

imirzov avatar imirzov commented on August 25, 2024

Well, then I do not know. Sorry.
Try googling "Can't connect to display :0.0 No protocol specified"

from cae.

cfernandesINEGI avatar cfernandesINEGI commented on August 25, 2024

Thank you for your help. If I find a solution, I put here.

from cae.

cfernandesINEGI avatar cfernandesINEGI commented on August 25, 2024

Another small issue, that I found was:

  • when I run the ./cae.sh it gives the following message
    line 7: ../Downloads/cae-master/src/cae: No such file or directory

So I changed the src/cae in line 7 to cae.py, then it passes but gives the xlib problem

from cae.

imirzov avatar imirzov commented on August 25, 2024

Please, report if you'll manage to fix your system's configuration.
I understand the importance of user friendliness of the software. So, the program should be able to point to user where the problem is. But now we have what we have.

from cae.

cfernandesINEGI avatar cfernandesINEGI commented on August 25, 2024

I fixed the problem...

  1. change cae.sh in line 7 and 11 to exec "$DIR/src/cae.py"
  2. give permission to all files on the package to "allow this file to run as a program"
  3. on terminal "xhost +"
  4. run "./cae.sh"

It works perfectly, thank you

from cae.

imirzov avatar imirzov commented on August 25, 2024

No, do not change cae.sh! It shouldn't point to source file. It points to binary executable!
If you're trying to run program from sources - run command "python3 cae.py" from "src" folder.

from cae.

cfernandesINEGI avatar cfernandesINEGI commented on August 25, 2024

If you not change it, gives:

line 11: /home/cfernandes/Downloads/cae-master/src/cae -inp model.inp: No such file or directory

from cae.

imirzov avatar imirzov commented on August 25, 2024

So, that's the real issue!
Are you using sources or binaries? I'd recommend to use binaries. Download here:
https://github.com/calculix/cae/releases

from cae.

imirzov avatar imirzov commented on August 25, 2024

For everything to be clear I've updated "How to use" section in the README:
https://github.com/calculix/cae#how-to-use

from cae.

cfernandesINEGI avatar cfernandesINEGI commented on August 25, 2024

Thank you for your time, and sorry for for poor understanding of the program usage! Using the binaries the error is different: Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf

from cae.

imirzov avatar imirzov commented on August 25, 2024

Looks like this is system problem, not CAE's.
The file must be present on system.
https://en.wikipedia.org/wiki/Fontconfig

from cae.

imirzov avatar imirzov commented on August 25, 2024

The only thing in CAE related to font is file:

https://github.com/calculix/cae/blob/master/config/Window.xml
font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;

Not sure this could be the reason of the problem.

from cae.

imirzov avatar imirzov commented on August 25, 2024

Please, could you attach file ./examples/default.log
It can contain some useful information.

from cae.

cfernandesINEGI avatar cfernandesINEGI commented on August 25, 2024

the content of default-log:

ERROR: ERROR! Can't get CalculiX GraphiX window.
ERROR: ERROR! Can't get CalculiX GraphiX window ID.

from cae.

imirzov avatar imirzov commented on August 25, 2024

Aha! That's what I'm working on right now. Wait for the next release. It'll be very soon.
Or you can checkout latest source code and use it instead of binaries - most of this problem is already fixed.
https://github.com/calculix/cae/archive/master.zip

from cae.

cfernandesINEGI avatar cfernandesINEGI commented on August 25, 2024

Thank you, I will wait for the next release.
Thank you for your work!

from cae.

imirzov avatar imirzov commented on August 25, 2024

CalculiX CAE v0.7
https://github.com/calculix/cae/releases/tag/v0.7

from cae.

cfernandesINEGI avatar cfernandesINEGI commented on August 25, 2024

Dear imirzov,

unfortunately the new release keep the same behaviour on my machine. So, I assume that the problem is on my side. Thank you for all your work.

Best regards,
Carlos Fernandes

from cae.

imirzov avatar imirzov commented on August 25, 2024

Dear Carlos,

Please, could you attach your ./examples/default.log from the new release?

from cae.

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.