Quickstart not working, setup.py install fails
Context
I want to add an app, thus I follow fdroiddata/CONTRIBUTING.md. I read
Follow the Quickstart
There, I read
Install fdroidserver, or just use it directly from master:
That, I did, cloning the repository.
Problem
These are the errors I see:
$ fdroid init
Traceback (most recent call last):
File "/home/user/fdroidserver/fdroid", line 24, in <module>
import fdroidserver.common
File "/home/user/fdroidserver/fdroidserver/common.py", line 50, in <module>
from pyasn1.codec.der import decoder, encoder
ModuleNotFoundError: No module named 'pyasn1'
$ fdroid init
Traceback (most recent call last):
File "/home/user/fdroidserver/fdroid", line 24, in <module>
import fdroidserver.common
File "/home/user/fdroidserver/fdroidserver/common.py", line 50, in <module>
from pyasn1.codec.der import decoder, encoder
ModuleNotFoundError: No module named 'pyasn1'
Tried Solutions
I thought, let's install it.
fdroidserver$ ./setup.py install
/opt/anaconda3/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
/home/user/.local/lib/python3.6/site-packages/setuptools/dist.py:397: UserWarning: Normalizing '1.1a' to '1.1a0'
normalized_version,
running install
running bdist_egg
running egg_info
writing fdroidserver.egg-info/PKG-INFO
writing dependency_links to fdroidserver.egg-info/dependency_links.txt
writing requirements to fdroidserver.egg-info/requires.txt
writing top-level names to fdroidserver.egg-info/top_level.txt
reading manifest file 'fdroidserver.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'locale/bo/LC_MESSAGES/fdroidserver.mo'
warning: no files found matching 'locale/de/LC_MESSAGES/fdroidserver.mo'
warning: no files found matching 'locale/es_AR/LC_MESSAGES/fdroidserver.mo'
warning: no files found matching 'locale/es/LC_MESSAGES/fdroidserver.mo'
warning: no files found matching 'locale/fr/LC_MESSAGES/fdroidserver.mo'
warning: no files found matching 'locale/nb_NO/LC_MESSAGES/fdroidserver.mo'
warning: no files found matching 'locale/pt_BR/LC_MESSAGES/fdroidserver.mo'
warning: no files found matching 'locale/tr/LC_MESSAGES/fdroidserver.mo'
warning: no files found matching 'locale/uk/LC_MESSAGES/fdroidserver.mo'
warning: no files found matching 'locale/zh_Hans/LC_MESSAGES/fdroidserver.mo'
warning: no files found matching 'locale/zh_Hant/LC_MESSAGES/fdroidserver.mo'
warning: no files found matching 'README.rst'
writing manifest file 'fdroidserver.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
installing package data to build/bdist.linux-x86_64/egg
running install_data
error: can't copy 'locale/bo/LC_MESSAGES/fdroidserver.mo': doesn't exist or not a regular file
fdroidserver$ ls locale/bo/LC_MESSAGES/
fdroidserver.po
After installing the packages
$ fdroid init
CRITICAL: Unknown exception found!
Traceback (most recent call last):
File "/home/user/.local/bin/fdroid", line 164, in <module>
main()
File "/home/user/.local/bin/fdroid", line 159, in main
raise e
File "/home/user/.local/bin/fdroid", line 138, in main
mod.main()
File "/home/user/.local/lib/python3.6/site-packages/fdroidserver/init.py", line 123, in main
shutil.copy(os.path.join(examplesdir, 'fdroid-icon.png'), fdroiddir)
File "/opt/anaconda3/lib/python3.6/shutil.py", line 241, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/opt/anaconda3/lib/python3.6/shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/.local/share/doc/fdroidserver/examples/fdroid-icon.png'
Problem Statement
I would like to follow the Quickstart Guide and it works as described there.
Edited by Nicco Kunzmann