Scientific Computing with Python Projects - Time Calculator

Tell us what’s happening:
Describe your issue in detail here.

i wanted to check if my code was working as it should (was coding in pycharm beforehand) but i got this weird error:

 python main.py
Traceback (most recent call last):
File “main.py”, line 3, in
from unittest import main
File “/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/unittest/init.py”, line 60, in
from .async_case import IsolatedAsyncioTestCase
File “/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/unittest/async_case.py”, line 1, in
import asyncio
File “/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/init.py”, line 8, in
from .base_events import *
File “/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/base_events.py”, line 23, in
import socket
File “/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/socket.py”, line 49, in
import _socket
ImportError: /nix/store/65hafbsx91127farbmyyv4r5ifgjdg43-glibc-2.33-117/lib/libpthread.so.0: undefined symbol: __libc_siglongjmp, version GLIBC_PRIVATE
exit status 1

there seems to be a problem with replits modules and the import… doesnt seem like my code is causing any problems.

any help?

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0

Challenge: Scientific Computing with Python Projects - Time Calculator

Link to the challenge:

Can you post a link to your code?

boilerplate-time-calculator - Nix (beta) Repl - Replit

had to post it in quotation marks… otherwise it wouldnt show for some reason

It is a bug with the replit. To resolve, click on the 3 vertical dots near top right of the Files section to show hidden files. You will then see a .replit file. Replace its entire contents with:

language = "python3"
run = "python main.py"

and then click Run again.

now as i thought to have fixed all the errors, which have been displayed, but different in comparison to the last replit project i did, i only get this output:

python main.py
1:08 AM (next day)

this is weird because i expected to see some type of result like “tests passed” or something. i can imagine maybe the edit of the .replit file messed with the display of the test results. can you help me on that? i just dont know if i passed or not.

Something i noticed is that the program doesnt finish. i have to stop it manually and it says “signal: terminated”

the same thing for me when I run the program, it does not show what I used to in the formatted project, but when I submitted the project in freecodecamp, it signs checked .

1 Like