Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with installing flux on manjaro #157

Open
Dankra30 opened this issue Nov 29, 2022 · 5 comments
Open

Issue with installing flux on manjaro #157

Dankra30 opened this issue Nov 29, 2022 · 5 comments
Labels
needs reproducibility Need a way for maintainers to reproduce this problem before it can be debugged

Comments

@Dankra30
Copy link

Dankra30 commented Nov 29, 2022

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

@ntc2
Copy link
Member

ntc2 commented Dec 7, 2022

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.

@adiSuper94
Copy link

I am facing the same issue 😥

@ntc2 ntc2 added needs info needs reproducibility Need a way for maintainers to reproduce this problem before it can be debugged and removed needs info labels Jul 15, 2023
@MASTERdjango
Copy link

MASTERdjango commented Aug 31, 2023

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'

@adiSuper94
Copy link

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

@s-ansa
Copy link

s-ansa commented Mar 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproducibility Need a way for maintainers to reproduce this problem before it can be debugged
Projects
None yet
Development

No branches or pull requests

5 participants