datacenter / arya

APIC Rest to pYthon Adapter
Apache License 2.0
52 stars 25 forks source link

Can Arya run on Python3.7 #14

Open jrleriche opened 4 years ago

jrleriche commented 4 years ago

I am having the the error below when trying to run it

C:>arya -f /Users/leje6024/Downloads/BD-Hero_Land.json Traceback (most recent call last): File "C:\Users\leje6024\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources__init__.py", line 2419, in resolve return functools.reduce(getattr, self.attrs, module) AttributeError: module 'arya' has no attribute 'main'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\leje6024\AppData\Local\Programs\Python\Python37\Scripts\arya-script.py", line 11, in load_entry_point('arya==1.1.5', 'console_scripts', 'arya')() File "C:\Users\leje6024\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources__init.py", line 489, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\leje6024\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources__init__.py", line 2793, in load_entry_point return ep.load() File "C:\Users\leje6024\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources__init__.py", line 2411, in load return self.resolve() File "C:\Users\leje6024\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources\init__.py", line 2421, in resolve raise ImportError(str(exc)) ImportError: module 'arya' has no attribute 'main'

Thanks for your help

atarlov commented 3 years ago

I faced the same when running into a venv. You can use the araya.py directly from package.

andyitsus commented 2 years ago

I'm getting exactly the same problem as https://github.com/datacenter/arya/issues/14#issue-721099028