fluxgui icon indicating copy to clipboard operation
fluxgui copied to clipboard

Issue with installing flux on manjaro

Open Dankra30 opened this issue 2 years ago • 5 comments

Hey! I'm using manjaro xfce and am trying to install flux since I really enjoyed it when I had Windows. Now I'm a new Linux User and not that experienced in fixing problems myself, so that's why it may be a problem, which can be solved easily:

When I'm trying to do a manual installation, I've put in the command from the README: "sudo ./setup.py install --record installed.txt" and what comes out is the following:

Traceback (most recent call last): File "/tmp/fluxgui/./setup.py", line 84, in setup(name = "f.lux indicator applet", File "/usr/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 147, in setup _setup_distribution = dist = klass(attrs) File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 474, in init for ep in metadata.entry_points(group='distutils.setup_keywords'): File "/usr/lib/python3.10/importlib/metadata/init.py", line 1009, in entry_points return SelectableGroups.load(eps).select(**params) File "/usr/lib/python3.10/importlib/metadata/init.py", line 459, in load ordered = sorted(eps, key=by_group) File "/usr/lib/python3.10/importlib/metadata/init.py", line 1006, in eps = itertools.chain.from_iterable( File "/usr/lib/python3.10/importlib/metadata/_itertools.py", line 16, in unique_everseen k = key(element) File "/usr/lib/python3.10/importlib/metadata/init.py", line 941, in _normalized_name return self._name_from_stem(stem) or super().normalized_name File "/usr/lib/python3.10/importlib/metadata/init.py", line 622, in normalized_name return Prepared.normalize(self.name) File "/usr/lib/python3.10/importlib/metadata/init.py", line 871, in normalize return re.sub(r"[-.]+", "-", name).lower().replace('-', '') File "/usr/lib/python3.10/re.py", line 209, in sub return _compile(pattern, flags).sub(repl, string, count) TypeError: expected string or bytes-like object

I would greatly appreciate it, if it could be solved. But since I'm using manjaro it's probably not the last issue I will be having, so if a solution brought me further in the installation process, I would be glad, if you don't just close this thread, but rather let me experience flux a few days for if a new problem comes up.

Thanks alot in advance!

Kind regards, Dankra30

Dankra30 avatar Nov 29 '22 16:11 Dankra30

Hello. This is a strange looking problem: a type error deep inside importlib. I tried doing the install myself with Python 3.10.0 (I see from your stack trace that you're using some 3.10.X Python) and I didn't have any trouble.

ntc2 avatar Dec 07 '22 09:12 ntc2

I am facing the same issue 😥

adiSuper94 avatar Jun 15 '23 01:06 adiSuper94

I get something similar: ~/Downloads/fluxgui-master❱✔≻ sudo ./setup.py install --record installed.txt [sudo] password for arma: Traceback (most recent call last): File "/home/arma/Downloads/fluxgui-master/./setup.py", line 84, in setup(name = "f.lux indicator applet", File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 147, in setup _setup_distribution = dist = klass(attrs) ^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 494, in init for ep in metadata.entry_points(group='distutils.setup_keywords'): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/metadata/init.py", line 1040, in entry_points return SelectableGroups.load(eps).select(**params) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/metadata/init.py", line 476, in load ordered = sorted(eps, key=by_group) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/metadata/init.py", line 1037, in eps = itertools.chain.from_iterable( ^ File "/usr/lib/python3.11/importlib/metadata/_itertools.py", line 16, in unique_everseen k = key(element) ^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/metadata/init.py", line 954, in _normalized_name or super().normalized_name ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/metadata/init.py", line 627, in normalized_name return Prepared.normalize(self.name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/metadata/init.py", line 882, in normalize return re.sub(r"[-.]+", "-", name).lower().replace('-', '') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/re/init.py", line 185, in sub return _compile(pattern, flags).sub(repl, string, count) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: expected string or bytes-like object, got 'NoneType'

MASTERdjango avatar Aug 31 '23 06:08 MASTERdjango

If you are on unix, just use redshift directly. That's what I am doing now 🤷‍♂️.

adiSuper94 avatar Sep 17 '23 19:09 adiSuper94

I have the same problem. I first installed flux, opened it, messed something up with configuration, and decided to reinstall. This is when the error happened. Ubuntu 23.10

s-ansa avatar Mar 10 '24 12:03 s-ansa