briefcase icon indicating copy to clipboard operation
briefcase copied to clipboard

import ssl error

Open jamesabel opened this issue 9 years ago • 4 comments

When executing: import ssl I get:

Traceback (most recent call last): File "/Users/james/projects/pycon_projects/hello_briefcase/hello_briefcase/macOS/hello_briefcase.app/Contents/Resources/python/lib/python3.5/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/Users/james/projects/pycon_projects/hello_briefcase/hello_briefcase/macOS/hello_briefcase.app/Contents/Resources/python/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/james/projects/pycon_projects/hello_briefcase/hello_briefcase/macOS/hello_briefcase.app/Contents/Resources/app/hello_briefcase/main.py", line 1, in from hello_briefcase.app import main File "/Users/james/projects/pycon_projects/hello_briefcase/hello_briefcase/macOS/hello_briefcase.app/Contents/Resources/app/hello_briefcase/app.py", line 10, in import ssl File "/Users/james/projects/pycon_projects/hello_briefcase/hello_briefcase/macOS/hello_briefcase.app/Contents/Resources/python/lib/python3.5/ssl.py", line 99, in import _ssl # if we can't import it, let the error propagate ImportError: No module named '_ssl'

jamesabel avatar May 25 '17 21:05 jamesabel

It appears that the most recent builds don't have the binary modules included; need to dig into the build process to work out why.

freakboy3742 avatar May 26 '17 20:05 freakboy3742

I believe I am having a similar problem trying to import keras in my app. I just wanted to confirm that briefcase should be packaging import modules into binaries? Or does it only include modules that come with the standard lib?

inJeans avatar Mar 14 '18 11:03 inJeans

I believe this has been addressed in recent support package builds.

freakboy3742 avatar Dec 21 '19 00:12 freakboy3742

Hi, latest briecase. just add `import ssl" to the default app Following error :

[mycartable] Built linux/MyCartable-0.0.1-x86_64.AppImage

[mycartable] Starting app...

Traceback (most recent call last):
  File "/tmp/.mount_MyCarthLt0Ty/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/tmp/.mount_MyCarthLt0Ty/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmp/.mount_MyCarthLt0Ty/usr/app/mycartable/__main__.py", line 2, in <module>
    import ssl
  File "/tmp/.mount_MyCarthLt0Ty/usr/lib/python3.7/ssl.py", line 98, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: libssl.so.1.0.0: cannot open shared object file: No such file or directory

Jimmy

jgirardet avatar Jun 27 '20 07:06 jgirardet