Jump to content
funtoo forums
  • 0
onli

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

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?

 

Share this post


Link to post
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, 

Share this post


Link to post
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

 

Share this post


Link to post
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 ?

Share this post


Link to post
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



 

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...