Error opening the inspector on Ubuntu 15.10 using yade 1.20.0

Asked by Jonathan Pergoli

Hi!

I was trying to open the inspector and yade gives me back the same error as in the question #274036 with a difference. The file to be modified is __init__.pyc instead of __init.py, and I don't know how to open a file.pyc so I can't replace grid.SetMargin(0) with grid.setContentsMargin(0,0,0,0).

Thank you.

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jérôme Duriez (jduriez) said :
#1

Did you try to open this __init__.pyc with your favorite text editor ? (something like gedit, Kate, nano, emacs, and so on... not Microsoft Word.. ;-) )

Revision history for this message
Jonathan Pergoli (j812p89) said :
#2

Hi Jerome!

I used gedit but it is not capable of reading the content. I didn't consider Microsoft Word :D.
I'll try the other programs.

Thanks

Revision history for this message
Anton Gladky (gladky-anton) said :
#3

Hi,

.pyc is the byte code, which is not supposed to be opened
by human. I will try to install 15.10 on virtual machine and
try to reproduce the problem. But 15.10 is not the best from
"Yade point of view": it was released, when packages in
Debian were in a very unstable state.

Regards

Anton

2016-04-23 1:37 GMT+02:00 Jonathan Pergoli <
<email address hidden>>:

> Question #292014 on Yade changed:
> https://answers.launchpad.net/yade/+question/292014
>
> Jonathan Pergoli posted a new comment:
> Hi Jerome!
>
> I used gedit but it is not capable of reading the content. I didn't
> consider Microsoft Word :D.
> I'll try the other programs.
>
> Thanks
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Jonathan Pergoli (j812p89) said :
#4

Thank you guys, at the end I decided to remove ubuntu 15.10 and install 14.04. Now yade works perfectly.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

.pyc files are precompiled files.
You should edit the .py file and delete the .pyc file. It will then be recreated with the new contents.
You can also use the pycompile command to create a .pyc file from a .py file.

Can you help with this problem?

Provide an answer of your own, or ask Jonathan Pergoli for more information if necessary.

To post a message you must log in.