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

Running autotab record throws python error #2

Closed
msfeldstein opened this issue Oct 19, 2023 · 6 comments · Fixed by #7
Closed

Running autotab record throws python error #2

msfeldstein opened this issue Oct 19, 2023 · 6 comments · Fixed by #7

Comments

@msfeldstein
Copy link

I went through the quickstart steps, and when i run autotab record (in my venv) i get the following error

autotab record
Traceback (most recent call last):
  File "/Users/michaelfeldstein/Source/autotab-starter/autotab-env/bin/autotab", line 5, in <module>
    from main import main
ModuleNotFoundError: No module named 'main'

MacOS 14.0
Python 3.11.5

@aelous
Copy link

aelous commented Oct 20, 2023

+1
autotab record

Traceback (most recent call last):
File "/opt/homebrew/bin/autotab", line 33, in
sys.exit(load_entry_point('autotab', 'console_scripts', 'autotab')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/bin/autotab", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.2/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/metadata/init.py", line 204, in load
return functools.reduce(getattr, attrs, module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'main' has no attribute 'main'

@benni347
Copy link

+1

@benni347
Copy link

I had to run pip3 install -e . manually then it worked without make install

@msfeldstein
Copy link
Author

no dice running pip install -e . or pip3 install -e .

@jonasalexander
Copy link
Contributor

jonasalexander commented Oct 20, 2023

I tried to reproduce on a new Ubuntu machine in the cloud and upgraded my Macbook to MacOS 14 but wasn't able to reproduce with Python 3.10 or 3.11. Just merged a change based on @benni347 's suggestion (thanks for that!) - let me know if that fixes it! @msfeldstein @aelous

@jonasalexander
Copy link
Contributor

Hi @msfeldstein @aelous try with the most recent version on main, we fixed a bunch of things. If the issue persists, feel free to join our Discord & I can help debug. https://discord.com/invite/seGGxSUgzM

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

Successfully merging a pull request may close this issue.

4 participants