question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

meshes_installer_27.pyc not installable

See original GitHub issue

I am using Linux Mint 20 with Kernel: Linux 5.4.0-52-generic and Python 2.7.18

When executing any test program with an IDE (pycharm), python2.7 says The robot meshes and URDFs will be installed in the /home/mara/.qibullet/1.4.0 folder. You will need to agree to the meshes license in order to be able to install them. Continue the installation (y/n)? As soon as I insert y, it’s sending an Error message:

Installing the meshes and URDFs in the /home/mara/.qibullet/1.4.0 folder...
Python 2.7 detected
E
======================================================================
ERROR: setUpClass (__main__.PepperBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mara/Masterarbeit/Software/qibullet/tests/base_test.py", line 27, in setUpClass
    spawn_ground_plane=True)
  File "/home/mara/.local/lib/python2.7/site-packages/qibullet/simulation_manager.py", line 145, in spawnPepper
    pepper_virtual = PepperVirtual()
  File "/home/mara/.local/lib/python2.7/site-packages/qibullet/pepper_virtual.py", line 36, in __init__
    tools._install_resources()
  File "/home/mara/.local/lib/python2.7/site-packages/qibullet/tools.py", line 145, in _install_resources
    import meshes_installer_27 as meshes_installer
ImportError: Bad magic number in /home/mara/.local/lib/python2.7/site-packages/qibullet/robot_data/installers/meshes_installer_27.pyc

----------------------------------------------------------------------
Ran 0 tests in 13.655s

FAILED (errors=1)

When executing any test program in my terminal, the gui starts, but I can’t see any robot mesh. When I execute this: $ sudo python meshes_installer_27.pyc There is this error message. RuntimeError: Bad magic number in .pyc file

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
mbusycommented, Oct 29, 2020

By “git LFS problem”, I’m referring to what is explained in the wiki section (installation from source) that I linked:

You will encounter a bad magic number error when installing the extra resources if git-lfs isn’t correctly installed. To solve that error, install git-lfs, go the the repository folder, and type in git lfs pull. This command will download the lfs resources, you can then resume installing qiBullet.

But since you installed qiBullet via pip, you shouldn’t get that issue. I already relaunched a CI job (Ubuntu Xenial, Python 2.7.15), it manages to install the project (and the meshes) from source, and to run the unit tests.

I will try to reproduce your bug, keep me posted if you have more information

1reaction
issue-label-bot[bot]commented, Oct 28, 2020

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.62. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pyc not generated while creating module - Stack Overflow
Python3.x doesn't create .pyc files in the same directory. This is part of python3's __pycacahe__ standard. Instead, your .pyc files are ...
Read more >
pip compiles pyc files for installed scripts #11406 - GitHub
py extension, it creates corresponding .pyc files. This pollutes the bin directory, and doesn't accomplish anything, since I don't think Python ...
Read more >
Why py and not pyc or pyo? - Ask Ubuntu
When I install a python deb package, say python-numpy the files are plain python files. How do I tell to the package manager...
Read more >
“__pysource__” file layout for installed modules - Ideas
Another way to install Python modules is to not install the source, and use the *.pyc file directly in place of the *.py...
Read more >
pyc-wheel - PyPI
Compile all py files in a wheel to pyc files. ... pip install pyc-wheel. Copy PIP instructions ... To install run: python -m...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found