Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge: ValueError bad marshal data (invalid ref..) [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9824
Location: almost Mile High in the USA

PostPosted: Tue Mar 02, 2021 7:52 am    Post subject: emerge: ValueError bad marshal data (invalid ref..) [Solved] Reply with quote

Not sure how this happened but when I run 'emerge' on this box, I get this error. Seems like bytecode compiled code is corrupt?
Code:
$ emerge
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.8/emerge", line 44, in <module>
    from _emerge.main import emerge_main
  File "/usr/lib/python3.8/site-packages/_emerge/main.py", line 21, in <module>
    from portage.sync import _SUBMODULE_PATH_MAP
  File "/usr/lib/python3.8/site-packages/portage/sync/__init__.py", line 9, in <module>
    from portage.sync.controller import SyncManager
  File "/usr/lib/python3.8/site-packages/portage/sync/controller.py", line 21, in <module>
    from portage.package.ebuild.doebuild import _check_temp_dir
  File "/usr/lib/python3.8/site-packages/portage/package/ebuild/doebuild.py", line 54, in <module>
    from portage.dbapi.porttree import _parse_uri_map
  File "/usr/lib/python3.8/site-packages/portage/dbapi/__init__.py", line 25, in <module>
    from _emerge.Package import Package
  File "/usr/lib/python3.8/site-packages/_emerge/Package.py", line 10, in <module>
    from portage.dep import Atom, check_required_use, use_reduce, \
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 779, in exec_module
  File "<frozen importlib._bootstrap_external>", line 911, in get_code
  File "<frozen importlib._bootstrap_external>", line 580, in _compile_bytecode
ValueError: bad marshal data (invalid reference)

Looks like I have to dump a portage over this install to fix this?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?


Last edited by eccerr0r on Tue Mar 02, 2021 6:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31267
Location: here

PostPosted: Tue Mar 02, 2021 10:14 am    Post subject: Reply with quote

Try to download portage unpack it and run emerge with ./portage-3.0.13/bin/emerge -1 portage.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9824
Location: almost Mile High in the USA

PostPosted: Tue Mar 02, 2021 5:39 pm    Post subject: Reply with quote

Think the diagnosis is proper? (though thanks for the "fix"!)
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31267
Location: here

PostPosted: Tue Mar 02, 2021 7:10 pm    Post subject: Reply with quote

I'm not a python expert but usually this error mean that imported compiled library is corrupted
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9824
Location: almost Mile High in the USA

PostPosted: Tue Mar 02, 2021 8:06 pm    Post subject: Reply with quote

It was on that bad hard drive that ran out of spare sectors so quite possibly it was corruption, though I did not see it giving read errors while reading portage. Coupled with ECC bits on the disk, it was more likely written incorrectly...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum