LiuLab-Bioelectronics-Harvard / UnitedNet

GNU General Public License v3.0
39 stars 14 forks source link

A new bug for loading modules #12

Open HelloWorldLTY opened 8 months ago

HelloWorldLTY commented 8 months ago

Hi, thanks for your great work. I found that I cannot load the module:

Traceback (most recent call last):

  File /gpfs/gibbs/project/zhao/tl688/conda_envs/cpsc488/lib/python3.9/site-packages/IPython/core/interactiveshell.py:3548 in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  Cell In[2], line 9
    from src.interface import UnitedNet

  File /gpfs/gibbs/pi/zhao/tl688/UnitedNet/notebooks/../src/interface.py:11
    from src.configs import *

  File /gpfs/gibbs/pi/zhao/tl688/UnitedNet/notebooks/../src/configs/__init__.py:7
    exec(f"from src.configs.{cur_f} import *")

  File <string>:1
    from src.configs./gpfs/gibbs/pi/zhao/tl688/UnitedNet/notebooks/../src/configs/patchseq import *
                     ^
SyntaxError: invalid syntax

It seems that the current path did not work. How can I modify it to address this bug? Thanks.

AnthonyShea1 commented 7 months ago

I am having the same issue with the jupyter notebooks. I have tried changing the pathing and the location of the module files, but have not had any success and have only created new issues. Would be happy to see this resolved.

Is this an issue with previous versions as well?

HelloWorldLTY commented 7 months ago

Hi, I addressed this by replacing this path with its absolute path.

0Seven-Deadly-Sins commented 3 months ago

replace"//" with "/","//"is for windows