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

pytype setup omits pytype.tools.traces #372

Closed
kamahen opened this issue Aug 5, 2019 · 3 comments · Fixed by #373

Comments

@kamahen
Copy link
Contributor

commented Aug 5, 2019

This is with the latest pull from github (2019.7.30). I fixed it by:

cp -pir ./pytype/tools/traces/ ~/.local/lib/python3.6/site-packages/pytype/tools/

Here's the error I got:

Traceback (most recent call last):
  File "/home/peter/.local/bin/pyxref", line 11, in <module>
    load_entry_point('pytype==2019.7.30', 'console_scripts', 'pyxref')()
  File "/home/peter/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/peter/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2843, in load_entry_point
    return ep.load()
  File "/home/peter/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2434, in load
    return self.resolve()
  File "/home/peter/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2440, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/peter/.local/lib/python3.6/site-packages/pytype/tools/xref/main.py", line 15, in <module>
    from pytype.tools.xref import indexer
  File "/home/peter/.local/lib/python3.6/site-packages/pytype/tools/xref/indexer.py", line 18, in <module>
    from pytype.tools.traces import source
ModuleNotFoundError: No module named 'pytype.tools.traces'
@kamahen

This comment has been minimized.

Copy link
Contributor Author

commented Aug 5, 2019

I used these commands to install (I had previously deleted all pytype files from ~/.local):

cd ~/src/pytype
git pull --recurse-submodules
git submodule init
git submodule update
python3 -m pip install --upgrade --user .

@rchen152 rchen152 added the bug label Aug 5, 2019

@rchen152 rchen152 self-assigned this Aug 5, 2019

rchen152 added a commit that referenced this issue Aug 5, 2019
@rchen152

This comment has been minimized.

Copy link
Contributor

commented Aug 5, 2019

Thanks for catching this; I opened a PR to fix it.

@rchen152 rchen152 closed this in #373 Aug 7, 2019

@kamahen

This comment has been minimized.

Copy link
Contributor Author

commented Aug 7, 2019

Verified fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.