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

Hello_World test breaking with import error #3345

Closed
bo1658a opened this issue Feb 23, 2023 · 2 comments
Closed

Hello_World test breaking with import error #3345

bo1658a opened this issue Feb 23, 2023 · 2 comments

Comments

@bo1658a
Copy link

bo1658a commented Feb 23, 2023

I did the Hello_world test and encountered an error on submission as seen below. Kindly assist.

We received the following error when we ran your code:
ImportError while importing test module '.mnt.exercism-iteration.hello_world_test.py'.
Hint: make sure your test modules.packages have valid Python names.
Traceback:
.usr.local.lib.python3.10.importlib.init.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
.mnt.exercism-iteration.hello_world_test.py:3: in
from hello_world import (
E ImportError: cannot import name 'hello' from 'hello_world' (.mnt.exercism-iteration.hello_world.py)

@github-actions
Copy link
Contributor

Hello. Thanks for opening an issue on Exercism. We are currently in a phase of our journey where we have paused community contributions to allow us to take a breather and redesign our community model. You can learn more in this blog post. As such, all issues and PRs in this repository are being automatically closed.

That doesn't mean we're not interested in your ideas, or that if you're stuck on something we don't want to help. The best place to discuss things is with our community on the Exercism Community Forum. You can use [this link](https://forum.exercism.org/new-topic?title=Hello_World%20test%20breaking%20with%20import%20error&body=I%20did%20the%20Hello_world%20test%20and%20encountered%20an%20error%20on%20submission%20as%20seen%20below.%20Kindly%20assist.%0D%0A%0D%0A%0D%0AWe%20received%20the%20following%20error%20when%20we%20ran%20your%20code:%0D%0A%20%20ImportError%20while%20importing%20test%20module%20'.mnt.exercism-iteration.hello_world_test.py'.%0D%0AHint:%20make%20sure%20your%20test%20modules.packages%20have%20valid%20Python%20names.%0D%0ATraceback:%0D%0A.usr.local.lib.python3.10.importlib.__init__.py:126:%20in%20import_module%0D%0A%20%20%20%20return%20_bootstrap._gcd_import(name%5Blevel:%5D,%20package,%20level)%0D%0A.mnt.exercism-iteration.hello_world_test.py:3:%20in%20%3Cmodule%3E%0D%0A%20%20%20%20from%20hello_world%20import%20(%0D%0AE%20%20%20ImportError:%20cannot%20import%20name%20'hello'%20from%20'hello_world'%20(.mnt.exercism-iteration.hello_world.py)&category=python) to copy this into a new topic there.


Note: If this issue has been pre-approved, please link back to this issue on the forum thread and a maintainer or staff member will reopen it.

@BethanyG
Copy link
Member

Hi @bo1658a 👋🏽

Thank you for taking the time to raise this issue. As stated in the auto-response, we would prefer if you first raised issues in our exercism forum, and not here in the Python repo. That gives us a chance to discuss the issue and determine if it is a bug or something that can be resolved by other means.

The forum has many friendly people who would love to discuss and help students with issues they encounter. Another alternative is to use our CLI to upload your partial solution and request mentoring. A mentor can walk through your solution and point out where things might have gone wrong.

My reply in this forum post might also be helpful for your particular situation.

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

No branches or pull requests

2 participants