Comments (15)
I see now that it does not install "click">8. Even when I do a
pip install click
it does not update....
you need to specify --upgrade
to upgrade (so pip install --upgrade click
)
from synadm.
@roughnecks could you paste the full output of pip3 install
?
synadm 0.38 requires Click<8.0,>=7.0, but you have click 8.1.3 which is incompatible.
I suggest using virtual environments for projects that do need Flask, and also running pip3 uninstall Flask
so you can install synadm
.
(you could do it the other way where you pip3 install synadm
into a virtual environment, but it would be awkward to have to activate the virtual environment every time you wanted to use synadm. really, install Flask into virtual environments and install synadm
globally*, it would be nice to have synadm accessible without having to activate the environment every time)
from synadm.
pip3 install synadm
Collecting synadm
Downloading synadm-0.38-py3-none-any.whl (58 kB)
|████████████████████████████████| 58 kB 5.9 MB/s
Collecting Click<8.0,>=7.0
Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
|████████████████████████████████| 82 kB 1.3 MB/s
Requirement already satisfied: dnspython in /usr/lib/python3/dist-packages (from synadm) (2.0.0)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from synadm) (2.25.1)
Collecting tabulate
Downloading tabulate-0.9.0-py3-none-any.whl (35 kB)
Requirement already satisfied: PyYaml in /usr/lib/python3/dist-packages (from synadm) (5.3.1)
Collecting click-option-group>=0.5.2
Downloading click_option_group-0.5.5-py3-none-any.whl (12 kB)
Installing collected packages: Click, tabulate, click-option-group, synadm
Attempting uninstall: Click
Found existing installation: click 8.1.3
Uninstalling click-8.1.3:
Successfully uninstalled click-8.1.3
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
flask 2.2.2 requires click>=8.0, but you have click 7.1.2 which is incompatible.
Successfully installed Click-7.1.2 click-option-group-0.5.5 synadm-0.38 tabulate-0.9.0
from synadm.
Also, click 7.x is from 2020, I think YOU should upgrade to 8.
from synadm.
Also, click 7.x is from 2020, I think YOU should upgrade to 8.
taken note of.
@roughnecks has attempting my suggestion (below the request for logs) worked?
from synadm.
Installing collected packages: Click, tabulate, click-option-group, synadm Attempting uninstall: Click Found existing installation: click 8.1.3 Uninstalling click-8.1.3: Successfully uninstalled click-8.1.3 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. flask 2.2.2 requires click>=8.0, but you have click 7.1.2 which is incompatible. Successfully installed Click-7.1.2 click-option-group-0.5.5 synadm-0.38 tabulate-0.9.0
the last line indicates synadm has been successfully installed, and the newer version of click has been uninstalled. @roughnecks are you able to run the synadm
command?
from synadm.
Successfully installed Click-7.1.2 click-option-group-0.5.5 synadm-0.38 tabulate-0.9.0
the last line indicates synadm has been successfully installed. @roughnecks are you able to run the
synadm
command?
It's installed but if it breaks dependencies for other packages it's not good.
I haven't run any command, but uninstalled synadm and installed click 8 again.
from synadm.
Also, click 7.x is from 2020, I think YOU should upgrade to 8.
We'll look into that. IIRC the reason was click-option-group required that but now supports Click<9 already.
from synadm.
Also, click 7.x is from 2020, I think YOU should upgrade to 8.
We'll look into that. IIRC the reason was click-option-group required that but now supports Click<9 already.
Thanks
from synadm.
@roughnecks I started working on this issue.
Would it be possible for you to clone the git repo to your server and install synadm from there? That would help a lot!
The process I would like you to try would be
git clone https://github.com/joj0/synadm.git
cd synadm
# edit setup.py, look for a list named `install_requires` and remove the version number after Click.
pip install .
From my tests, the only thing I realised is that the wheel package is missing and pyyaml doesn't like that.
Building wheels for collected packages: PyYaml
Running setup.py bdist_wheel for PyYaml ... error
Complete output from command /home/jojo/.venvs/synadm38_click_requirement/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-uzys594w/PyYaml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpxi7x_kr5pip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for PyYaml
Running setup.py clean for PyYaml
Failed to build PyYaml
Can you confirm this behaviour?
If you'd just add wheel to the install_requires list in setup.py, pip install ..
will work:
install_requires=[
"Click",
"requests",
"tabulate",
"PyYaml",
"click-option-group>=0.5.2",
"dnspython",
"wheel"
],
Some confirmation would really help. Thanks!
I tested this with Python 3.8 and also an old 3.6 because it was available on that machine. Same behaviour.
The wheel error is actually only cosmetic, could theoretically be ignored. pyyaml will work anyway! It's just saying that a deprecated way of installing it was used I think...
from synadm.
I had synadm repo already cloned on WSL, so I tried there
git pull, edit setup.py and sudo pip install .
sudo pip install .
Processing /home/debian/sources/synadm
Requirement already satisfied: Click in /usr/local/lib/python3.9/dist-packages/click-7.1.2-py3.9.egg (from synadm==0.38) (7.1.2)
Requirement already satisfied: PyYaml in /usr/local/lib/python3.9/dist-packages/PyYAML-6.0-py3.9-linux-x86_64.egg (from synadm==0.38) (6.0)
Requirement already satisfied: click-option-group>=0.5.2 in /usr/local/lib/python3.9/dist-packages/click_option_group-0.5.3-py3.9.egg (from synadm==0.38) (0.5.3)
Requirement already satisfied: dnspython in /usr/local/lib/python3.9/dist-packages/dnspython-2.2.1-py3.9.egg (from synadm==0.38) (2.2.1)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from synadm==0.38) (2.25.1)
Requirement already satisfied: tabulate in /usr/local/lib/python3.9/dist-packages/tabulate-0.8.10-py3.9.egg (from synadm==0.38) (0.8.10)
Building wheels for collected packages: synadm
Building wheel for synadm (setup.py) ... done
Created wheel for synadm: filename=synadm-0.38-py3-none-any.whl size=58714 sha256=8de41da3a32b71003e361c04f423760203fc82554d2a563609abd607585fe1d1
Stored in directory: /tmp/pip-ephem-wheel-cache-cwdap621/wheels/6a/9b/9e/81ecfcf7d20fcc3355fe3c50ccf12c0f1886bfe36bafbbccc0
Successfully built synadm
Installing collected packages: synadm
Attempting uninstall: synadm
Found existing installation: synadm 0.35
Uninstalling synadm-0.35:
Successfully uninstalled synadm-0.35
Successfully installed synadm-0.38
If you want me to start fresh, please advice on how to proceed.
from synadm.
I see now that it does not install "click">8. Even when I do a pip install click
it does not update....
Sorry, I just woke up, still haven't regained consciousness.. :)
from synadm.
debian@CUSPIDE:~$ sudo pip install click==8.1.3
Collecting click==8.1.3
Downloading click-8.1.3-py3-none-any.whl (96 kB)
|████████████████████████████████| 96 kB 2.8 MB/s
Installing collected packages: click
Attempting uninstall: click
Found existing installation: click 7.1.2
Uninstalling click-7.1.2:
Successfully uninstalled click-7.1.2
Successfully installed click-8.1.3
debian@CUSPIDE:~$ cd sources/synadm/
debian@CUSPIDE:~/sources/synadm$ sudo pip install .
Processing /home/debian/sources/synadm
Requirement already satisfied: Click in /usr/local/lib/python3.9/dist-packages (from synadm==0.38) (8.1.3)
Requirement already satisfied: PyYaml in /usr/local/lib/python3.9/dist-packages/PyYAML-6.0-py3.9-linux-x86_64.egg (from synadm==0.38) (6.0)
Requirement already satisfied: click-option-group>=0.5.2 in /usr/local/lib/python3.9/dist-packages/click_option_group-0.5.3-py3.9.egg (from synadm==0.38) (0.5.3)
Requirement already satisfied: dnspython in /usr/local/lib/python3.9/dist-packages/dnspython-2.2.1-py3.9.egg (from synadm==0.38) (2.2.1)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from synadm==0.38) (2.25.1)
Requirement already satisfied: tabulate in /usr/local/lib/python3.9/dist-packages/tabulate-0.8.10-py3.9.egg (from synadm==0.38) (0.8.10)
Building wheels for collected packages: synadm
Building wheel for synadm (setup.py) ... done
Created wheel for synadm: filename=synadm-0.38-py3-none-any.whl size=58714 sha256=31072112e854e35c0f68bb4b9c875557ba232f2f8673134adbf48d766273597a
Stored in directory: /tmp/pip-ephem-wheel-cache-_qegnn69/wheels/6a/9b/9e/81ecfcf7d20fcc3355fe3c50ccf12c0f1886bfe36bafbbccc0
Successfully built synadm
Installing collected packages: synadm
Attempting uninstall: synadm
Found existing installation: synadm 0.38
Uninstalling synadm-0.38:
Successfully uninstalled synadm-0.38
Successfully installed synadm-0.38
from synadm.
Sorry I was assuming a fresh environment I guess. Yes pip doesn't upgrade if something is already installed. Thanks for dropping in @JacksonChen666
from synadm.
Anyway, after editing setup.py and installing everything I get no complains and everything just works <= this is on my actual VPS.
from synadm.
Related Issues (20)
- User modify API requires a redesign HOT 10
- User modify command doesn't show difference in non-interactive output mode
- synadm doesn't work after v0.38 with Click 7.0 HOT 8
- regtok delete is broken HOT 8
- Prepare for Read the Docs Configuration v2
- Add a way to see synadm version HOT 6
- 0.42 not on PyPi HOT 2
- Command line reference in docs is empty HOT 3
- Account (un)locking HOT 1
- Admin user filter in user list API
- User list function breaking change HOT 1
- Streamlining of "Admin API" wording HOT 2
- GitHub Actions pipeline "release" throwing deprecations/warnings HOT 1
- invalid token generated with synadm login HOT 2
- Removing of threepid is not supported HOT 2
- M_NOT_JSON error when trying to delete room HOT 2
- Links to synapse documentation is old
- Cannot do a login without first configuring synadm HOT 1
- Synapse returned status code 400 - Can only delete local media HOT 8
- synadm media delete uses deprecated API endpoint
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from synadm.