Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > de.comp.lang.python > #6067
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Hermann Riemann <nospam.ng@hermann-riemann.de> |
| Newsgroups | de.comp.lang.python |
| Subject | Paket Modul import Problem. |
| Date | Sun, 16 Jun 2024 12:32:42 +0200 |
| Lines | 47 |
| Message-ID | <ld7taaFa0pcU1@mid.individual.net> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net 0E4wpwBt9z+n2Ub9sQyXTQuvvD9Zkso4tjM7hOahoI6VsoRZAG |
| Cancel-Lock | sha1:80paenlDKIhTMRhxhHQA77HQ3g0= sha256:o9n02pcbpTuly31QEQhDKGjZdb9ueWJVvtxGUFmylUo= |
| X-Mozilla-News-Host | news://news.individual.de:119 |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 |
| Content-Language | de-DE |
| Xref | csiph.com de.comp.lang.python:6067 |
Show key headers only | View raw
Gegeben 3 Dateien im Verzeichnis /irgendwas
test.py mit Inhalt:
print("test start")
import grr
print("test ende")
grr/__init__.py mit Inhalt:
print("start init grr")
import bla
print("ende init grr")
und grr/bla/__init__.py mit Inhalt:
print("in init bla")
python3 grr/__init__.py liefert wie gedacht:
start init grr
in init bla
ende init grr
python3 test.py liefert allerdings:
test start
start init grr
Traceback (most recent call last):
File "test.py", line 2, in <module>
import grr
File "/irgendwas/grr/__init__.py", line 2, in <module>
import bla
Warum wird da bla nicht gefunden?
( Im Gegensatz zum Aufruf bei python3 grr/__init__.py )
--
<http://www.hermann-riemann.de>
Back to de.comp.lang.python | Previous | Next — Next in thread | Find similar
Paket Modul import Problem. Hermann Riemann <nospam.ng@hermann-riemann.de> - 2024-06-16 12:32 +0200 Re: Paket Modul import Problem. ram@zedat.fu-berlin.de (Stefan Ram) - 2025-06-18 17:30 +0000
csiph-web