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

How to install archinfo==9.2.19.dev0 #118

Closed
blu3sh0rk opened this issue Sep 15, 2022 · 3 comments
Closed

How to install archinfo==9.2.19.dev0 #118

blu3sh0rk opened this issue Sep 15, 2022 · 3 comments
Labels

Comments

@blu3sh0rk
Copy link

Hello,
Missing setup.py in this project. How can i install archinfo==9.2.19.dev0?

@rhelmot
Copy link
Member

rhelmot commented Sep 15, 2022

You can install this project with pip - either pip install -e . or pip install . in the root of this repository.

The python community is moving away from setup.py as a packaging specification because of the difficulties in standardization and parsing and the risks of executing arbitrary code in a setup script. pyproject.toml and setup.cfg are the replacements.

@blu3sh0rk
Copy link
Author

Thank you! But I meet some problems like this:

In [4]: from archinfo import Arch
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
In [4], line 1
----> 1 from archinfo import Arch

ImportError: cannot import name 'Arch' from 'archinfo' (unknown location)

In [5]: from archinfo.arch import Arch
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In [5], line 1
----> 1 from archinfo.arch import Arch

File ~/Desktop/angr-dev/archinfo/archinfo/arch.py:8
      5 import re
      7 from .archerror import ArchError
----> 8 from . import RegisterOffset, RegisterName
      9 from .tls import TLSArchInfo
     11 import copy

ImportError: cannot import name 'RegisterOffset' from 'archinfo' (unknown location)

@rhelmot
Copy link
Member

rhelmot commented Sep 16, 2022

This looks like you're in a weird directory so the module archinfo is resolving to something other than the right thing. I'm not super sure how to debug this, other than to tell you to try doing this from a different directory?

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

No branches or pull requests

3 participants