funilrys / PyFunceble

The tool to check the availability or syntax of domain, IP or URL.
https://pyfunceble.github.io
Apache License 2.0
297 stars 44 forks source link

BUG: ModuleNotFoundError: No module named 'box' #298

Closed spirillen closed 2 years ago

spirillen commented 2 years ago

Description

Traceback (most recent call last):
  File "/home/$USER/.local/bin/pyfunceble", line 5, in <module>
    from PyFunceble.cli.entry_points.pyfunceble.cli import tool
  File "/home/$USER/.local/lib/python3.10/site-packages/PyFunceble/__init__.py", line 55, in <module>
    import PyFunceble.storage
  File "/home/$USER/.local/lib/python3.10/site-packages/PyFunceble/storage.py", line 58, in <module>
    from box import Box
ModuleNotFoundError: No module named 'box'

Configuration

No relevance

Reproduction

  1. ./scripts/DataTesting.bash

Expected behavior

Screenshots

Versions

OS: Ubuntu / Miniconda

Python Version: 3.10

PyFunceble Version:

pyfunceble --version 
Traceback (most recent call last):
  File "/home/$USER/.local/bin/pyfunceble", line 5, in <module>
    from PyFunceble.cli.entry_points.pyfunceble.cli import tool
  File "/home/$USER/.local/lib/python3.10/site-packages/PyFunceble/__init__.py", line 55, in <module>
    import PyFunceble.storage
  File "/home/$USER/.local/lib/python3.10/site-packages/PyFunceble/storage.py", line 58, in <module>
    from box import Box
ModuleNotFoundError: No module named 'box'

Additional context

spirillen commented 2 years ago

Second error I meet, when reach L63

Installing collected packages: mypdns, pyfunceble-dev
  Attempting uninstall: pyfunceble-dev
    Found existing installation: PyFunceble-dev 4.1.0b17
    Uninstalling PyFunceble-dev-4.1.0b17:
      Successfully uninstalled PyFunceble-dev-4.1.0b17
Successfully installed mypdns-1.0.3 pyfunceble-dev-4.1.1
pyfunceble --version
Traceback (most recent call last):
  File "/home/$USER/miniconda/envs/pyfunceble/bin/pyfunceble", line 5, in <module>
    from PyFunceble.cli.entry_points.pyfunceble.cli import tool
  File "/home/$USER/miniconda/envs/pyfunceble/lib/python3.10/site-packages/PyFunceble/__init__.py", line 56, in <module>
    from PyFunceble.checker.availability.domain import DomainAvailabilityChecker
  File "/home/$USER/miniconda/envs/pyfunceble/lib/python3.10/site-packages/PyFunceble/checker/availability/domain.py", line 55, in <module>
    import PyFunceble.factory
  File "/home/$USER/miniconda/envs/pyfunceble/lib/python3.10/site-packages/PyFunceble/factory.py", line 53, in <module>
    from PyFunceble.query.requests.requester import Requester as requester
  File "/home/$USER/miniconda/envs/pyfunceble/lib/python3.10/site-packages/PyFunceble/query/requests/requester.py", line 64, in <module>
    from PyFunceble.query.dns.query_tool import DNSQueryTool
  File "/home/$USER/miniconda/envs/pyfunceble/lib/python3.10/site-packages/PyFunceble/query/dns/query_tool.py", line 66, in <module>
    import dns.query
  File "/home/$USER/.local/lib/python3.10/site-packages/dns/query.py", line 52, in <module>
    import httpx
  File "/home/$USER/.local/lib/python3.10/site-packages/httpx/__init__.py", line 2, in <module>
    from ._api import delete, get, head, options, patch, post, put, request, stream
  File "/home/$USER/.local/lib/python3.10/site-packages/httpx/_api.py", line 4, in <module>
    from ._client import Client
  File "/home/$USER/.local/lib/python3.10/site-packages/httpx/_client.py", line 30, in <module>
    from ._transports.default import AsyncHTTPTransport, HTTPTransport
  File "/home/$USER/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 81, in <module>
    httpcore.TimeoutException: TimeoutException,
AttributeError: module 'httpcore' has no attribute 'TimeoutException'
funilrys commented 2 years ago

Hey @spirillen,

First Error: Can you do pip freeze | grep python-box ? Second Error: That looks like a nasty dnspython issue ... Let me give it a try ... Can you please get me the version of httpx (pip freeze | grep httpx) ?

Stay safe and healthy.

spirillen commented 2 years ago

NON CONDA

python-box==5.4.1
httpx==1.0.0b0

Conda editions coming up

funilrys commented 2 years ago

Mhh I tested on 2 VM and my PC on fresh environment and can't reproduce 😞

spirillen commented 2 years ago

CONDA env ACTIVE L53 in script above

httpx==1.0.0b0
python-box==5.4.1
spirillen commented 2 years ago

Mhh I tested on 2 VM and my PC on fresh environment and can't reproduce disappointed

Also only happens in CONDA for me

funilrys commented 2 years ago

Testing with conda right now ...

spirillen commented 2 years ago

The old box is running with 4.1.0-dev and that is working


python3.10 -m pip install -U -I --pre pyfunceble-dev

....

pyfunceble --version
pyfunceble 4.1.1.dev (Blue Duckling: Ixora)

-----------

Conda

pyfunceble --version
pyfunceble 4.1.1.dev (Blue Duckling: Ixora)

/closing as suddenly working without doing anything....

Installing collected packages: mypdns Successfully installed mypdns-1.0.3

done #

To activate this environment, use

#

$ conda activate pyfunceble

#

To deactivate an active environment, use

#

$ conda deactivate

pyfunceble 4.1.1.dev (Blue Duckling: Ixora)

    You are running with Pyfunceble

██████╗ ██╗   ██╗███████╗██╗   ██╗███╗   ██╗ ██████╗███████╗██████╗ ██╗     ███████╗
██╔══██╗╚██╗ ██╔╝██╔════╝██║   ██║████╗  ██║██╔════╝██╔════╝██╔══██╗██║     ██╔════╝
██████╔╝ ╚████╔╝ █████╗  ██║   ██║██╔██╗ ██║██║     █████╗  ██████╔╝██║     █████╗
██╔═══╝   ╚██╔╝  ██╔══╝  ██║   ██║██║╚██╗██║██║     ██╔══╝  ██╔══██╗██║     ██╔══╝
██║        ██║   ██║     ╚██████╔╝██║ ╚████║╚██████╗███████╗██████╔╝███████╗███████╗
╚═╝        ╚═╝   ╚═╝      ╚═════╝ ╚═╝  ╚═══╝ ╚═════╝╚══════╝╚═════╝ ╚══════╝╚══════╝

Subject Status Source Expiration Date Registrar HTTP Code Checker


100oj.booru.org

funilrys commented 2 years ago

Came to the same conclusion ... It's odd ... Probably cache or something ...