ModuleNotFoundError: No module named 'pyb'

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: ModuleNotFoundError: No module named 'pyb'

Post by Roberthh » Thu Jul 30, 2020 10:21 am

What is the result of:
help("modules")

fillofonta
Posts: 7
Joined: Mon Jul 13, 2020 8:55 am

Re: ModuleNotFoundError: No module named 'pyb'

Post by fillofonta » Thu Jul 30, 2020 1:33 pm

i've run the command on teh python console of pycharm and this is the result:
C:\Users\FilippoFontanesi\PycharmProjects\micro767\venv\lib\site-packages\setuptools\distutils_patch.py:26: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
"Distutils was imported before Setuptools. This usage is discouraged "
Gigi _weakref html reprlib
__future__ _weakrefset http requests
_abc _winapi idlelib rlcompleter
_ast abc idna rotary
_asyncio aifc imaplib rotary_irq_pyb
_bisect ampy imghdr runfiles
_blake2 antigravity imp runpy
_bootlocale argparse importlib sched
_bz2 array inspect scrypt
_codecs ast interpreterInfo secrets
_codecs_cn asynchat io select
_codecs_hk asyncio ipaddress selectors
_codecs_iso2022 asyncore itertools serial
_codecs_jp atexit json setup_cython
_codecs_kr audioop keyword setuptools
_codecs_tw base64 lib2to3 shelve
_collections bdb linecache shlex
_collections_abc binascii locale shutil
_compat_pickle binhex logging signal
_compression bisect lzma site
_contextvars builtins macpath smtpd
_csv bz2 mailbox smtplib
_ctypes cProfile mailcap sndhdr
_ctypes_test calendar main socket
_datetime certifi marshal socketserver
_decimal cgi math spi
_dummy_thread cgitb mimetypes sqlalchemy
_elementtree chardet mmap sqlite3
_functools chunk modulefinder sre_compile
_hashlib cicloPrincipale msilib sre_constants
_heapq click msvcrt sre_parse
_imp cmath multiprocessing ssl
_io cmd netrc stat
_json code nntplib statistics
_locale codecs nt string
_lsprof codeop ntpath stringprep
_lzma collections nturl2path struct
_markupbase colorsys numbers subprocess
_md5 compileall opcode sunau
_msi concurrent operator symbol
_multibytecodec configparser optparse symtable
_multiprocessing contextlib os sys
_opcode contextvars parser sysconfig
_operator copy pathlib tabnanny
_osx_support copyreg pdb tarfile
_overlapped crypt pickle telnetlib
_pickle csv pickletools tempfile
_py_abc ctypes pip test
_pydecimal curses pipes textwrap
_pydev_bundle dataclasses pkg_resources this
_pydev_comm datetime pkgutil threading
_pydev_imps dbm platform time
_pydev_runfiles decimal plistlib timeit
_pydevd_bundle decorator poplib tkinter
_pydevd_frame_eval difflib posixpath token
_pyio dis pprint tokenize
_queue distutils profile trace
_random docopt pstats traceback
_scrypt doctest pty tracemalloc
_sha1 dotenv pwm tty
_sha256 dummy_threading py_compile turtle
_sha3 easy_install pyclbr turtledemo
_sha512 email pycompletionserver types
_shaded_ply encoder pydev_app_engine_debug_startup typing
_shaded_thriftpy encodings pydev_console unicodedata
_signal ensurepip pydev_coverage unittest
_sitebuiltins enum pydev_ipython urllib
_socket errno pydev_pysrc urllib3
_sqlite3 faulthandler pydev_test_pydevd_reload uu
_sre filecmp pydev_tests uuid
_ssl fileinput pydev_tests_mainloop venv
_stat fnmatch pydev_tests_python warnings
_string formatter pydevconsole wave
_strptime fractions pydevd weakref
_struct ftplib pydevd_concurrency_analyser webbrowser
_symtable functools pydevd_file_utils winreg
_testbuffer gc pydevd_plugins winsound
_testcapi genericpath pydevd_pycharm wsgiref
_testconsole getopt pydevd_tracing xdrlib
_testimportmultiple getpass pydoc xml
_testmultiphase gettext pydoc_data xmlrpc
_thread glob pyexpat xxsubtype
_threading_local gzip queue zipapp
_tkinter hashlib quopri zipfile
_tracemalloc heapq random zipimport
_warnings hmac re zlib
Enter any module name to get more help. Or, type "modules spam" to search
for modules whose name or summary contain the string "spam".

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: ModuleNotFoundError: No module named 'pyb'

Post by Roberthh » Thu Jul 30, 2020 2:03 pm

Please run that

help("modules")

command on the REPL promt of your micropython board, not on the PC.

fillofonta
Posts: 7
Joined: Mon Jul 13, 2020 8:55 am

Re: ModuleNotFoundError: No module named 'pyb'

Post by fillofonta » Mon Aug 03, 2020 2:41 pm

problem solved thenks :D

mates
Posts: 1
Joined: Wed Jun 16, 2021 3:49 am

Re: ModuleNotFoundError: No module named 'pyb'

Post by mates » Wed Jun 16, 2021 3:57 am

can you tell me the solution that you have solved ? thanks.

Post Reply