-
Notifications
You must be signed in to change notification settings - Fork 13
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
2.2.0: sphinx warnings #7
Comments
In addition to installing the dev requirements, you need to install the package in editable mode before running your command:
Give it a try 🤞🏼 |
I'm building rpm package from non-root acount. + pip install -e .
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///home/tkloczko/rpmbuild/BUILD/hijri-converter-2.2.0
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Installing collected packages: hijri-converter
Running setup.py develop for hijri-converter
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/tkloczko/rpmbuild/BUILD/hijri-converter-2.2.0/setup.py'"'"'; __file__='"'"'/home/tkloczko/rpmbuild/BUILD/hijri-converter-2.2.0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix=
cwd: /home/tkloczko/rpmbuild/BUILD/hijri-converter-2.2.0/
Complete output (28 lines):
running develop
WARNING: The user site-packages directory is disabled.
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/lib/python3.8/site-packages/test-easy-install-3460223.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/lib/python3.8/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://setuptools.readthedocs.io/en/latest/easy_install.html
Please make the appropriate changes for your system and try again.
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/tkloczko/rpmbuild/BUILD/hijri-converter-2.2.0/setup.py'"'"'; __file__='"'"'/home/tkloczko/rpmbuild/BUILD/hijri-converter-2.2.0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs for full command output. |
And definitely |
Can I know more details about the steps you made and produced the original error? |
In first line you have command which executes setuptools
|
I tried that but I need to know more about the building process, including the build tool, commands and operating system, so I can mimic your scenario. |
You can try that command before actual build. I'm using Python 3.8.11, setuptools 57.4.0, and as you see on top of the output I'm using sphinx 4.1.2. |
Have you tried to build the docs within a virtual environment where you can install the package? |
The issue you had was because of I replaced the extension and made some changes. Until the next release, you can checkout the |
If you already made some changes I can wait until next release. |
Fixed on v2.2.1 |
Just tested. All looks clean now. Thx :) |
I'm not 100% sure but looks like line from copy.py
points in wrong location because in
src/hijri_converter/
there is nohijri_converter
module.The text was updated successfully, but these errors were encountered: