Git Product home page Git Product logo

Comments (8)

easyw avatar easyw commented on June 2, 2024

@transistorgrab
could you please post your full FC info?
Is it a Conda release or from the installer?
it is strange the python module 'requests' is not available...
What happens if you digit:
import requests
in the FC python console?

from kicadstepupmod.

seflm avatar seflm commented on June 2, 2024

Got the same error

installed through built-in extension manager
Freecad version is 0.21.1
Plugin version is 10.22.5

18:15:40  No module named 'requests'
18:15:40  Traceback (most recent call last):
  File "<string>", line 250, in Activated
  File "C:\Program Files\FreeCAD 0.21\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Users\marek\AppData\Roaming\FreeCAD\Mod\kicadStepUpMod\.\commits_num.py", line 1, in <module>
    import requests
  File "C:\Program Files\FreeCAD 0.21\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)

from kicadstepupmod.

transistorgrab avatar transistorgrab commented on June 2, 2024

@easyw: I installed FreeCAD from the installer.
Full Version Info:

OS: Windows 10 build 19045
Word size of FreeCAD: 64-bit
Version: 0.21.1.33668 +26 (Git)
Build type: Release
Branch: (HEAD detached at 0.21.1)
Hash: f6708547a9bb3f71a4aaade12109f511a72c207c
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * Assembly4 0.50.6
  * dxf-library
  * kicadStepUpMod 10.22.4

Output from Python console:

>>> import requests
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "D:\Program Files\FreeCAD 0.21\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'requests'

However, I found that this throws no error:

from urllib import request

I hope this helps. :)

from kicadstepupmod.

easyw avatar easyw commented on June 2, 2024

It is strange there is no module 'requests' on FC installer... I see if I can test on my PC.
'request' doesn't have the same sub functions

from kicadstepupmod.

easyw avatar easyw commented on June 2, 2024

ok, I have downloaded FC021.1 from:
https://github.com/FreeCAD/FreeCAD/releases/download/0.21.1/FreeCAD-0.21.1-WIN-x64-installer-1.exe

OS: Windows 10
Word size of FreeCAD: 64-bit
Version: 0.21.1.33668 +26 (Git)
Build type: Release
Branch: (HEAD detached at 0.21.1)
Hash: f6708547a9bb3f71a4aaade12109f511a72c207c
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3

and from the FC python console I can digit:
import requests
without errors...

from kicadstepupmod.

easyw avatar easyw commented on June 2, 2024

@transistorgrab
could you please try the current update?
It should work also without the module 'requests'

from kicadstepupmod.

transistorgrab avatar transistorgrab commented on June 2, 2024
OS: Windows 10 build 19045
Word size of FreeCAD: 64-bit
Version: 0.21.1.33668 +26 (Git)
Build type: Release
Branch: (HEAD detached at 0.21.1)
Hash: f6708547a9bb3f71a4aaade12109f511a72c207c
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * Assembly4 0.50.6
  * dxf-library
  * kicadStepUpMod 10.22.8

I just installed the current download and it says the same version as yours and the same as reported before.
I still see the same behaviour:

>>> import requests
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "D:\Program Files\FreeCAD 0.21\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'requests'

I can confirm that I saw no problems using the Workbench for my use case. Just wanted to report the observation.
With the latest update of KSU the error report is already gone when opening the Workbench.

from kicadstepupmod.

easyw avatar easyw commented on June 2, 2024

@transistorgrab
thanx for your feedback.

from kicadstepupmod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.