Closed MoritzGiessmann closed 4 years ago
Did you run pip3
with sudo or did you setup a virtual environment?
Usually if not using a virtualenv then pip3 install required root permissions.
Also please post the output of echo $PATH
Hey! I did not run pip3 with sudo. Just pip3 install .
It seems to have been installed though. trello-to-deck
appears to be in /usr/local/bin/
Running trello-to-deck
gives me the following error:
Traceback (most recent call last):
File "/usr/local/bin/trello-to-deck", line 6, in <module> from trello_to_deck.deck import DeckAPI
ModuleNotFoundError: No module named 'trello_to_deck'
My echo $PATH
looks like this: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
That is very weird as installing binaries at /usr/local/bin
requires root privileges. This seems like the local installation is kind of weird.
You can try to create a venv though: https://wiki.archlinux.org/index.php/Python/Virtual_environment#Overview
python -m venv envname
source envname/bin/activate
pip install .
trello-to-deck
the same for me on ubuntu-mate 20.04 and MacOSX 10.14.6 with pip3 installer is successfully: but then run the migrade command:
trello-to-deck micor_trello.json MY_NEXTCLOUD_URL USER 'PASSWORD'
and then comes this result:
Traceback (most recent call last):
File "/usr/local/bin/trello-to-deck", line 6, in <module>
from trello_to_deck.deck import DeckAPI
ModuleNotFoundError: No module named 'trello_to_deck'
I think the script folder (with trello.py and deck.py) just needs to be copied with the setup file in a known Python environment.
I pushed a fix, can you try again?
My current solution/fix is:
I change the script-names from trello_to_deck/deck.py => trello_to_deck/trello_to_deck_deck.py
I change the script-names from trello_to_deck/trello.py => trello_to_deck/trello_to_deck_trello.py
then add Path to this custom libs-folder in PYTHONPATH: export PYTHONPATH='/home/director/Dropbox/Downloads/trello-to-deck-master/trello_to_deck'
change imports in 'trello_to_deck'
your changes have i allready tried -> dont works
hm very weird, I will soon try this on a ubuntu vm
@srhinow Your solution actually worked. I also had to install date-utils via pip3 install python-dateutil
I also had to install python-dateutil on macOS 10.14.6
I added this dependency and fixed this problem. I forgot to add a init.py
Cool work @maxammann! I tried to get it working, but somehow the script couldn't be found. I am not that proficient in python. In which environment do you run trello-to-deck? I tried Ubuntu with python3 and pip3, but
trello-to-deck
just gave me aModuleNotFoundError: No module named 'trello_to_deck'
after successfully installing viapip3 install .
Are there any enviromental things I might have forgotten to set up?
Thanks!