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

fixes for bugs noticed during usage #8

Merged
merged 5 commits into from
Jan 14, 2022

Conversation

oliverrahner
Copy link
Contributor

Kind of like #1, I am noticing some things during usage of AliceCLI and I'm trying to fix them. E.g. the "Please insert SD-card first" error noted in #1 has been fixed.

I'll add more as I see it.

@oliverrahner oliverrahner marked this pull request as draft January 14, 2022 08:18
@oliverrahner oliverrahner changed the title bugfixes noticed during usage fixes for bugs noticed during usage Jan 14, 2022
@Psychokiller1888 Psychokiller1888 marked this pull request as ready for review January 14, 2022 11:20
@@ -50,7 +50,8 @@
'pytest~=6.2.5',
'coverage~=6.2',
'pytest-cov~=3.0.0',
'coveralls~=3.3.1'
'coveralls~=3.3.1',
'tomli=2.0.0'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmh? What requires tomli?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not too versed in Python packaging, but this is the message I get when trying to start alice from a fresh venv after doing pip install --editable .:

(venv) user@box:/usr/src/AliceCLI-orig# alice
Traceback (most recent call last):
  File "/usr/src/AliceCLI-orig/venv/bin/alice", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/src/AliceCLI-orig/venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3252, in <module>
    def _initialize_master_working_set():
  File "/usr/src/AliceCLI-orig/venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
    f(*args, **kwargs)
  File "/usr/src/AliceCLI-orig/venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/src/AliceCLI-orig/venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/src/AliceCLI-orig/venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/src/AliceCLI-orig/venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'tomli; extra == "toml"' distribution was not found and is required by coverage

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's.... weird, coverage should install it as it is its own dep. Whatever, not a big deal :-)

@Psychokiller1888
Copy link
Member

Hey, thank you so much for this, really neat! Tbh, I did not take the time to study the balena cli and I should have, thank you for that!

@oliverrahner
Copy link
Contributor Author

oliverrahner commented Jan 14, 2022

The only case I'm using balena for that you didn't use was to locate the SD card device. For that, I only use the same command that you have already been using: balena util available-drives.
I then use a more verbose (and also more stable) output from lsblk to increase the chance to actually find the right device (one with a vfat fs that is actually labeled 'boot') or have the user select one if multiple are matching.

@Psychokiller1888
Copy link
Member

You just let me know when you want it merged? I saw you had it as a draft

@oliverrahner
Copy link
Contributor Author

Yes, that was on purpose. But I think it can be merged now, my own setup is now so far through that I don't need the CLI currently.

@Psychokiller1888 Psychokiller1888 merged commit 2ed754c into project-alice-assistant:master Jan 14, 2022
@Psychokiller1888
Copy link
Member

@oliverrahner

What IDE are you using? There's a lot of warnings and stuff to be corrected

https://puu.sh/ICBpi.png

@oliverrahner
Copy link
Contributor Author

oliverrahner commented Jan 14, 2022 via email

@Psychokiller1888
Copy link
Member

Psychokiller1888 commented Jan 14, 2022 via email

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 this pull request may close these issues.

2 participants