belyalov / tinyweb

Simple and lightweight HTTP async server for micropython
MIT License
252 stars 39 forks source link

Release image broken: ImportError: no module named 'tinyweb' #18

Closed Kortenbach closed 5 years ago

Kortenbach commented 5 years ago

Make sure you are running the latest version of TinyWeb before reporting an issue. Fresh download today

Device and/or platform: ESP8266

Description of problem: After flashing .bin firmware file: import network --> ok import tinyweb (copy-pasted name, no typo...) --> ImportError: no module named 'tinyweb'

Expected: Successfull import

Traceback (if applicable):

>>> import network
>>> import tinyweb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: no module named 'tinyweb'
>>> >>> help('modules')
__main__          hashlib           socket            urandom
_boot             inisetup          ssl               ure
_onewire          io                struct            uselect
_webrepl          json              sys               usocket
apa102            lwip              time              ussl
array             machine           ubinascii         ustruct
binascii          math              ucollections      utime
btree             micropython       ucryptolib        utimeq
builtins          neopixel          uctypes           uzlib
collections       network           uerrno            webrepl
dht               ntptime           uhashlib          webrepl_setup
ds18x20           onewire           uheapq            websocket
errno             os                uio               websocket_helper
esp               port_diag         ujson             zlib
flashbdev         random            uos
framebuf          re                upip
gc                select            upip_utarfile
Plus any modules on the filesystem

Additional info: There are no modules in the file system either,,,

belyalov commented 5 years ago

Thanks for reporting, looks to be travis build bug. ETA for fix is tomorrow

belyalov commented 5 years ago

With release-1.3.2 image it works well:

>>>
>>> import network
>>> import tinyweb
>>>
>>> tinyweb.
__class__       __name__        __path__        webserver
server

Let me know if it still does not work for you.

Kortenbach commented 5 years ago

Thank you so much! I will report back to you

Op do 20 dec. 2018 06:55 schreef Konstantin Belyalov < notifications@github.com:

With release-1.3.2 image https://github.com/belyalov/tinyweb/releases/download/v1.3.2/firmware_esp8266-v1.3.2.bin it works well:

import network>>> import tinyweb>>>>>> tinyweb.class name path webserver server

Let me know if it still does not work for you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/belyalov/tinyweb/issues/18#issuecomment-448882741, or mute the thread https://github.com/notifications/unsubscribe-auth/ATFzj7Kyh9EMtbd0cPVqiDJG9qBR_i0pks5u6yZcgaJpZM4ZbBEi .