Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run ipwb on Windows #304

Closed
akavel opened this issue Dec 8, 2017 · 5 comments
Closed

Cannot run ipwb on Windows #304

akavel opened this issue Dec 8, 2017 · 5 comments

Comments

@akavel
Copy link

akavel commented Dec 8, 2017

With a workaround, as mentioned in #303, I managed to build ipwb. However, when I try to run it, I'm getting:

  1. After first trying \Python36\Scripts\pip install ipwb:

     C:\dnload\ipfs-etc>\Python36\Scripts\ipwb.exe
     Traceback (most recent call last):
       File "C:\Python36\Scripts\ipwb-script.py", line 11, in <module>
         load_entry_point('ipwb==0.2017.12.1.11', 'console_scripts', 'ipwb')()
       File "c:\python36\lib\site-packages\pkg_resources\__init__.py", line 565, in load_entry_point
         return get_distribution(dist).load_entry_point(group, name)
       File "c:\python36\lib\site-packages\pkg_resources\__init__.py", line 2631, in load_entry_point
         return ep.load()
       File "c:\python36\lib\site-packages\pkg_resources\__init__.py", line 2291, in load
         return self.resolve()
       File "c:\python36\lib\site-packages\pkg_resources\__init__.py", line 2297, in resolve
         module = __import__(self.module_name, fromlist=['__name__'], level=0)
       File "c:\python36\lib\site-packages\ipwb\__main__.py", line 5, in <module>
         from __init__ import __version__ as ipwbVersion
     ModuleNotFoundError: No module named '__init__'
    
  2. After then trying a dev version d5d358d from git clone and \Python36\Scripts\pip install ./, the error is similar but with changed line numbers:

     C:\dnload\ipfs-etc>\Python36\Scripts\ipwb.exe replay
     Traceback (most recent call last):
       File "C:\Python36\Scripts\ipwb-script.py", line 11, in <module>
         load_entry_point('ipwb==0.2017.12.1.11', 'console_scripts', 'ipwb')()
       File "c:\python36\lib\site-packages\pkg_resources\__init__.py", line 572, in load_entry_point
         return get_distribution(dist).load_entry_point(group, name)
       File "c:\python36\lib\site-packages\pkg_resources\__init__.py", line 2752, in load_entry_point
         return ep.load()
       File "c:\python36\lib\site-packages\pkg_resources\__init__.py", line 2405, in load
         return self.resolve()
       File "c:\python36\lib\site-packages\pkg_resources\__init__.py", line 2411, in resolve
         module = __import__(self.module_name, fromlist=['__name__'], level=0)
       File "c:\python36\lib\site-packages\ipwb\__main__.py", line 5, in <module>
         from __init__ import __version__ as ipwbVersion
     ModuleNotFoundError: No module named '__init__'
    
@machawk1
Copy link
Member

machawk1 commented Dec 8, 2017

@akavel We haven't completed the move over to Py3 yet per #51. If you have Python2 installed, can you repeat the above?

The import system in Py3 is a little different. Our implicit relative imports of other parts of the ipwb module within ipwb causes Py3 to choke.

@akavel
Copy link
Author

akavel commented Dec 8, 2017

@machawk1 Ah, oops; didn't see any info that Python 2 is required in the readme (the generic wording around pip usage seems to imply any version is ok). I don't seem to have Python 2 installed but I'll try to get it then.

@akavel
Copy link
Author

akavel commented Dec 8, 2017

Works with Python 2. Thanks!

Maybe you could mention this in the readme till #51 is done? The error I saw didn't let me discover that the reason was Python 3, having only passing knowledge of Python at all.

@machawk1
Copy link
Member

machawk1 commented Dec 8, 2017

@akavel Will do! Thanks for giving it a spin and please continue to report any bugs you encounter.

UPDATE: I have added a note regarding this in the README.

@machawk1
Copy link
Member

machawk1 commented Dec 8, 2017

Closing this ticket with @akavel 's report of ipwb working in Py2 for Windows.

@machawk1 machawk1 closed this as completed Dec 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants