Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-30-2013, 09:55 PM
kevinx kevinx is offline
Registered User
 
Join Date: Oct 2013
Posts: 2
Question Python import error -DLL load failed

I am trying to import urllib ,but got this error.

ImportError
Error: DLL load failed: The specified module could not be found.


I am running CRT 7.0.0 ,
OS: win7
python2.6 installed

I have renamed python26 lib&zip located in the SecureCRT installation directory,
but got an IOError
zipimport:can not open file D:\Program Files\VanDyke Software\Clients\python26.zip

Any ideas to work out ?

Thanks.
kevinx
Reply With Quote
  #2  
Old 10-31-2013, 11:08 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Hi kevinx,

Thanks for the question.

I just tested this and was able to successfully import urllib. Would you be able to post the code that is failing for you?

Can you confirm that you have no other versions of Python installed on your machine?
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #3  
Old 10-31-2013, 08:38 PM
kevinx kevinx is offline
Registered User
 
Join Date: Oct 2013
Posts: 2
Thumbs up

hi,
I try again and
it does work if only 'python26.dll' renamed.

thanks a lot !
Reply With Quote
  #4  
Old 11-01-2013, 09:16 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Thanks for the update kevinx.

As a note, I have created a feature request to add support for the _socket module which is a dependency of urllib. Should a future release of SecureCRT for Windows have this feature added, we will post to this thread.

If you would like to be notified directly, please complete and submit the form at the following location:
Submit Feature Request
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #5  
Old 09-29-2020, 12:15 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,482
Hi all,

I wanted to let you know the __socket module should be available as of SecureCRT v9.0, currently in beta 1 release, since this support was added:

Changes in SecureCRT 9.0 (Beta 1) -- September 24, 2020
-------------------------------------------------------
New Features:

  • Windows: Added support for Python 3. Python 3.8(available at python.org) must be installed and the script's first line must be: # $language = "python3". Since support for Python 3 is provided through an external module, Python 3 libraries can be used in SecureCRT scripts.

Note that this is Windows only support at this time. In fact, we released beta 1 installers *only* for Windows. We hope to include all platforms in later releases.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply

Tags
urllib securecrt


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 10:40 PM.