Jump to content
Forums in Read-Only Mode - Please use Reddit ×
  • 0

Invalid token '1999-2017' (not '=')


onli

Question

I'm running this script for upgrades:

#!/bin/sh
ego sync
emerge --sync
layman -S
emerge -uavDN @world

But today I'm getting the error message from the title. The full message is:

Quote

"/var/git/meta-repo/kits/core-kit/profiles/base/make.defaults", line 1: Invalid token '1999-2017' (not '=')

That means one of those scripts removes the # sign from the first line of that file. There is an other error before:

Already up to date.
Sync successful and kits in alignment! :)
Updating /etc/portage/repos.conf...
Updating profiles at /etc/portage/make.profile/parent...
Updating non-funtoo repositories...
Traceback (most recent call last):
  File "/usr/bin/ego", line 120, in <module>
    EgoModule.run_ego_module(action, econfig, args, VERSION)
  File "/usr/share/ego/python/ego/module.py", line 102, in run_ego_module
    ego_module(*args)
  File "/usr/share/ego/python/ego/module.py", line 87, in __call__
    self.handle()
  File "/usr/share/ego/modules/sync.ego", line 337, in handle
    self.sync_meta_repo()
  File "/usr/share/ego/modules/sync.ego", line 325, in sync_meta_repo
    self._do_package_moves()
  File "/usr/share/ego/modules/sync.ego", line 46, in _do_package_moves
    import portage
ImportError: No module named 'portage'

Full output here. I'm not aware of having changed anything related to this. How can I fix this?

 

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 1
2 hours ago, onli said:

@kris:


onli@Fallout:~$ sudo eselect python list
Password: 
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7
  [3]   python3.5 (fallback)

You mean portage/ego relies on python 2 and I should select that?

I chose No. 3, 

Link to comment
Share on other sites

  • 1

Same issue here. Looks like a # missing

pross ~ # cat /var/git/meta-repo/kits/core-kit/profiles/base/make.defaults
Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
#
# System-wide defaults for the Portage system
# See portage(5) manpage

 

Link to comment
Share on other sites

  • 1
10 hours ago, onli said:

Otakku, I hadn't seen your. Though your thread is marked [solved] without there being a fix in the thread. How did you solve it? I can of course add the # to the file, but when I try to upgrade it gets removed again.

are you using the profile 1.2 global ?

Link to comment
Share on other sites

  • 1
eselect python list

select python, this should solve the problem. 

Quote

"/var/git/meta-repo/kits/core-kit/profiles/base/make.defaults", line 1: Invalid token '1999-2017' (not '=')

add to the beginning of the sentence #

# Copyright 1999-2017 Gentoo Foundation



 

Link to comment
Share on other sites

  • 0

@kris:

onli@Fallout:~$ sudo eselect python list
Password: 
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7
  [3]   python3.5 (fallback)

You mean portage/ego relies on python 2 and I should select that?

Link to comment
Share on other sites

  • 0

Hm, an incompatibility with python 3.4 would be bad. But it seems it works now. So, what I did:

sudo eselect python set 3

to select python 3.5, and then I re-added the missing # to the first line of /var/git/meta-repo/kits/core-kit/profiles/base/make.defaults. Now the upgrade commands reacht the step of calculating dependencies, unlike before. Thanks.

Link to comment
Share on other sites

×
×
  • Create New...