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

start failed : ValueError: attempted relative import beyond top-level package #215

Open
changchichung opened this issue May 25, 2018 · 2 comments

Comments

@changchichung
Copy link

any suggestions ??

(.ve) 2018-05-25 09:37:21 [Git-Auto-Deploy]$ sudo .ve/bin/pip install -r requirements.txt 
The directory '/home/mini/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/mini/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: setuptools>=20.3.1 in ./.ve/lib/python3.6/site-packages (from -r requirements.txt (line 1)) (32.3.1)
Requirement already satisfied: lockfile>=0.12.2 in ./.ve/lib/python3.6/site-packages (from -r requirements.txt (line 2)) (0.12.2)
(.ve) 2018-05-25 09:37:24 [Git-Auto-Deploy]$ python -m gitautodeploy --config config.json
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/minion/Git-Auto-Deploy/gitautodeploy/__main__.py", line 14, in <module>
    main()
  File "/home/minion/Git-Auto-Deploy/gitautodeploy/gitautodeploy.py", line 676, in main
    init_config(config)
  File "/home/minion/Git-Auto-Deploy/gitautodeploy/cli/config.py", line 355, in init_config
    from ..models import Project
ValueError: attempted relative import beyond top-level package
@necan
Copy link

necan commented Feb 25, 2019

I got the same issue.

@Letme
Copy link
Contributor

Letme commented Jul 29, 2019

Its because of python 3.6, and I managed to fix it with a simple line change propsed in #238 . Feel free to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants